|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.action.Activity
etomica.action.activity.ActivityGroupParallel
public class ActivityGroupParallel
Organizer of simulation actions to be executed in parallel, each on its own thread.
| Field Summary | |
|---|---|
protected IAction[] |
actions
|
protected etomica.action.activity.ActivityGroupParallel.MyThread |
firstThread
|
protected etomica.action.activity.ActivityGroupParallel.MyThread |
lastThread
|
protected int |
numActions
|
| Fields inherited from class etomica.action.Activity |
|---|
haltRequested, isActive, pauseRequested |
| Constructor Summary | |
|---|---|
ActivityGroupParallel()
|
|
ActivityGroupParallel(IAction[] actions)
|
|
| Method Summary | |
|---|---|
void |
addAction(IAction newAction)
Adds the given newAction to this group. |
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 terminate as soon as safely possible. |
void |
pause()
Requests that the Activity pause its execution. |
boolean |
removeAction(IAction action)
Removes the given oldAction from the group. |
protected void |
run()
Method defining the behavior of the activity. |
void |
setActions(IAction[] actions)
|
void |
unPause()
Removes activity from the paused state, resuming execution where it left off. |
| Methods inherited from class etomica.action.Activity |
|---|
actionPerformed, doContinue, doWait, isActive, isPaused |
| 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 int numActions
protected IAction[] actions
protected etomica.action.activity.ActivityGroupParallel.MyThread lastThread
protected etomica.action.activity.ActivityGroupParallel.MyThread firstThread
| Constructor Detail |
|---|
public ActivityGroupParallel()
public ActivityGroupParallel(IAction[] actions)
| Method Detail |
|---|
protected void run()
Activity
run in class Activitypublic void halt()
Activity
halt in class Activitypublic void unPause()
Activity
unPause in class Activitypublic void pause()
Activity
pause in class Activitypublic IAction[] getAllActions()
ActionGroup
getAllActions in interface ActionGrouppublic IAction[] getCompletedActions()
ActivityGroup
getCompletedActions in interface ActivityGrouppublic IAction[] getPendingActions()
ActivityGroup
getPendingActions in interface ActivityGrouppublic IAction[] getCurrentActions()
ActivityGroup
getCurrentActions in interface ActivityGrouppublic void setActions(IAction[] actions)
public void addAction(IAction newAction)
ActionGroup
addAction in interface ActionGrouppublic boolean removeAction(IAction action)
ActionGroup
removeAction in interface ActionGroup
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||