public class HabaneroActivityFactory extends Object
Constructor and Description |
---|
HabaneroActivityFactory() |
Modifier and Type | Method and Description |
---|---|
static RunnableActivity |
adapt(String activityName,
HjPlace hjPlace,
HjRunnable runnable)
Factory method for
RunnableActivity instances. |
static SuspendableActivity |
adapt(String activityName,
HjPlace hjPlace,
HjSuspendable suspendable)
Factory method for
SuspendableActivity instances. |
public static RunnableActivity adapt(String activityName, HjPlace hjPlace, HjRunnable runnable)
RunnableActivity
instances.activityName
- The name of the activity.runnable
- the runnable action.HjRunnable
as its actionpublic static SuspendableActivity adapt(String activityName, HjPlace hjPlace, HjSuspendable suspendable)
SuspendableActivity
instances.activityName
- The name of the activity.suspendable
- the suspendable action.HjSuspendable
as its actionCopyright © 2015 Rice University - Department of Computer Science. All rights reserved.