|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAreaCtx
The IAreaCtx interface is the interface for the runtime representation of areas defined in a Brahms model. The area context manages the creation and deletion time of the areas. Area contexts are also used to trace the traveled path of an active instance. In the case an area context is used to define a traveled path the start and end time represent the time the active instance arrived in the area and when the active instance left the area. The area context also manages a list of the active instances present in the location.
Method Summary | |
---|---|
void |
addInhabitant(ActiveInstanceCtx inhabitant)
Adds the specified active instance to this location as an inhabitant |
java.util.Enumeration |
getInhabitants()
Returns a list of all the inhabitants in this location |
boolean |
isInhabitant(ActiveInstanceCtx inhabitant)
Returns whether or not the specified inhabitant is an inhabitant of this area. |
void |
removeAllInhabitants()
Removes all inhabitants from this area. |
void |
removeInhabitant(ActiveInstanceCtx inhabitant)
Removes the specified active instance from this location as an inhabitant |
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 addInhabitant(ActiveInstanceCtx inhabitant) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
inhabitant
- the active instance to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null inhabitant is specifiedvoid removeInhabitant(ActiveInstanceCtx inhabitant) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
inhabitant
- the active instance to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null inhabitant is specified, if no inhabitants
are present in the location or if the inhabitant is not foundboolean isInhabitant(ActiveInstanceCtx inhabitant)
inhabitant
- the inhabitant to be tested
java.util.Enumeration getInhabitants()
void removeAllInhabitants()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |