|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITriggerCtx
The ITriggerCtx interface is the interface for a detectable action or custom action that maintains the information about when the trigger or action part of the detectable was executed and what belief or event triggered the action.
IDetectableActionCtx
,
IDetectableCtx
Method Summary | |
---|---|
void |
addUsedVariable(IVariableCtx var)
Adds the specified variable as a variable used by this detectable. |
IBeliefCtx |
getTriggeringBelief()
Returns the belief that triggered this trigger. |
java.util.Enumeration |
getUsedVariables()
Returns a list of all the variables used by this detectable. |
void |
removeUsedVariable(IVariableCtx var)
Removes the specified variable as a variable used by this detectable. |
void |
setTriggeringBelief(IBeliefCtx belief)
Sets the belief that activated this trigger. |
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx |
---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime |
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IDetectableActionCtx |
---|
getParent |
Method Detail |
---|
void setTriggeringBelief(IBeliefCtx belief) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
belief
- the belief that triggered this trigger
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null belief is specifiedIBeliefCtx getTriggeringBelief() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no triggering belief is specifiedvoid addUsedVariable(IVariableCtx var) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
var
- the variable (IVariableCtx) to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if var is nullvoid removeUsedVariable(IVariableCtx var) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
var
- the variable (IVariableCtx) 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 getUsedVariables() 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 |