|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITransferDefinitionCtx
The ITransferDefinitionCtx is the interface for the context for a transfer definition defining in what communication or broadcast activity the transfer took place, the direction of the transfer, the communicated beliefs, the beliefs created by the transfer definition, the parameters used by the transfer definition and the variables bound by this transfer definition.
Method Summary | |
---|---|
void |
addBoundVariable(VariableCtx var)
Adds the specified variable as a variable bound by this transfer definition. |
void |
addCreatedBelief(IBeliefCtx belief)
Adds the specified belief as a belief created by this transfer definition. |
void |
addTransferredBelief(IBeliefCtx belief)
Adds the specified belief as a belief transferred by this transfer definition. |
void |
addTransferredCommunicativeAct(IObjectInstanceCtx ca)
Adds the specified CommunicativeAct as a CommunicativeAct transferred by this transfer definition. |
void |
addUsedParameter(ParameterCtx p)
Adds the specified parameter as a parameter used by this transfer definition. |
java.util.Enumeration |
getBoundVariables()
Returns a list of all the variables bound by this transfer definition. |
java.util.Enumeration |
getCreatedBeliefs()
Returns a list of all the beliefs created by this transfer definition. |
int |
getDirection()
Returns the direction of the communication for this transfer definition |
IBroadcastActivityCtx |
getParent()
Returns the parent communicate or broadcast activity context in which this transfer definition is used. |
java.util.Enumeration |
getTransferredBeliefs()
Returns a list of all the beliefs transferred through this transfer definition. |
java.util.Enumeration |
getTransferredCommunicativeActs()
Returns a list of all the CommunicativeActs transferred through this transfer definition. |
java.util.Enumeration |
getUsedParameters()
Returns a list of all the parameters used by this transfer definition. |
boolean |
isTransferredBeliefs()
Indicates whether the transfer definition context was used to transfer beliefs instead of CommunicativeActs. |
boolean |
isTransferredCommunicativeActs()
Indicates whether the transfer definition context was used to transfer CommunicativeActs instead of beliefs. |
void |
removeBoundVariable(VariableCtx var)
Removes the specified variable as a variable bound by this transfer definition. |
void |
removeCreatedBelief(IBeliefCtx belief)
Removes the specified belief as a belief created by this transfer definition. |
void |
removeTransferredBelief(IBeliefCtx belief)
Removes the specified belief as a belief transferred by this transfer definition. |
void |
removeUsedParameter(ParameterCtx p)
Removes the specified parameter as a parameter used by this transfer definition. |
void |
setDirection(int direction)
Sets the direction of the communication for this transfer definition |
void |
setParent(IBroadcastActivityCtx parent)
Sets the parent communicate or broadcast activity context in which this transfer definition is used. |
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx |
---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime |
Method Detail |
---|
void setParent(IBroadcastActivityCtx parent) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
parent
- the CommunicateActivityCtx in which the transfer definition is used
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null parent is specifiedIBroadcastActivityCtx getParent() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no parent is specifiedvoid setDirection(int direction) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
direction
- the direction of the transfer
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an invalid direction is specifiedIRuntimeConstants.FROM
,
IRuntimeConstants.TO
int getDirection() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no direction is specifiedIRuntimeConstants.FROM
,
IRuntimeConstants.TO
boolean isTransferredCommunicativeActs()
void addTransferredCommunicativeAct(IObjectInstanceCtx ca) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
ca
- the CommunicativeAct (IObjectInstanceCtx) to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if ca is nulljava.util.Enumeration getTransferredCommunicativeActs() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no transferred CommunicativeActsboolean isTransferredBeliefs()
void addTransferredBelief(IBeliefCtx belief) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
belief
- the belief (IBeliefCtx) to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if belief is nullvoid removeTransferredBelief(IBeliefCtx belief) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
belief
- the belief (IBeliefCtx) to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if belief is null, no transferred beliefs
are present, or the belief is not foundjava.util.Enumeration getTransferredBeliefs() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no transferred beliefsvoid addCreatedBelief(IBeliefCtx belief) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
belief
- the belief (IBeliefCtx) to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if belief is nullvoid removeCreatedBelief(IBeliefCtx belief) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
belief
- the belief to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if belief is null, no beliefs
are present, or the belief is not foundjava.util.Enumeration getCreatedBeliefs() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no beliefsvoid addUsedParameter(ParameterCtx p) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
p
- the parameter (ParameterCtx) to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if parameter is nullvoid removeUsedParameter(ParameterCtx p) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
p
- the parameter (ParameterCtx) to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if parameter is null, no parameters
are present, or the parameter is not foundjava.util.Enumeration getUsedParameters() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no parametersvoid addBoundVariable(VariableCtx var) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
var
- the variable (VariableCtx) to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if var is nullvoid removeBoundVariable(VariableCtx var) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
var
- the variable (VariableCtx) to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if variable is null, no variables
are present, or the variable is not foundjava.util.Enumeration getBoundVariables() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no variables
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |