|
||||||||||
| 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
uchicago.src.sim.engine.Schedule
uchicago.src.sim.engine.AsynchSchedule
public class AsynchSchedule
A subclass of schedule useful for asynchronous scheduling.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class uchicago.src.sim.engine.ScheduleBase |
|---|
ScheduleBase.Order |
| Field Summary |
|---|
| Fields inherited from class uchicago.src.sim.engine.ScheduleBase |
|---|
actionQueue, CONCURRENT, groupToExecute, indexCount, LAST, lastGroup, lastQueue, preExecuted, randGroup, RANDOM, repeatInterval, ticks, topGroup |
| Fields inherited from class uchicago.src.sim.engine.BasicAction |
|---|
INTERVAL_UPDATER, ONE_TIME_UPDATER, updater |
| Constructor Summary | |
|---|---|
AsynchSchedule()
|
|
AsynchSchedule(double executionInterval)
Constructs a schedule that executes at the specified interval. |
|
| Method Summary | |
|---|---|
double |
getDelta()
|
double |
getStartTime()
|
double |
getTotalTime()
|
boolean |
isNotingCaller()
|
BasicAction |
schedule(double time,
IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
Schedules a method to be called on an agent. |
BasicAction |
scheduleAfterWaiting(IAsynchAgent agent,
java.lang.String methodName)
Schedules a method to be called on an agent after a certain waiting period. |
BasicAction |
scheduleAfterWaiting(IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0)
Schedules a method to be called on an agent after a certain waiting period. |
BasicAction |
scheduleAfterWaiting(IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1)
Schedules a method to be called on an agent after a certain waiting period. |
BasicAction |
scheduleAfterWaiting(IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
Schedules a method to be called on an agent after a certain waiting period. |
BasicAction |
scheduleAt(double time,
IAsynchAgent agent,
java.lang.String methodName)
Schedules a method to be called on an agent at a certain time. |
BasicAction |
scheduleAt(double time,
IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0)
Schedules a method to be called on an agent at a certain time. |
BasicAction |
scheduleAt(double time,
IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1)
Schedules a method to be called on an agent at a certain time. |
BasicAction |
scheduleAt(double time,
IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
Schedules a method to be called on an agent at a certain time. |
BasicAction |
scheduleNow(IAsynchAgent o,
java.lang.String methodName)
Schedules a method to be called now. |
BasicAction |
scheduleNow(IAsynchAgent o,
java.lang.String methodName,
java.lang.Object param0)
Schedules a method to be called now. |
BasicAction |
scheduleNow(IAsynchAgent o,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1)
Schedules a method to be called now. |
BasicAction |
scheduleNow(IAsynchAgent o,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
Schedules a method to be called now. |
BasicAction |
scheduleWhenAvailable(IAsynchAgent o,
java.lang.String methodName)
Schedules a method to be called when the agent is next available. |
BasicAction |
scheduleWhenAvailable(IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0)
Schedules a method to be called when the agent is next available. |
BasicAction |
scheduleWhenAvailable(IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1)
Schedules a method to be called when the agent is next available. |
BasicAction |
scheduleWhenAvailable(IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
Schedules a method to be called when the agent is next available. |
void |
setDelta(double d)
|
void |
setNotingCaller(boolean b)
|
void |
setStartTime(double d)
|
| Methods inherited from class uchicago.src.sim.engine.BasicAction |
|---|
addToGroup, 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 |
| Constructor Detail |
|---|
public AsynchSchedule()
public AsynchSchedule(double executionInterval)
executionInterval - the execution interval.| Method Detail |
|---|
public BasicAction scheduleNow(IAsynchAgent o,
java.lang.String methodName)
o - the object to call the method onmethodName - the method to call on the object
public BasicAction scheduleNow(IAsynchAgent o,
java.lang.String methodName,
java.lang.Object param0)
o - the object to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.
public BasicAction scheduleNow(IAsynchAgent o,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1)
o - the object to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.param1 - a parameter passed to the method.
public BasicAction scheduleNow(IAsynchAgent o,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
o - the object to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.param1 - a parameter passed to the method.param2 - a parameter passed to the method.
public BasicAction scheduleWhenAvailable(IAsynchAgent o,
java.lang.String methodName)
o - the object to call the method onmethodName - the method to call on the object
public BasicAction scheduleWhenAvailable(IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0)
o - the agent to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.
public BasicAction scheduleWhenAvailable(IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1)
o - the agent to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.param1 - a parameter passed to the method.
public BasicAction scheduleWhenAvailable(IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
o - the agent to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.param1 - a parameter passed to the method.param2 - a parameter passed to the method.
public BasicAction scheduleAt(double time,
IAsynchAgent agent,
java.lang.String methodName)
o - the agent to call the method onmethodName - the method to call on the object
public BasicAction scheduleAt(double time,
IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0)
o - the agent to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.
public BasicAction scheduleAt(double time,
IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1)
o - the agent to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.param1 - a parameter passed to the method.
public BasicAction scheduleAt(double time,
IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
o - the agent to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.param1 - a parameter passed to the method.param2 - a parameter passed to the method.
public BasicAction scheduleAfterWaiting(IAsynchAgent agent,
java.lang.String methodName)
o - the agent to call the method onmethodName - the method to call on the object
public BasicAction scheduleAfterWaiting(IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0)
o - the agent to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.
public BasicAction scheduleAfterWaiting(IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1)
o - the agent to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.param1 - a parameter passed to the method.
public BasicAction scheduleAfterWaiting(IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
o - the agent to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.param1 - a parameter passed to the method.param2 - a parameter passed to the method.
public BasicAction schedule(double time,
IAsynchAgent agent,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
o - the agent to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.param1 - a parameter passed to the method.param2 - a parameter passed to the method.
public double getDelta()
public void setDelta(double d)
d - The step size for "now".public double getTotalTime()
public double getStartTime()
public void setStartTime(double d)
public boolean isNotingCaller()
public void setNotingCaller(boolean b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||