|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.network.DefaultNode
uchicago.src.sim.network.DefaultDrawableNode
uchicago.src.sim.engine.AsynchAgent
public class AsynchAgent
An asynchronously executed agent class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class uchicago.src.sim.network.DefaultNode |
|---|
DefaultNode.OrderedHashMap |
| Field Summary |
|---|
| Fields inherited from class uchicago.src.sim.network.DefaultDrawableNode |
|---|
item |
| Fields inherited from class uchicago.src.sim.network.DefaultNode |
|---|
inEdges, inMap, label, outEdges, outMap |
| Constructor Summary | |
|---|---|
AsynchAgent()
Default creator, sets up this agent with a random distribution of type Uniform running on a MersenneTwister. |
|
AsynchAgent(SimModel model)
Default creator, sets up this agent with a random distribution of type Uniform running on a MersenneTwister and a model |
|
| Method Summary | |
|---|---|
void |
clearUtilization()
|
double |
findNextTaskCompletionTime()
|
static java.util.ArrayList |
getAgentList()
|
double |
getDelayMaximum()
|
double |
getDelayMinimum()
|
int |
getID()
|
SimModel |
getModel()
The model this agent is working with, used to get the schedule for the scheduling methods |
double |
getNextAvailableTime()
|
double |
getNextDelay()
|
cern.jet.random.AbstractContinousDistribution |
getRandomDistribution()
|
double |
getUtilization()
|
double |
getUtilizedTime()
|
void |
initialize()
|
BasicAction |
scheduleAfterWaiting(java.lang.String methodName)
Schedules a method to be called on this agent after a certain waiting period. |
BasicAction |
scheduleAfterWaiting(java.lang.String methodName,
java.lang.Object param0)
Schedules a method to be called on this agent after a certain waiting period. |
BasicAction |
scheduleAfterWaiting(java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1)
Schedules a method to be called on this agent after a certain waiting period. |
BasicAction |
scheduleAfterWaiting(java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
Schedules a method to be called on this agent after a certain waiting period. |
BasicAction |
scheduleAt(double time,
java.lang.String methodName)
Schedules a method to be called on this agent at a certain time. |
BasicAction |
scheduleAt(double time,
java.lang.String methodName,
java.lang.Object param0)
Schedules a method to be called on this agent at a certain time. |
BasicAction |
scheduleAt(double time,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1)
Schedules a method to be called on this agent at a certain time. |
BasicAction |
scheduleAt(double time,
java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
Schedules a method to be called on this agent at a certain time. |
BasicAction |
scheduleNow(java.lang.String methodName)
Schedules a method to be called on this agent after a cerain waiting period. |
BasicAction |
scheduleNow(java.lang.String methodName,
java.lang.Object param0)
|
BasicAction |
scheduleNow(java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1)
|
BasicAction |
scheduleNow(java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
|
BasicAction |
scheduleWhenAvailable(java.lang.String methodName)
Schedules a method to be called when the agent is next available. |
BasicAction |
scheduleWhenAvailable(java.lang.String methodName,
java.lang.Object param0)
Schedules a method to be called when the agent is next available. |
BasicAction |
scheduleWhenAvailable(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(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. |
static void |
setAgentList(java.util.ArrayList list)
|
void |
setDelayMaximum(double d)
|
void |
setDelayMinimum(double d)
|
void |
setID(int i)
|
void |
setModel(SimModel model)
|
void |
setNextAvailableTime(double d)
|
void |
setRandomDistribution(cern.jet.random.AbstractContinousDistribution randomDistribution)
|
void |
setUtilizedTime(double d)
|
| Methods inherited from class uchicago.src.sim.network.DefaultDrawableNode |
|---|
allowResizing, calcSize, contains, draw, getBorderColor, getBorderWidth, getColor, getFont, getHeight, getLabelColor, getNode, getWidth, getX, getY, setBorderColor, setBorderWidth, setColor, setDrawable, setDrawableNoCopy, setFont, setHeight, setLabelColor, setNodeLabel, setWidth, setX, setX, setY, setY |
| Methods inherited from class uchicago.src.sim.network.DefaultNode |
|---|
addInEdge, addInEdges, addOutEdge, addOutEdges, clearInEdges, clearOutEdges, getEdgesFrom, getEdgesTo, getFromNodes, getId, getInDegree, getInEdges, getInNodes, getNodeLabel, getNumInEdges, getNumOutEdges, getOutDegree, getOutEdges, getOutNodes, getRandomFromNode, getRandomNodeIn, getRandomNodeOut, getRandomToNode, getToNodes, hasEdgeFrom, hasEdgeTo, hasEdgeToOrFrom, makeRandomInEdge, makeRandomOutEdge, removeEdgesFrom, removeEdgesTo, removeInEdge, removeOutEdge |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uchicago.src.sim.gui.DrawableNonGridNode |
|---|
getOutEdges |
| Methods inherited from interface uchicago.src.sim.gui.Drawable2DGridNode |
|---|
getOutEdges |
| Constructor Detail |
|---|
public AsynchAgent()
public AsynchAgent(SimModel model)
model - the model this agent uses when scheduling| Method Detail |
|---|
public double findNextTaskCompletionTime()
findNextTaskCompletionTime in interface IAsynchAgentpublic void initialize()
public BasicAction scheduleNow(java.lang.String methodName)
o - the agent to call the method onmethodName - the method to call on the objectparam0 - a parameter passed to the method.
public BasicAction scheduleNow(java.lang.String methodName,
java.lang.Object param0)
public BasicAction scheduleNow(java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1)
public BasicAction scheduleNow(java.lang.String methodName,
java.lang.Object param0,
java.lang.Object param1,
java.lang.Object param2)
public BasicAction scheduleAfterWaiting(java.lang.String methodName)
o - the agent to call the method onmethodName - the method to call on the object
public BasicAction scheduleAfterWaiting(java.lang.String methodName,
java.lang.Object param0)
o - the agent to call the method onmethodName - the method to call on the object
public BasicAction scheduleAfterWaiting(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(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 scheduleWhenAvailable(java.lang.String methodName)
o - the agent to call the method onmethodName - the method to call on the object
public BasicAction scheduleWhenAvailable(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(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(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,
java.lang.String methodName)
o - the agent to call the method onmethodName - the method to call on the object.
public BasicAction scheduleAt(double time,
java.lang.String methodName,
java.lang.Object param0)
o - the agent to call the method onmethodName - the method to call on the object
public BasicAction scheduleAt(double time,
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,
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 getDelayMaximum()
public double getDelayMinimum()
public SimModel getModel()
public double getNextAvailableTime()
getNextAvailableTime in interface IAsynchAgentpublic double getNextDelay()
public void setDelayMaximum(double d)
public void setDelayMinimum(double d)
public void setModel(SimModel model)
public void setNextAvailableTime(double d)
public double getUtilization()
public void clearUtilization()
public static java.util.ArrayList getAgentList()
public static void setAgentList(java.util.ArrayList list)
public int getID()
public double getUtilizedTime()
public void setID(int i)
public void setUtilizedTime(double d)
public cern.jet.random.AbstractContinousDistribution getRandomDistribution()
public void setRandomDistribution(cern.jet.random.AbstractContinousDistribution randomDistribution)
randomDistribution - the distribution used to compute delays
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||