|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDetectCtx
The IDetectCtx interface is the interface for a detectable action that maintains the information about when a detection took place, what fact was detected and what belief was created as a result of the detection.
IDetectableActionCtx
,
IDetectableCtx
Method Summary | |
---|---|
void |
addUsedVariable(IVariableCtx var)
Adds the specified variable as a variable used by this detectable. |
IBeliefCtx |
getCreatedBelief()
Returns the belief created by the detectable in this detect action. |
IFactCtx |
getDetectedFact()
Returns the fact detected by the detectable in this detect action. |
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 |
setCreatedBelief(IBeliefCtx belief)
Sets the belief that was created as a result of the fact detection. |
void |
setDetectedFact(IFactCtx fact)
Sets the fact that is detected by the detectable in this detect action instance. |
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 setDetectedFact(IFactCtx fact) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
fact
- the detected fact
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the specified fact is nullIFactCtx getDetectedFact() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the detected fact is nullvoid setCreatedBelief(IBeliefCtx belief) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
belief
- the created belief
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the specified belief is nullIBeliefCtx getCreatedBelief() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the created belief is nullvoid 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 |