|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DiscrEventSimulator<S>
An interface representing the properties of the computer manufacturer discrete event simulation.
| Method Summary | |
|---|---|
double |
getCurrentBalance()
Get the financial status of the plant. |
int |
getCurrentTime()
Returns the current time step of the simulation. |
int |
getEmployeeCount(EmployeeType t)
Retrieve the number of employees of the specified type employed by the Grell Computers plant. |
void |
run(World<S> w,
int minutes)
Run the simulation to completion. |
| Method Detail |
|---|
int getCurrentTime()
0; after it
completes, this should return t+1, where the
simulation ran for t minutes total.
double getCurrentBalance()
int getEmployeeCount(EmployeeType t)
t - Type of employee to query.
>=0).
void run(World<S> w,
int minutes)
World object.
w - World object from which to draw orders.minutes - Number of minutes for which to run the simulation.
IllegalArgumentException - if minutes<=0.
NullPointerException - if w==null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||