|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--simulator.Event
Module: simulator
Copyright: UMASS - MASL 1998
Description: An object containing the information which describes a particular event.
| Constructor Summary | |
Event(int s,
int e)
Constructor, this sets up the event and automatically gives it a unique numerical id. |
|
| Method Summary | |
void |
abort(java.lang.String a)
Abort an event before the specified time |
void |
addProducedResource(Resources r)
Add Resources Produces by this Event() |
void |
addUsedResource(Resources r)
Add Resources Uses by this Event() |
java.lang.String |
asString()
Returns the event as a string |
void |
delay(int d)
Delays the start time |
void |
extend(int e)
Extends the execution time |
void |
freeProducedResource(Resources res)
Freeying resources uses by an Event() |
void |
freeProducedResources()
Freeying resources uses by an Event() |
void |
freeUsedResource(Resources res)
Freeying resources uses by an Event() |
void |
freeUsedResources()
Freeying resources uses by an Event() |
java.awt.Label |
getDisplay()
Returns the current display of the event |
int |
getFinish()
Returns the expected finish time |
long |
getID()
Gets the event's ID number |
int |
getStart()
Returns the expected start time |
abstract java.lang.String |
getStatus()
Returns the current status of the event |
void |
overloadResources(java.lang.String resource,
float value)
In case of overloading this will uses the limits NLE's |
abstract boolean |
realize()
Realizes the particular event |
long |
stateCode()
Returns the state code, which should hopefully be relatively unique (based on the event's contents) and deterministic |
void |
updateDisplay()
Updates the status display |
void |
updateProducedResources()
Updating at each pulse the resources produced by this Event() |
void |
updateUsedResources()
Updating at each pulse the resources used by this Event() |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Event(int s,
int e)
s - The start time (offset from current time)e - The execution time| Method Detail |
public void delay(int d)
d - The delay timepublic void extend(int e)
e - The extend timepublic long getID()
public int getStart()
public int getFinish()
public void abort(java.lang.String a)
public void addUsedResource(Resources r)
public void addProducedResource(Resources r)
public void freeUsedResources()
public void freeUsedResource(Resources res)
public void freeProducedResources()
public void freeProducedResource(Resources res)
public void overloadResources(java.lang.String resource,
float value)
public void updateUsedResources()
public void updateProducedResources()
public abstract java.lang.String getStatus()
public void updateDisplay()
public java.awt.Label getDisplay()
public abstract boolean realize()
public long stateCode()
public java.lang.String asString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||