Class SimEvent

java.lang.Object
  extended bySimEvent

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?
 
Constructor Summary
SimEvent()
           
SimEvent(DEAgent moi, double scheduledTime, int meaning)
           
 
Method Summary
 DEAgent getAgent()
           
 int getMessage()
           
 double getTime()
           
 void setMessage(int newMsg)
           
 void setTime(double mytime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

SimEvent

public SimEvent(DEAgent moi,
                double scheduledTime,
                int meaning)

SimEvent

public SimEvent()
Method Detail

getTime

public double getTime()

setTime

public void setTime(double mytime)

getMessage

public int getMessage()

setMessage

public void setMessage(int newMsg)

getAgent

public DEAgent getAgent()