|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICreateAreaActivityCtx
The ICreateAreaActivityCtx interface is the interface for create area activity contexts. A CreateAreaActivityCtx maintains the context of a create area activity being or to be executed by an active instance. The context maintains the start and end times for an activity, the duration, priority, status, randomness, duration, resources, parent area definition, aggregate area, destination variable, name of the destination area, and when the creation is to take place.
Method Summary | |
---|---|
void |
addBoundVariable(VariableCtx var)
Adds the specified variable as a variable bound by this activity. |
java.util.Enumeration |
getBoundVariables()
Returns a list of all the variables used by this activity. |
ParameterCtx |
getDestination()
Returns the create area's destination variable. |
ParameterCtx |
getDestinationName()
Returns the name for the created area. |
java.util.Enumeration |
getInhabitants()
Returns a list of the agents or objects that have to be added as inhabitants to the new area. |
ParameterCtx |
getInstanceOf()
Returns the area definition the new area is to be made an instance of. |
ParameterCtx |
getPartOf()
Returns the area the new area is to be made a part/sub area of. |
ParameterCtx |
getWhen()
Returns when the create area action is to take place (start or end). |
void |
removeBoundVariable(VariableCtx var)
Removes the specified variable as a variable bound by this activity. |
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IPrimitiveActivityCtx |
---|
addResource, getDuration, getElapsedTime, getMaxDuration, getMinDuration, getRandom, getResourceCount, getResources, removeResource, setElapsedTime |
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IActivityCtx |
---|
getCompletionCause, getDisplayText, getParentFrame, getPerformedBy, getPriority, getReferencedBy, getStatus, setCompletionCause, setDisplayText, setParentFrame, setPerformedBy, setReferencedBy, setStatus |
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx |
---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime |
Method Detail |
---|
ParameterCtx getInstanceOf() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the instance of value is not definedParameterCtx getPartOf() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the part of value is not definedjava.util.Enumeration getInhabitants() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no inhabitantsParameterCtx getWhen() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the when value is not definedParameterCtx getDestination() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no destination is specifiedParameterCtx getDestinationName() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no destination name is specifiedvoid addBoundVariable(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 removeBoundVariable(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 getBoundVariables() 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 |