|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx gov.nasa.arc.brahms.common.rt.FrameStateCtx gov.nasa.arc.brahms.common.rt.ImpasseCtx
public class ImpasseCtx
The ImpasseCtx manages information about the impassed state of a frame. The impassed state can only be entered by a workframe and is entered by a workframe when the condition of an activated detectable is not met and its action is impasse. This context maintains when the frame enters the impassed state and when the frame leaves the impassed state. This context also defines the detectable causing the impasse and the belief causing the impasse to be resolved.
FrameStateCtx
,
Serialized FormField Summary |
---|
Fields inherited from interface gov.nasa.arc.brahms.common.rt.IRuntimeConstants |
---|
ABORTED, ACTIVE, ACTIVITY, AVAILABLE, COMPLETED, CONSEQUENCE, DETECTABLE, ENDED, ENGINE, EXTERNAL_AGENT, FROM, IMPASSED, INITIAL, INTERRUPTED, JAVA_PROPERTY, sABORTED, sACTIVE, sAVAILABLE, sCOMPLETED, sENDED, sIMPASSED, sINTERRUPTED, sUNAVAILABLE, TO, TRANSFER, UNAVAILABLE |
Constructor Summary | |
---|---|
ImpasseCtx(IFrameCtx frame)
Constructor, creates a new ImpasseCtx for the specified frame |
Method Summary | |
---|---|
ITriggerCtx |
getCause()
Returns the cause of the impasse state. |
IBeliefCtx |
getResolvedBy()
Returns the belief resolving the impasse. |
int |
getState()
Returns the state identifier |
java.lang.String |
getStateName()
Returns the name of the state |
void |
setCause(ITriggerCtx cause)
Sets the cause of the impasse state. |
void |
setResolvedBy(IBeliefCtx belief)
Sets the belief resolving the impasse. |
Methods inherited from class gov.nasa.arc.brahms.common.rt.FrameStateCtx |
---|
getFrame, getNextFrameState, getPreviousFrameState, setFrame, setNextFrameState, setPreviousFrameState |
Methods inherited from class gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx |
---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setContextFor, setEndTime, setID, setStartTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImpasseCtx(IFrameCtx frame) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frame
- the IFrameCtx that is set to impassed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if frame specified is nullMethod Detail |
---|
public int getState()
getState
in class FrameStateCtx
public java.lang.String getStateName()
getStateName
in class FrameStateCtx
public void setCause(ITriggerCtx cause) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
cause
- the trigger causing the impasse
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the cause is nullpublic ITriggerCtx getCause() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no cause is specifiedpublic void setResolvedBy(IBeliefCtx belief) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
belief
- the IBeliefCtx for the belief resolving the impasse
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the belief is nullpublic IBeliefCtx getResolvedBy() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no belief is specified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |