|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPreconditionCtx
The IPreconditionCtx is the interface for precondition contexts that defines the beliefs or facts that made the precondition evaluate to true, the variables it bound and the frame for which the precondition evaluated to true.
Method Summary | |
---|---|
void |
addBoundVariable(IVariableCtx var)
Adds the specified variable as a variable bound by this precondition. |
void |
addEvaluatedStatement(IStatementCtx statement)
Adds the specified statement (belief or fact) as a statement evaluated by this precondition causing this precondition to evaluate to true. |
java.util.Enumeration |
getBoundVariables()
Returns a list of all the variables bound by this precondition. |
java.util.Enumeration |
getEvaluatedStatements()
Returns a list of all the statements (facts or beliefs) evaluated by this precondition to result in the precondition evaluating to true. |
IFrameCtx |
getParent()
Returns the parent frame context in which this precondition is evaluated. |
void |
removeBoundVariable(IVariableCtx var)
Removes the specified variable as a variable bound by this precondition. |
void |
removeEvaluatedStatement(IStatementCtx statement)
Removes the specified statement (belief or fact) as a statement evaluated by this precondition. |
void |
setParent(IFrameCtx parent)
Sets the parent frame context in which this precondition is evaluated. |
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(IFrameCtx parent) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
parent
- the IFrameCtx in which the precondition is evaluated.
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null parent is specifiedIFrameCtx getParent() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no parent is specifiedvoid addEvaluatedStatement(IStatementCtx statement) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
statement
- the statement (IBeliefCtx or IFactCtx) to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if statement is nullvoid removeEvaluatedStatement(IStatementCtx statement) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
statement
- the statement to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if statement is null, no statements
are present, or the statements is not foundjava.util.Enumeration getEvaluatedStatements() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no statementsvoid addBoundVariable(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 removeBoundVariable(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 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 |