|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx gov.nasa.arc.brahms.common.rt.ActivityCtx gov.nasa.arc.brahms.common.rt.PrimitiveActivityCtx gov.nasa.arc.brahms.common.rt.BroadcastActivityCtx
public class BroadcastActivityCtx
The BroadcastActivityCtx maintains the context of a broadcast 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, with whom or what the broadcast is with, what the communication is about, the type of communication and when the communication is to occur during the activity. The virtual machine determines with whom or what the communication of the broadcast is with.
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 | |
---|---|
BroadcastActivityCtx(BroadcastActivity act)
Constructor, creates a new context for the specified BroadcastActivity. |
Method Summary | |
---|---|
void |
addAbout(TransferDefinitionCtx about)
Adds the transfer definition specifying a piece of information that was communicated in the activity. |
void |
addWith(ParameterCtx ai)
Adds the active instance with which is to be communicated. |
java.util.Enumeration |
getAbout()
Returns the transfer definitions specifying the information that was communicated in the activity. |
ParameterCtx |
getType()
Returns the communication type (face 2 face, e-mail, etc). |
ParameterCtx |
getWhen()
Returns when the communication is to take place (start or end). |
java.util.Enumeration |
getWith()
Returns the active instances with which is to be communicated. |
void |
removeAbout(TransferDefinitionCtx about)
Removes the transfer definition specifying a piece of information that was communicated in the activity. |
void |
removeWith(ParameterCtx ai)
Removes the active instance with which is to be communicated. |
void |
setType(ParameterCtx type)
Sets the communication type (face 2 face, e-mail, etc). |
void |
setWhen(ParameterCtx when)
Sets when the communication is to take place (start or end). |
Methods inherited from class gov.nasa.arc.brahms.common.rt.PrimitiveActivityCtx |
---|
addResource, getDuration, getElapsedTime, getMaxDuration, getMinDuration, getRandom, getResourceCount, getResources, removeResource, setDuration, setElapsedTime, setMaxDuration, setMinDuration, setRandom |
Methods inherited from class gov.nasa.arc.brahms.common.rt.ActivityCtx |
---|
getCompletionCause, getDisplayText, getParentFrame, getPerformedBy, getPriority, getReferencedBy, getState, getStatus, setCompletionCause, setDisplayText, setParentFrame, setPerformedBy, setPriority, setReferencedBy, setState, setState, setStatus, toString |
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.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 |
Constructor Detail |
---|
public BroadcastActivityCtx(BroadcastActivity act)
act
- the BroadcastActivity for which to create a contextMethod Detail |
---|
public void setType(ParameterCtx type) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
type
- the ParameterCtx defining the communication type
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null type is definedpublic ParameterCtx getType() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getType
in interface IBroadcastActivityCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no type is definedpublic void setWhen(ParameterCtx when) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
when
- the ParameterCtx defining the when the communication is to occur
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null when value is definedpublic ParameterCtx getWhen() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getWhen
in interface IBroadcastActivityCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the when value is not definedpublic void addWith(ParameterCtx ai) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
ai
- the active instance to communicate with
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null active instance is specifiedpublic void removeWith(ParameterCtx ai) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
ai
- the active instance to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null active instance is specified, or
no active instances are specified or the active instance
is not foundpublic java.util.Enumeration getWith() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getWith
in interface IBroadcastActivityCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no active instances are specifiedpublic void addAbout(TransferDefinitionCtx about) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
about
- the communicated transfer definition
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null transfer definition is specifiedpublic void removeAbout(TransferDefinitionCtx about) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
about
- the communicated transfer definition
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null transfer definition is specified, or
no transfer definitions are specified or the transfer definition
is not foundpublic java.util.Enumeration getAbout() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getAbout
in interface IBroadcastActivityCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no transfer definitions are specified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |