gov.nasa.arc.brahms.common.rt
Class FactCtx

java.lang.Object
  extended by gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx
      extended by gov.nasa.arc.brahms.common.rt.StatementCtx
          extended by gov.nasa.arc.brahms.common.rt.FactCtx
All Implemented Interfaces:
IBrahmsObjectCtx, IFactCtx, IRuntimeConstants, IStatementCtx, java.io.Serializable

public class FactCtx
extends StatementCtx
implements IFactCtx

The FactCtx maintains information about a fact created in the world. The fact context defines when the fact is created and what created the fact.

Version:
8 November 1999
Author:
Ron van Hoof
See Also:
Serialized Form

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
FactCtx(Statement fact)
          Constructor, creates a fact context for the specified fact
FactCtx(Statement fact, int sourceType, IBrahmsObjectCtx source)
          Constructor, creates a fact context for the specified fact.
 
Method Summary
 java.lang.String toString()
          Returns the string representation of the fact context, returning 'fact' followed by the fact itself.
 
Methods inherited from class gov.nasa.arc.brahms.common.rt.StatementCtx
getSource, getSourceType, setSource, setSourceType
 
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, wait, wait, wait
 
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IStatementCtx
getSource, getSourceType, setSource, setSourceType
 
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime
 

Constructor Detail

FactCtx

public FactCtx(Statement fact)
        throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Constructor, creates a fact context for the specified fact

Parameters:
fact - the fact for which this is context
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException

FactCtx

public FactCtx(Statement fact,
               int sourceType,
               IBrahmsObjectCtx source)
        throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Constructor, creates a fact context for the specified fact.

Parameters:
fact - the Statement for which this is a context
sourceType - the source type
source - the IBrahmsObjectCtx causing the creation of the statement
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if an invalid source type or source is specified
See Also:
IRuntimeConstants.INITIAL, IRuntimeConstants.CONSEQUENCE, IRuntimeConstants.DETECTABLE, IRuntimeConstants.TRANSFER, IRuntimeConstants.ACTIVITY, IRuntimeConstants.ENGINE
Method Detail

toString

public java.lang.String toString()
Returns the string representation of the fact context, returning 'fact' followed by the fact itself.

Overrides:
toString in class java.lang.Object
Returns:
String the string representation of the fact context


Copyright © 1997-2012 All Rights Reserved.