Package repast.simphony.engine.schedule
Class DefaultContextSchedulableDescriptor<T>
java.lang.Object
repast.simphony.engine.schedule.DefaultDescriptor
repast.simphony.engine.schedule.DefaultContextSchedulableDescriptor<T>
- All Implemented Interfaces:
ContextSchedulableDescriptor<T>,Descriptor,PredicateFiltered<T>
public class DefaultContextSchedulableDescriptor<T>
extends DefaultDescriptor
implements ContextSchedulableDescriptor<T>
Default implementation of a
ContextSchedulableDescriptor.- Version:
- $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
- Author:
- Jerry Vos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.collections15.Predicate<T>Retrieves the filter to use on the context to pull agents out and execute them.Retrieves the name of the method to call on the filtered objects.Retrieves the parameters for when the action should occur.booleanRetrieves whether or not to shuffle the list of objects before executing them or not.voidSets the filter to use on the context to pull agents out and execute them.voidsetMethodName(String methodName) Sets the name of the method to call on the filtered objects.voidsetScheduleParameters(ScheduleParameters scheduleParameters) Sets the parameters for when the action should occur.voidsetShuffle(boolean shuffle) Sets whether or not to shuffle the list of objects before executing them or not.Methods inherited from class repast.simphony.engine.schedule.DefaultDescriptor
getName, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface repast.simphony.engine.schedule.Descriptor
getName, setName
-
Constructor Details
-
DefaultContextSchedulableDescriptor
public DefaultContextSchedulableDescriptor()
-
-
Method Details
-
setFilter
Sets the filter to use on the context to pull agents out and execute them.- Specified by:
setFilterin interfacePredicateFiltered<T>- Parameters:
filter- the filter to apply to the context
-
getFilter
Retrieves the filter to use on the context to pull agents out and execute them.- Specified by:
getFilterin interfacePredicateFiltered<T>- Returns:
- the filter to apply to the context
-
setShuffle
public void setShuffle(boolean shuffle) Sets whether or not to shuffle the list of objects before executing them or not.- Specified by:
setShufflein interfaceContextSchedulableDescriptor<T>- Parameters:
shuffle- whether or not to shuffle the list of objects before executing them or not- See Also:
-
getShuffle
public boolean getShuffle()Retrieves whether or not to shuffle the list of objects before executing them or not.- Specified by:
getShufflein interfaceContextSchedulableDescriptor<T>- Returns:
- whether or not to shuffle the list of objects before executing them or not
- See Also:
-
getScheduleParameters
Retrieves the parameters for when the action should occur.- Specified by:
getScheduleParametersin interfaceContextSchedulableDescriptor<T>- Returns:
- parameters for the action's execution
-
setScheduleParameters
Sets the parameters for when the action should occur.- Specified by:
setScheduleParametersin interfaceContextSchedulableDescriptor<T>- Parameters:
scheduleParameters- parameters for the action's execution
-
setMethodName
Sets the name of the method to call on the filtered objects.- Specified by:
setMethodNamein interfaceContextSchedulableDescriptor<T>- Parameters:
methodName- name of the method to call on the filtered objects.
-
getMethodName
Retrieves the name of the method to call on the filtered objects.- Specified by:
getMethodNamein interfaceContextSchedulableDescriptor<T>- Returns:
- name of the method to call on the filtered objects.
-