public enum SchedulingAction extends Enum<SchedulingAction>
Scheduler
agent.
It could be used by an agent to interact with the scheduler
by creating Action
using getActionFor(Scheduler, Object...)
.Enum Constant and Description |
---|
PAUSE |
RUN |
SHUTDOWN |
SPEED_DOWN |
SPEED_UP |
STEP |
Modifier and Type | Method and Description |
---|---|
Action |
getActionFor(Scheduler theScheduler,
Object... parameters)
Builds an action that will make the corresponding
scheduler do the related operation if possible.
|
ActionInfo |
getActionInfo() |
static SchedulingAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SchedulingAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SchedulingAction RUN
public static final SchedulingAction STEP
public static final SchedulingAction SPEED_UP
public static final SchedulingAction SPEED_DOWN
public static final SchedulingAction PAUSE
public static final SchedulingAction SHUTDOWN
public static SchedulingAction[] values()
for (SchedulingAction c : SchedulingAction.values()) System.out.println(c);
public static SchedulingAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic ActionInfo getActionInfo()
public Action getActionFor(Scheduler theScheduler, Object... parameters)
theScheduler
- the scheduler on which the
action will be triggered if possibleparameters
- the info
Fabien Michel, Olivier Gutknecht, Jacques Ferber - March 9 2017