|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.colorado.cs.ns2.sim.SimulationEvent
public class SimulationEvent
This class encapsulates application events by providing a binding between an application, an event action, and an event time.
| Field Summary | |
|---|---|
private Application |
app
The application on which this event should occur. |
private static long |
serialVersionUID
Generated serial version UID. |
private double |
simulationTime
The time of this event in the simulation. |
private java.lang.String |
whatToDO
The event action: {start, stop, finish}. |
| Constructor Summary | |
|---|---|
SimulationEvent()
Default constructor. |
|
SimulationEvent(double simulationTime,
Application app,
java.lang.String whatToDO)
Three-argument constructor. |
|
| Method Summary | |
|---|---|
Application |
getApp()
Returns the Application. |
double |
getSimulationTime()
Returns the simulation time when this event will be executed. |
java.lang.String |
getWhatToDO()
Return the action that should be performed by the simulator. |
void |
setApp(Application app)
Sets the Application. |
void |
setSimulationTime(double simulationTime)
Set the simulation time when this event will be executed. |
void |
setWhatToDO(java.lang.String whatToDO)
Set the event action. |
java.lang.String |
toString()
A String representation of a SimulationEvent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private double simulationTime
private Application app
private java.lang.String whatToDO
| Constructor Detail |
|---|
public SimulationEvent()
public SimulationEvent(double simulationTime,
Application app,
java.lang.String whatToDO)
simulationTime - The event's time.app - The Application on which the event should occur.whatToDO - The event's action.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic Application getApp()
public void setApp(Application app)
app - A new Application.public double getSimulationTime()
public void setSimulationTime(double simulationTime)
simulationTime - A new event execution time.public java.lang.String getWhatToDO()
public void setWhatToDO(java.lang.String whatToDO)
whatToDO - A new event action.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||