|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class that provides an object interface to an activity.. The ActivityControl class specifies an object that can be attached to an activity (regardless of how or where that activity is created) for the purpose of explicitly controlling the execution of actions on that activity's action plan. There is nothing that available through this class that is not already available through the variables or messages available via the activity itself. However, it packages up the main control messages and makes them available to other objects that may need control over an activity, thereby shielding the activity from directly receiving messages from outside objects and saving the user from having to parse the more complex interface to the activity.
Method Summary | |
void |
attachToActivity(ScheduleActivity anActivity)
The attachToActivity: method sets an instance variable inside the ActivityControl object that points to the Activity to be controlled. |
ScheduleActivity |
getActivity()
Return the controlled activity. |
Symbol |
getStatus()
The getStatus method returns the status of the activity. |
Symbol |
nextAction()
The next method sends a next message to the activity if the conditions are appropriate. |
Symbol |
runActivity()
The run method sends a run message to the activity if the conditions are appropriate. |
Symbol |
stepAction()
The step method sends a step message to the activity if the conditions are appropriate. |
Symbol |
stepUntil(int stopTime)
The stepUntil: method sends a stepUntil: message to the activity if conditions are appropriate. |
Symbol |
stopActivity()
The stop method sends a stop message to the activity if the conditions are appropriate. |
void |
terminate()
Recursively removes all subactivities. |
void |
updateStateVar()
The updateStateVar method updates the ActivityControl instance variables and tests for the continued existence of the activity that is being controlled. |
Methods inherited from interface swarm.objectbase.SwarmObject |
getCompleteProbeMap,
getProbeForMessage,
getProbeForVariable,
getProbeMap |
Methods inherited from interface swarm.defobj.Drop |
drop |
Methods inherited from interface swarm.defobj.DefinedObject |
compare,
describe,
describeID,
getDisplayName,
getTypeName,
getZone,
perform,
perform$with,
perform$with$with,
perform$with$with$with,
respondsTo,
setDisplayName,
xfprint,
xfprintid,
xprint,
xprintid |
Methods inherited from interface swarm.defobj.GetName |
getName |
Method Detail |
public void attachToActivity(ScheduleActivity anActivity)
public Symbol runActivity()
public Symbol stopActivity()
public Symbol nextAction()
public Symbol stepAction()
public Symbol stepUntil(int stopTime)
public void updateStateVar()
public Symbol getStatus()
public void terminate()
public ScheduleActivity getActivity()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |