Class SimEvent
java.lang.Object
SimEvent
- public class SimEvent
- extends Object
SimulationEvent (SimEvent) -- an event that occurs in a simulation,
like a truck arriving at a factory, or a salesperson leaving the
market
Field Summary |
int |
message
What is the event? We'll use integers to represent the meaning
of the event -- the "message" of the event. |
double |
time
When does this event occur? |
DEAgent |
whom
To whom does it occur? Who should be informed when it occurred? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
time
public double time
- When does this event occur?
whom
public DEAgent whom
- To whom does it occur? Who should be informed when it occurred?
message
public int message
- What is the event? We'll use integers to represent the meaning
of the event -- the "message" of the event.
Each agent will know the meaning of the integer for themselves.
SimEvent
public SimEvent(DEAgent moi,
double scheduledTime,
int meaning)
SimEvent
public SimEvent()
getTime
public double getTime()
setTime
public void setTime(double mytime)
getMessage
public int getMessage()
setMessage
public void setMessage(int newMsg)
getAgent
public DEAgent getAgent()