gov.nasa.arc.brahms.common.rt
Interface IObjectInstanceCtx

All Superinterfaces:
IActiveInstanceCtx, IBrahmsObjectCtx, IConceptCtx
All Known Implementing Classes:
ObjectInstanceCtx, VMObjectInstanceCtx

public interface IObjectInstanceCtx
extends IActiveInstanceCtx

The IObjectInstanceCtx interface is the interface for the runtime class for the objects. It manages the belief set, location, frame contexts with their various states and containment. The virtual machine maintains the object states through the object instance contexts.

Version:
28 October 1999
Author:
Ron van Hoof

Method Summary
 void addAggregate(PartCtx aggregate)
          Adds the specified aggregate as an aggregate for this object instance.
 java.util.Enumeration getAggregates()
          Returns a list of all the aggregates (PartCtx).
 void removeAggregate(PartCtx aggregate)
          Removes the specified aggregate as an aggregate for this object instance.
 void removeAllAggregates()
          Removes all the aggregates from the list of aggregates.
 
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IActiveInstanceCtx
addAvailableFrame, addBelief, addCompletedFrame, addContainedElement, addImpasseDetectable, addImpassedFrame, addInterruptedFrame, addPastLocation, getAvailableThoughtframes, getAvailableWorkframes, getBeliefs, getBelievedTime, getCompletedThoughtframeNames, getCompletedThoughtframes, getCompletedWorkframeNames, getCompletedWorkframes, getContainedElements, getCurrentWork, getImpasseDetectables, getImpassedFrames, getInterruptedFrames, getLocation, getPastLocations, hasAvailableThoughtframes, hasAvailableWorkframes, hasCompletedThoughtframes, hasCompletedWorkframes, hasImpassedFrames, hasInterruptedFrames, removeAllAvailableFrames, removeAllBeliefs, removeAllCompletedFrames, removeAllContainedElements, removeAllImpasseDetectables, removeAllImpassedFrames, removeAllInterruptedFrames, removeAllPastLocations, removeAvailableFrame, removeBelief, removeCompletedFrame, removeContainedElement, removeImpasseDetectable, removeImpassedFrame, removeInterruptedFrame, removePastLocation, setBelievedTime, setCurrentWork, setLocation
 
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime
 

Method Detail

addAggregate

void addAggregate(PartCtx aggregate)
                  throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Adds the specified aggregate as an aggregate for this object instance. The actual aggregate is the part context's aggregate/parent. Aggregates and sub aggregates are associated through a PartCtx.

Parameters:
aggregate - the aggregate (PartCtx) to be added
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if aggregate is null

removeAggregate

void removeAggregate(PartCtx aggregate)
                     throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Removes the specified aggregate as an aggregate for this object instance. The actual aggregate is the part context's aggregate/parent. Aggregates and sub aggregates are associated through a PartCtx.

Parameters:
aggregate - the aggregate to be removed
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if aggregate is null, no aggregates are available, or the aggregate is not found

getAggregates

java.util.Enumeration getAggregates()
                                    throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Returns a list of all the aggregates (PartCtx).

Returns:
Enumeration an enumeration of PartCtx
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if there are no aggregates

removeAllAggregates

void removeAllAggregates()
Removes all the aggregates from the list of aggregates.



Copyright © 1997-2012 All Rights Reserved.