|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.engine.BasicAction
uchicago.src.sim.engine.ScheduleBase
public abstract class ScheduleBase
Abstract base class for Schedule and SubSchedule. Provides methods to schedule BasicActions for execution.
BasicAction,
ActionGroup,
Schedule| Nested Class Summary | |
|---|---|
static class |
ScheduleBase.Order
|
| Field Summary | |
|---|---|
protected ActionQueue |
actionQueue
|
static ScheduleBase.Order |
CONCURRENT
An action marked as CONCURRENT will occur at some point during a tick. |
protected ScheduleGroup |
groupToExecute
|
protected long |
indexCount
|
static ScheduleBase.Order |
LAST
An action marked as LAST will occur at the end of a tick, after those marked CONCURRENT or RANDOM. |
protected ScheduleGroup |
lastGroup
|
protected ActionQueue |
lastQueue
|
protected boolean |
preExecuted
|
protected RandomScheduleGroup |
randGroup
|
static ScheduleBase.Order |
RANDOM
RANDOM is just a more explanatory synonym for CONCURRENT. |
protected double |
repeatInterval
|
protected double |
ticks
|
protected ScheduleGroup |
topGroup
|
| Fields inherited from class uchicago.src.sim.engine.BasicAction |
|---|
INTERVAL_UPDATER, ONE_TIME_UPDATER, updater |
| Constructor Summary | |
|---|---|
ScheduleBase()
Constructs a schedule that with a default execution interval of 1. |
|
ScheduleBase(double executionInterval)
Constructs a schedule that executes at the specified interval. |
|
| Method Summary | |
|---|---|
double |
getCurrentTime()
Gets the current clock tick. |
double |
getCurrentTimeDouble()
Deprecated. |
void |
preExecute()
|
BasicAction |
removeAction(BasicAction action)
Removes the specified action from this Schedule. |
void |
removeActionAt(double at,
BasicAction action)
Removes the specified action from this Schedule at the specified tick. |
BasicAction |
scheduleActionAt(double at,
BasicAction action)
Schedules the specified BasicAction to occur at the specified clock tick in RANDOM order. |
BasicAction |
scheduleActionAt(double at,
BasicAction action,
double duration)
Schedules the specified BasicAction to occur at the specified clock tick in RANDOM order. |
BasicAction |
scheduleActionAt(double at,
BasicAction action,
ScheduleBase.Order order)
Schedules the specified BasicAction to occur at the specified clock tick in the specified order. |
protected BasicAction |
scheduleActionAt(double at,
BasicAction action,
ScheduleBase.Order order,
double duration)
Schedules the specified BasicAction to occur at the specified clock tick in the specified order. |
BasicAction |
scheduleActionAt(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick. |
BasicAction |
scheduleActionAt(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick. |
BasicAction |
scheduleActionAt(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick in the specified order. |
protected BasicAction |
scheduleActionAt(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick in the specified order. |
BasicAction |
scheduleActionAt(double at,
java.util.List list,
java.lang.String methodName)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick. |
BasicAction |
scheduleActionAt(double at,
java.util.List list,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick. |
BasicAction |
scheduleActionAt(double at,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick in the specified order. |
protected BasicAction |
scheduleActionAt(double at,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick in the specified order. |
BasicAction |
scheduleActionAt(double at,
java.lang.Object o,
java.lang.String methodName)
Schedules the execution of the specified method on the specified object to occur at the specified clock tick. |
BasicAction |
scheduleActionAt(double at,
java.lang.Object o,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on the specified object to occur at the specified clock tick. |
BasicAction |
scheduleActionAt(double at,
java.lang.Object o,
java.lang.String methodName,
ScheduleBase.Order order)
Schedules the execution of the specified method on the specified object to occur at the specified clock tick in the specified order. |
protected BasicAction |
scheduleActionAt(double at,
java.lang.Object o,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
Schedules the execution of the specified method on the specified object to occur at the specified clock tick in the specified order. |
BasicAction |
scheduleActionAtInterval(double interval,
BasicAction action)
Schedule the specified BasicAction to execute at the specified interval, (e.g. every 3 clock ticks). |
BasicAction |
scheduleActionAtInterval(double interval,
BasicAction action,
double duration)
Schedule the specified BasicAction to execute at the specified interval, (e.g. every 3 clock ticks). |
BasicAction |
scheduleActionAtInterval(double interval,
BasicAction action,
ScheduleBase.Order order)
Schedule the specified BasicAction to execute at the specified interval, (e.g. every 3 clock ticks) in the specified order. |
protected BasicAction |
scheduleActionAtInterval(double interval,
BasicAction action,
ScheduleBase.Order order,
double duration)
Schedule the specified BasicAction to execute at the specified interval, (e.g. every 3 clock ticks) in the specified order. |
BasicAction |
scheduleActionAtInterval(double interval,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval (e.g. every three clock ticks) in the specified order. |
protected BasicAction |
scheduleActionAtInterval(double interval,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval (e.g. every three clock ticks) in the specified order. |
BasicAction |
scheduleActionAtInterval(double interval,
java.util.List list,
java.lang.String methodName)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval. |
BasicAction |
scheduleActionAtInterval(double interval,
java.util.List list,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval. |
BasicAction |
scheduleActionAtInterval(double interval,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval. |
protected BasicAction |
scheduleActionAtInterval(double interval,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval. |
BasicAction |
scheduleActionAtInterval(double interval,
java.lang.Object o,
java.lang.String methodName)
Schedules the execution of the specified method on the specified object at the specified interval, (e.g. every 3 clock ticks). |
BasicAction |
scheduleActionAtInterval(double interval,
java.lang.Object o,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on the specified object at the specified interval, (e.g. every 3 clock ticks). |
BasicAction |
scheduleActionAtInterval(double interval,
java.lang.Object o,
java.lang.String methodName,
ScheduleBase.Order order)
Schedules the execution of the specified method on the specified object at the specified interval, (e.g. every 3 clock ticks) in the specified order. |
protected BasicAction |
scheduleActionAtInterval(double interval,
java.lang.Object o,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
Schedules the execution of the specified method on the specified object at the specified interval, (e.g. every 3 clock ticks) in the specified order. |
BasicAction |
scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval (e.g. every three clock ticks). |
BasicAction |
scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval (e.g. every three clock ticks). |
BasicAction |
scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval (e.g. every three clock ticks) in the specified order. |
protected BasicAction |
scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval (e.g. every three clock ticks) in the specified order. |
BasicAction |
scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.String methodName)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval. |
BasicAction |
scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval. |
BasicAction |
scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval. |
protected BasicAction |
scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified interval. |
BasicAction |
scheduleActionAtRnd(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick. |
BasicAction |
scheduleActionAtRnd(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick. |
BasicAction |
scheduleActionAtRnd(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick in the specified order. |
BasicAction |
scheduleActionAtRnd(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick in the specified order. |
BasicAction |
scheduleActionAtRnd(double at,
java.util.List list,
java.lang.String methodName)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick. |
BasicAction |
scheduleActionAtRnd(double at,
java.util.List list,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick. |
BasicAction |
scheduleActionAtRnd(double at,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick in the specified order. |
protected BasicAction |
scheduleActionAtRnd(double at,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur at the specified clock tick in the specified order. |
BasicAction |
scheduleActionBeginning(double beginning,
BasicAction action)
Schedules the specified BasicAction to execute starting at the specified clock tick and every tick thereafter. |
BasicAction |
scheduleActionBeginning(double beginning,
BasicAction action,
double duration)
Schedules the specified BasicAction to execute starting at the specified clock tick and every tick thereafter. |
BasicAction |
scheduleActionBeginning(double beginning,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
Schedules the execution of the specified method on every object in the specified List to occur beginning at the specified clock tick and every tick thereafter. |
BasicAction |
scheduleActionBeginning(double beginning,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur beginning at the specified clock tick and every tick thereafter. |
BasicAction |
scheduleActionBeginning(double beginning,
java.util.List list,
java.lang.String methodName)
Schedules the execution of the specified method on every object in the specified List to occur beginning at the specified clock tick and every tick thereafter. |
BasicAction |
scheduleActionBeginning(double beginning,
java.util.List list,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur beginning at the specified clock tick and every tick thereafter. |
BasicAction |
scheduleActionBeginning(double beginning,
java.lang.Object o,
java.lang.String methodName)
Schedules the execution of the specified method on the specified object to start at the specified clock tick and continue every tick thereafter. |
BasicAction |
scheduleActionBeginning(double beginning,
java.lang.Object o,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on the specified object to start at the specified clock tick and continue every tick thereafter. |
BasicAction |
scheduleActionBeginningRnd(double beginning,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
Schedules the execution of the specified method on every object in the specified List to occur beginning at the specified clock tick and every tick thereafter. |
BasicAction |
scheduleActionBeginningRnd(double beginning,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur beginning at the specified clock tick and every tick thereafter. |
BasicAction |
scheduleActionBeginningRnd(double beginning,
java.util.List list,
java.lang.String methodName)
Schedules the execution of the specified method on every object in the specified List to occur beginning at the specified clock tick and every tick thereafter. |
BasicAction |
scheduleActionBeginningRnd(double beginning,
java.util.List list,
java.lang.String methodName,
double duration)
Schedules the execution of the specified method on every object in the specified List to occur beginning at the specified clock tick and every tick thereafter. |
| Methods inherited from class uchicago.src.sim.engine.BasicAction |
|---|
addToGroup, execute, getIntervalTime, getName, getNextTime, reSchedule, setIntervalTime, setName, setNextTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ScheduleBase.Order LAST
public static final ScheduleBase.Order CONCURRENT
public static final ScheduleBase.Order RANDOM
protected double repeatInterval
protected volatile double ticks
protected ActionQueue actionQueue
protected ActionQueue lastQueue
protected ScheduleGroup topGroup
protected RandomScheduleGroup randGroup
protected ScheduleGroup lastGroup
protected ScheduleGroup groupToExecute
protected boolean preExecuted
protected long indexCount
| Constructor Detail |
|---|
public ScheduleBase()
Schedule(double)public ScheduleBase(double executionInterval)
executionInterval - the execution interval.| Method Detail |
|---|
public BasicAction scheduleActionAt(double at,
BasicAction action)
at - the clock tick to execute the action.action - the action to execute.
public BasicAction scheduleActionAt(double at,
BasicAction action,
ScheduleBase.Order order)
at - the clock tick to execute the action.action - the action to execute.order - the mode of the action - Schedule.LAST or
Schedule.RANDOM.
protected BasicAction scheduleActionAt(double at,
BasicAction action,
ScheduleBase.Order order,
double duration)
at - the clock tick to execute the action.action - the action to execute.order - the mode of the action - Schedule.LAST or
Schedule.RANDOM.duration - the length of the action.
public BasicAction scheduleActionAt(double at,
BasicAction action,
double duration)
at - the clock tick to execute the action.action - the action to execute.duration - the length of the action.
public BasicAction scheduleActionAtInterval(double interval,
BasicAction action)
interval - the interval at which to executeaction - the BasicAction to execute
public BasicAction scheduleActionAtInterval(double interval,
BasicAction action,
double duration)
interval - the interval at which to executeaction - the BasicAction to executeduration - the length of the action.
public BasicAction scheduleActionAtInterval(double interval,
BasicAction action,
ScheduleBase.Order order)
interval - the interval at which to executeaction - the BasicAction to executeorder - the order to execute this action relative to others
scheduled for this tick. order is one of Schedule.LAST, or
Schedule.RANDOM
protected BasicAction scheduleActionAtInterval(double interval,
BasicAction action,
ScheduleBase.Order order,
double duration)
interval - the interval at which to executeaction - the BasicAction to executeorder - the order to execute this action relative to others
scheduled for this tick. order is one of Schedule.LAST, or
Schedule.RANDOMduration - the length of the action.
public BasicAction scheduleActionBeginning(double beginning,
BasicAction action)
beginning - the clock tick to begin executingaction - the BasicAction to execute
public BasicAction scheduleActionBeginning(double beginning,
BasicAction action,
double duration)
beginning - the clock tick to begin executingaction - the BasicAction to executeduration - the length of the action.
public BasicAction scheduleActionAt(double at,
java.lang.Object o,
java.lang.String methodName)
at - the clock tick to execute the action.o - the object on which the method will be calledmethodName - the name of the method to call on the object.
public BasicAction scheduleActionAt(double at,
java.lang.Object o,
java.lang.String methodName,
double duration)
at - the clock tick to execute the action.o - the object on which the method will be calledmethodName - the name of the method to call on the object.duration - the length of the action.
public BasicAction scheduleActionAt(double at,
java.lang.Object o,
java.lang.String methodName,
ScheduleBase.Order order)
at - the clock tick to execute the action.o - the object on which the method will be calledmethodName - the name of the method to call on the object.order - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.
protected BasicAction scheduleActionAt(double at,
java.lang.Object o,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
at - the clock tick to execute the action.o - the object on which the method will be calledmethodName - the name of the method to call on the object.order - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.duration - the length of the action.
public BasicAction scheduleActionAtInterval(double interval,
java.lang.Object o,
java.lang.String methodName)
interval - the interval at which to executeo - the object on which the method will be calledmethodName - the name of the method to call
public BasicAction scheduleActionAtInterval(double interval,
java.lang.Object o,
java.lang.String methodName,
ScheduleBase.Order order)
interval - the interval at which to executeo - the object on which the method will be calledmethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.
public BasicAction scheduleActionAtInterval(double interval,
java.lang.Object o,
java.lang.String methodName,
double duration)
interval - the interval at which to executeo - the object on which the method will be calledmethodName - the name of the method to callduration - the length of the action.
protected BasicAction scheduleActionAtInterval(double interval,
java.lang.Object o,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
interval - the interval at which to executeo - the object on which the method will be calledmethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.duration - the length of the action.
public BasicAction scheduleActionBeginning(double beginning,
java.lang.Object o,
java.lang.String methodName)
beginning - the clock tick to begin executingo - the object on which the method will be calledmethodName - the name of the method to call
public BasicAction scheduleActionBeginning(double beginning,
java.lang.Object o,
java.lang.String methodName,
double duration)
beginning - the clock tick to begin executingo - the object on which the method will be calledmethodName - the name of the method to callduration - the length of the action.
public BasicAction scheduleActionAt(double at,
java.util.List list,
java.lang.String methodName)
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledmethodName - the name of the method to call
public BasicAction scheduleActionAt(double at,
java.util.List list,
java.lang.String methodName,
double duration)
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledmethodName - the name of the method to callduration - the length of the action.
public BasicAction scheduleActionAtRnd(double at,
java.util.List list,
java.lang.String methodName)
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledmethodName - the name of the method to call
SimUtilities
public BasicAction scheduleActionAtRnd(double at,
java.util.List list,
java.lang.String methodName,
double duration)
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledmethodName - the name of the method to callduration - the length of the action.
SimUtilities
public BasicAction scheduleActionAt(double at,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order)
This action executes only once, and ssumes all objects in the list are of the same class.
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledmethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.
protected BasicAction scheduleActionAt(double at,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
This action executes only once, and ssumes all objects in the list are of the same class.
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledmethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.duration - the length of the action.
public BasicAction scheduleActionAtRnd(double at,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order)
This action executes only once, and ssumes all objects in the list are of the same class.
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledmethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.
SimUtilities
protected BasicAction scheduleActionAtRnd(double at,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
This action executes only once, and ssumes all objects in the list are of the same class.
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledmethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.duration - the length of the action.
SimUtilities
public BasicAction scheduleActionAtInterval(double interval,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order)
Assumes all objects in the list are of the same class.
interval - the interval at which to execute the methodlist - the list containing the objects on which the method will be
called.methodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.
protected BasicAction scheduleActionAtInterval(double interval,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
Assumes all objects in the list are of the same class.
interval - the interval at which to execute the methodlist - the list containing the objects on which the method will be
called.methodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.duration - the length of the action.
public BasicAction scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order)
Assumes all objects in the list are of the same class.
interval - the interval at which to execute the methodlist - the list containing the objects on which the method will be
called.methodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.
SimUtilities
protected BasicAction scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
Assumes all objects in the list are of the same class.
interval - the interval at which to execute the methodlist - the list containing the objects on which the method will be
called.methodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.
SimUtilities
public BasicAction scheduleActionAtInterval(double interval,
java.util.List list,
java.lang.String methodName)
interval - the interval at which to execute the methodlist - the list containing the objects on which the method will be
called.methodName - the name of the method to call
public BasicAction scheduleActionAtInterval(double interval,
java.util.List list,
java.lang.String methodName,
double duration)
interval - the interval at which to execute the methodlist - the list containing the objects on which the method will be
called.methodName - the name of the method to callduration - the length of the action.
public BasicAction scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.String methodName)
interval - the interval at which to execute the methodlist - the list containing the objects on which the method will be
called.methodName - the name of the method to call
SimUtilities
public BasicAction scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.String methodName,
double duration)
interval - the interval at which to execute the methodlist - the list containing the objects on which the method will be
called.methodName - the name of the method to callduration - the length of the action.
SimUtilities
public BasicAction scheduleActionBeginning(double beginning,
java.util.List list,
java.lang.String methodName)
beginning - the clock tick at which to begin executionlist - the List containing the objects on which the method will be
called.methodName - the name of the method to call
public BasicAction scheduleActionBeginning(double beginning,
java.util.List list,
java.lang.String methodName,
double duration)
beginning - the clock tick at which to begin executionlist - the List containing the objects on which the method will be
called.methodName - the name of the method to callduration - the length of the action.
public BasicAction scheduleActionBeginningRnd(double beginning,
java.util.List list,
java.lang.String methodName)
beginning - the clock tick at which to begin executionlist - the List containing the objects on which the method will be
called.methodName - the name of the method to call
SimUtilities
public BasicAction scheduleActionBeginningRnd(double beginning,
java.util.List list,
java.lang.String methodName,
double duration)
beginning - the clock tick at which to begin executionlist - the List containing the objects on which the method will be
called.methodName - the name of the method to call
SimUtilities
public BasicAction scheduleActionAt(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to call
public BasicAction scheduleActionAt(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
double duration)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to callduration - the length of the action.
public BasicAction scheduleActionAtRnd(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to call
SimUtilities
public BasicAction scheduleActionAtRnd(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
double duration)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to callduration - the length of the action.
SimUtilities
public BasicAction scheduleActionAt(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.
protected BasicAction scheduleActionAt(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.duration - the length of the action.
public BasicAction scheduleActionAtRnd(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.
SimUtilities
public BasicAction scheduleActionAtRnd(double at,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
at - the clock tick to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.
SimUtilities
public BasicAction scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
interval - the tick interval at which to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to call
SimUtilities
public BasicAction scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
double duration)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
interval - the tick interval at which to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to call
SimUtilities
public BasicAction scheduleActionAtInterval(double interval,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
interval - the tick interval at which to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.
protected BasicAction scheduleActionAtInterval(double interval,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
interval - the tick interval at which to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.duration - the length of the action.
public BasicAction scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
interval - the tick interval at which to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.
SimUtilities
protected BasicAction scheduleActionAtIntervalRnd(double interval,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
ScheduleBase.Order order,
double duration)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
interval - the tick interval at which to execute the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to callorder - the order to execute this action relative to others in this
tick. order is one of Schedule.LAST, or Schedule.RANDOM.duration - the length of the action.
SimUtilities
public BasicAction scheduleActionBeginning(double beginning,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
beginning - the tick at which to start the repeated execution of
the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to call
public BasicAction scheduleActionBeginning(double beginning,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
double duration)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
beginning - the tick at which to start the repeated execution of
the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to callduration - the length of the action.
public BasicAction scheduleActionBeginningRnd(double beginning,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
beginning - the tick at which to start the repeated execution of
the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to call
SimUtilities
public BasicAction scheduleActionBeginningRnd(double beginning,
java.util.List list,
java.lang.Class superClass,
java.lang.String methodName,
double duration)
The intention here is that type of the objects in the list may different, but that they all share a common super-class or interface. The specified method must be a method of this super-class or interface.
beginning - the tick at which to start the repeated execution of
the actionlist - the List containing the objects on which the method will be
calledsuperClass - the common super-class or interfacemethodName - the name of the method to call
SimUtilitiespublic double getCurrentTime()
getCurrentTime in interface TickCounterpublic double getCurrentTimeDouble()
getCurrentTime()public void preExecute()
public BasicAction removeAction(BasicAction action)
action - the action to remove
public void removeActionAt(double at,
BasicAction action)
at - the tick at which to remove the actionaction - the action to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||