Class DefaultSchedulableAction
- java.lang.Object
-
- repast.simphony.engine.environment.DefaultControllerAction
-
- repast.simphony.engine.controller.DefaultSchedulableAction
-
- All Implemented Interfaces:
DescriptorControllerAction<SchedulableDescriptor>
,ControllerAction
public class DefaultSchedulableAction extends DefaultControllerAction implements DescriptorControllerAction<SchedulableDescriptor>
An action that takes aSchedulableDescriptor
and will schedule it to the model's schedule.- Author:
- Jerry Vos
-
-
Constructor Summary
Constructors Constructor Description DefaultSchedulableAction(SchedulableDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ControllerActionVisitor visitor)
Accepts the specified visitor.SchedulableDescriptor
getDescriptor()
void
runInitialize(RunState runState, Object contextId, Parameters runParams)
Schedules on the model schedule the descriptor's IAction with the descriptor's ScheduleParameters.-
Methods inherited from class repast.simphony.engine.environment.DefaultControllerAction
batchCleanup, batchInitialize, runCleanup
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface repast.simphony.engine.environment.ControllerAction
batchCleanup, batchInitialize, runCleanup
-
-
-
-
Constructor Detail
-
DefaultSchedulableAction
public DefaultSchedulableAction(SchedulableDescriptor descriptor)
-
-
Method Detail
-
getDescriptor
public SchedulableDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescriptorControllerAction<SchedulableDescriptor>
-
runInitialize
public void runInitialize(RunState runState, Object contextId, Parameters runParams)
Schedules on the model schedule the descriptor's IAction with the descriptor's ScheduleParameters.- Specified by:
runInitialize
in interfaceControllerAction
- Overrides:
runInitialize
in classDefaultControllerAction
- Parameters:
RunState
- the RunState to grab the model schedule fromcontextId
- ignoredrunParams
- ignored
-
accept
public void accept(ControllerActionVisitor visitor)
Accepts the specified visitor.- Parameters:
visitor
- the visitor to accept
-
-