|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SimEvent
public class SimEvent
SimulationEvent (SimEvent) -- an event that occurs in a simulation, like a truck arriving at a factory, or a salesperson leaving the market
Constructor Summary | |
---|---|
SimEvent()
Constructor that takes no arguments |
|
SimEvent(DEAgent moi,
double scheduledTime,
int eventType)
Constructor that takes values for all the fields |
Method Summary | |
---|---|
int |
compareTo(SimEvent other)
Method to compare to another simulation event |
DEAgent |
getAgent()
Method to get the discrete event agent |
int |
getMessage()
Method to get the message |
double |
getTime()
Method to get the time the event occurs |
void |
setMessage(int newMsg)
Method to set the message |
void |
setTime(double myTime)
Method to set the time that the event occurs myTime the time to use |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimEvent(DEAgent moi, double scheduledTime, int eventType)
moi
- the agentscheduledTime
- the event timeeventType
- the event typepublic SimEvent()
Method Detail |
---|
public int compareTo(SimEvent other)
compareTo
in interface Comparable<SimEvent>
public double getTime()
public void setTime(double myTime)
public int getMessage()
public void setMessage(int newMsg)
newMsg
- the new message to usepublic DEAgent getAgent()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |