public class SimtActivity extends SuspendableActivity
Modifier and Type | Class and Description |
---|---|
protected static class |
SimtActivity.CommonSimtActivityData |
Modifier and Type | Field and Description |
---|---|
protected SimtActivity.CommonSimtActivityData |
commonSynchronizedData |
protected long |
workInMiliseconds |
coroutine
executionException, launchedFinishState, listenerList, rootFinishState
Modifier | Constructor and Description |
---|---|
protected |
SimtActivity(String name,
HjPlace hjPlace,
long workInMiliseconds,
int maxParallelism,
int startRange,
int endRange,
HjSuspendingProcedureInt2D runnable,
SimtRuntime hjRuntime,
HabaneroActivity parentActivity,
HjPhaserPair ph)
Constructor for SimtActivity.
|
protected |
SimtActivity(String name,
HjPlace hjPlace,
long workInMiliseconds,
int maxParallelism,
int startRange,
int endRange,
HjSuspendingProcedureInt2D runnable,
SimtRuntime hjRuntime,
HabaneroActivity parentActivity,
HjPhaserPair ph,
SimtActivity.CommonSimtActivityData commonSynchronizedData) |
Modifier and Type | Method and Description |
---|---|
boolean |
addWorker(SimtThread worker) |
boolean |
canJoin() |
void |
executeBody()
This method represents the body of the task.
|
HabaneroActivity |
getParentActivity() |
HjPhaserPair |
getPhaser() |
boolean |
goAhead() |
checkSuspendableOperation, completedExecution, executeBodyGuarded, executeTask, isAborted, prepareToCompleteFinish, prepareToRunInFinish, processCoroutine, shouldBypassExecution
currentFinishState, finalizeActivitySpawn, finalizeTermination, finalizeTermination, finalizeTerminationCleanup, handleException, id, join, name, newFinishState, notifyActivitySpawn, notifyResumption, notifySuspension, place, pushException, registerListener, retrieveTargetFinishState, run, setRootActivityFinishState, startFinish, stopFinish, toString
protected final long workInMiliseconds
protected final SimtActivity.CommonSimtActivityData commonSynchronizedData
protected SimtActivity(String name, HjPlace hjPlace, long workInMiliseconds, int maxParallelism, int startRange, int endRange, HjSuspendingProcedureInt2D runnable, SimtRuntime hjRuntime, HabaneroActivity parentActivity, HjPhaserPair ph)
Constructor for SimtActivity.
name
- Name of the activityrunnable
- The runnable block to executeprotected SimtActivity(String name, HjPlace hjPlace, long workInMiliseconds, int maxParallelism, int startRange, int endRange, HjSuspendingProcedureInt2D runnable, SimtRuntime hjRuntime, HabaneroActivity parentActivity, HjPhaserPair ph, SimtActivity.CommonSimtActivityData commonSynchronizedData)
public HjPhaserPair getPhaser()
public HabaneroActivity getParentActivity()
public boolean addWorker(SimtThread worker)
public boolean canJoin()
public boolean goAhead()
public final void executeBody() throws SuspendableException
executeBody
in class SuspendableActivity
SuspendableException
- to mark that the body contains a suspendable condition.Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.