Class SchedulingControllerAction
- java.lang.Object
-
- repast.simphony.engine.environment.DefaultControllerAction
-
- repast.simphony.engine.controller.SchedulingControllerAction
-
- All Implemented Interfaces:
ControllerAction
- Direct Known Subclasses:
FreezerControllerAction
public class SchedulingControllerAction extends DefaultControllerAction
This is a simple action that schedules anIAction
in itsrunInitialize(RunState, Object, Parameters)
method using a givenScheduleParameters
.- Author:
- Jerry Vos
-
-
Field Summary
Fields Modifier and Type Field Description protected IAction
action
protected ScheduleParameters
scheduleParams
-
Constructor Summary
Constructors Constructor Description SchedulingControllerAction(ScheduleParameters scheduleParams, IAction action)
Constructs this with the specified parameters and action to be scheduled during the sim's initialization.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
runInitialize(RunState runState, Object contextId, Parameters runParams)
Schedule's the action with the schedule parameters on the schedule.-
Methods inherited from class repast.simphony.engine.environment.DefaultControllerAction
batchCleanup, batchInitialize, runCleanup
-
-
-
-
Field Detail
-
action
protected IAction action
-
scheduleParams
protected ScheduleParameters scheduleParams
-
-
Constructor Detail
-
SchedulingControllerAction
public SchedulingControllerAction(ScheduleParameters scheduleParams, IAction action)
Constructs this with the specified parameters and action to be scheduled during the sim's initialization.- Parameters:
scheduleParams
- the schedule's parametersaction
- the action to schedule
-
-
Method Detail
-
runInitialize
public void runInitialize(RunState runState, Object contextId, Parameters runParams)
Schedule's the action with the schedule parameters on the schedule.- Specified by:
runInitialize
in interfaceControllerAction
- Overrides:
runInitialize
in classDefaultControllerAction
- Parameters:
runState
- ignoredcontextId
- ignoredrunParams
- ignored
-
-