|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConsequenceCtx
The IConsequenceCtx is the interface for consequence contexts defining the context for a fired consequence defining the consequence that was fired, what frame fired the consequence and defining what beliefs and/or facts were created by the consequence.
Method Summary | |
---|---|
void |
addCreatedStatement(IStatementCtx statement)
Adds the specified statement (belief or fact) as a statement created by this consequence. |
void |
addUsedVariable(VariableCtx var)
Adds the specified variable as a variable used by this consequence. |
java.util.Enumeration |
getCreatedStatements()
Returns a list of all the statements (facts and beliefs) created by this consequence. |
IFrameCtx |
getParent()
Returns the parent frame context in which this consequence is fired. |
java.util.Enumeration |
getUsedVariables()
Returns a list of all the variables used by this consequence. |
void |
removeCreatedStatement(IStatementCtx statement)
Removes the specified statement (belief or fact) as a statement created by this consequence. |
void |
removeUsedVariable(VariableCtx var)
Removes the specified variable as a variable used by this consequence. |
void |
setParent(IFrameCtx parent)
Sets the parent frame context in which this consequence is fired. |
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 consequence is fired
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 addCreatedStatement(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 removeCreatedStatement(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 getCreatedStatements() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no statementsvoid addUsedVariable(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 removeUsedVariable(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 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 |