|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nasa.arc.brahms.common.rt.BrahmsObjectCtx
gov.nasa.arc.brahms.common.rt.StatementCtx
public class StatementCtx
The StatementCtx defines a context for a Statement defining the source of the statement, the element that created the statement. The source of a statement can be a concept due to the definition of initial statements, a consequence, a detectable, a transfer definition, an activity (actually the engine core that generates statements based on the activities executed), or just the engine core (reflection statements).
| Field 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 | |
|---|---|
StatementCtx(Statement statement)
Constructor, creates a statement context for the specified statement. |
|
StatementCtx(Statement statement,
int sourceType,
IBrahmsObjectCtx source)
Constructor, creates a statement context for the specified statement. |
|
| Method Summary | |
|---|---|
IBrahmsObjectCtx |
getSource()
Returns the source of the statement, no source is specified for reflection statements generated by the engine (source type == ENGINE). |
int |
getSourceType()
Returns the type of the source of this statement |
void |
setSource(IBrahmsObjectCtx source)
Sets the source of the statement, no source is specified for reflection statements generated by the engine (source type == ENGINE). |
void |
setSourceType(int type)
Sets the type of the source of this statement |
| 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 |
| Methods inherited from interface gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx |
|---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime |
| Constructor Detail |
|---|
public StatementCtx(Statement statement)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
statement - the Statement for which this is a context
gov.nasa.arc.brahms.common.exceptions.BrahmsException
public StatementCtx(Statement statement,
int sourceType,
IBrahmsObjectCtx source)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
statement - the Statement for which this is a contextsourceType - the source typesource - the IBrahmsObjectCtx causing the creation of the statement
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if an invalid source type or source is specifiedIRuntimeConstants.INITIAL,
IRuntimeConstants.CONSEQUENCE,
IRuntimeConstants.DETECTABLE,
IRuntimeConstants.TRANSFER,
IRuntimeConstants.ACTIVITY,
IRuntimeConstants.ENGINE| Method Detail |
|---|
public void setSourceType(int type)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
setSourceType in interface IStatementCtxtype - the source type
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if an invalid source type is specifiedIRuntimeConstants.INITIAL,
IRuntimeConstants.CONSEQUENCE,
IRuntimeConstants.DETECTABLE,
IRuntimeConstants.TRANSFER,
IRuntimeConstants.ACTIVITY,
IRuntimeConstants.ENGINE,
IRuntimeConstants.EXTERNAL_AGENT,
IRuntimeConstants.JAVA_PROPERTY
public int getSourceType()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getSourceType in interface IStatementCtxgov.nasa.arc.brahms.common.exceptions.BrahmsException - if no source type is specifiedIRuntimeConstants.INITIAL,
IRuntimeConstants.CONSEQUENCE,
IRuntimeConstants.DETECTABLE,
IRuntimeConstants.TRANSFER,
IRuntimeConstants.ACTIVITY,
IRuntimeConstants.ENGINE,
IRuntimeConstants.EXTERNAL_AGENT,
IRuntimeConstants.JAVA_PROPERTY
public void setSource(IBrahmsObjectCtx source)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
setSource in interface IStatementCtxsource - the IBrahmsObjectCtx causing the creation of the statement
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if a null source is specified
public IBrahmsObjectCtx getSource()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getSource in interface IStatementCtxgov.nasa.arc.brahms.common.exceptions.BrahmsException - if no source is specifiedsetSource(gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||