Class DefaultContextSchedulableControllerAction<T>
java.lang.Object
repast.simphony.engine.controller.AbstractControllerAction<T>
repast.simphony.engine.controller.NullAbstractControllerAction
repast.simphony.engine.controller.DefaultContextSchedulableControllerAction<T>
- All Implemented Interfaces:
DescriptorControllerAction<ContextSchedulableDescriptor<T>>,ControllerAction
public class DefaultContextSchedulableControllerAction<T>
extends NullAbstractControllerAction
implements DescriptorControllerAction<ContextSchedulableDescriptor<T>>
An action that takes a
ContextSchedulableDescriptor
and schedules it using
ISchedule.scheduleIterable(ScheduleParameters, Iterable, String, boolean, Object...). The
scheduled Iterable will be a FilterIterable that takes in the context and the descriptor's
filter. The method name will be that returned by the descriptor.- Author:
- Jerry Vos
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected IterablegetContextFilter(Context context, org.apache.commons.collections15.Predicate filter) voidrunInitialize(RunState runState, Context context, Parameters runParams) Schedules on the model schedule the descriptor's iterable with it executing the descriptor's method name.Methods inherited from class repast.simphony.engine.controller.NullAbstractControllerAction
runCleanupMethods inherited from class repast.simphony.engine.controller.AbstractControllerAction
accept, batchCleanup, batchInitialize, findContextInRunState, runCleanup, runInitializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface repast.simphony.engine.environment.ControllerAction
batchCleanup, batchInitialize, runCleanup, runInitialize
-
Constructor Details
-
DefaultContextSchedulableControllerAction
-
-
Method Details
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescriptorControllerAction<T>
-
runInitialize
Schedules on the model schedule the descriptor's iterable with it executing the descriptor's method name.- Overrides:
runInitializein classNullAbstractControllerAction- Parameters:
runState- the RunState to fetch the model schedule fromcontext- the context that will be used to filter agents from
-
getContextFilter
-