|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.action.Activity
etomica.action.activity.ActivityGroupSeries
public class ActivityGroupSeries
Organizer of simulation actions to be executed in series.
| Field Summary | |
|---|---|
protected IAction[] |
completedActions
|
protected IAction |
currentAction
|
protected int |
numActions
|
protected boolean |
pauseAfterEachAction
|
protected IAction[] |
pendingActions
|
| Fields inherited from class etomica.action.Activity |
|---|
haltRequested, isActive, pauseRequested |
| Constructor Summary | |
|---|---|
ActivityGroupSeries()
|
|
| Method Summary | |
|---|---|
void |
addAction(IAction newAction)
Adds the given action to the list of actions. |
IAction[] |
getAllActions()
Returns all actions from this group. |
IAction[] |
getCompletedActions()
Returns all actions from this group that have been completed. |
IAction[] |
getCurrentActions()
Returns all actions from this group that are currently being performed. |
IAction[] |
getPendingActions()
Returns all actions from this group that have not yet started. |
void |
halt()
Request that the activity group terminate its thread as soon as possible. |
boolean |
isPauseAfterEachAction()
|
boolean |
isPaused()
Queries whether the integrator is in a state of being paused. |
void |
pause()
Requests a pause in the performance of the actions. |
boolean |
removeAction(IAction action)
Removes the given action from the list of actions performed by this controller. |
void |
reset()
Marks all actions as pending. |
protected void |
run()
Causes uncompleted actions added to this group to be run in sequence. |
void |
setPauseAfterEachAction(boolean pauseAfterEachAction)
|
void |
unPause()
Removes activity group from the paused state, resuming execution where it left off. |
| Methods inherited from class etomica.action.Activity |
|---|
actionPerformed, doContinue, doWait, isActive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface etomica.action.IAction |
|---|
actionPerformed |
| Field Detail |
|---|
protected IAction currentAction
protected boolean pauseAfterEachAction
protected int numActions
protected IAction[] pendingActions
protected IAction[] completedActions
| Constructor Detail |
|---|
public ActivityGroupSeries()
| Method Detail |
|---|
public void addAction(IAction newAction)
addAction in interface ActionGrouppublic boolean removeAction(IAction action)
removeAction in interface ActionGrouppublic void reset()
public IAction[] getPendingActions()
ActivityGroup
getPendingActions in interface ActivityGrouppublic IAction[] getCurrentActions()
ActivityGroup
getCurrentActions in interface ActivityGrouppublic IAction[] getCompletedActions()
ActivityGroup
getCompletedActions in interface ActivityGrouppublic IAction[] getAllActions()
ActionGroup
getAllActions in interface ActionGroupprotected void run()
run in class Activitypublic void pause()
pause in class Activitypublic void unPause()
unPause in class Activitypublic void halt()
halt in class Activitypublic boolean isPaused()
Activity
isPaused in class Activitypublic boolean isPauseAfterEachAction()
public void setPauseAfterEachAction(boolean pauseAfterEachAction)
pauseAfterEachAction - specifies whether activity should pause upon
completing each action (true), or if next action should begin immediately
upon completion of current action.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||