cmsc433.p2
Class SimulationEvent
java.lang.Object
cmsc433.p2.SimulationEvent
public class SimulationEvent
- extends java.lang.Object
This class represents each of the salient events that occur during the
simulation. These events are created by the public factory methods
provided by the class. DO NOT CHANGE THIS CLASS.
|
Method Summary |
static SimulationEvent |
cookCompletedOrder(Cook cook,
int orderNumber)
|
static SimulationEvent |
cookEnding(Cook cook)
|
static SimulationEvent |
cookFinishedFood(Cook cook,
Food food,
int orderNumber)
|
static SimulationEvent |
cookReceivedOrder(Cook cook,
java.util.List<Food> order,
int orderNumber)
|
static SimulationEvent |
cookStartedFood(Cook cook,
Food food,
int orderNumber)
|
static SimulationEvent |
cookStarting(Cook cook)
|
static SimulationEvent |
eaterEnteredRestaurant(Eater eater)
|
static SimulationEvent |
eaterLeavingRestaurant(Eater eater)
|
static SimulationEvent |
eaterPlacedOrder(Eater eater,
java.util.List<Food> order,
int orderNumber)
|
static SimulationEvent |
eaterReceivedOrder(Eater eater,
java.util.List<Food> order,
int orderNumber)
|
static SimulationEvent |
eaterStarting(Eater eater)
|
static SimulationEvent |
endSimulation()
|
static SimulationEvent |
machineCookingFood(Machine machine,
Food food)
|
static SimulationEvent |
machineDoneFood(Machine machine,
Food food)
|
static SimulationEvent |
machineEnding(Machine machine)
|
static SimulationEvent |
machineStarting(Machine machine,
Food food,
int capacity)
|
static SimulationEvent |
startSimulation(int numEaters,
int numCooks,
int numTables,
int capacity)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
event
public final SimulationEvent.EventType event
cook
public final Cook cook
eater
public final Eater eater
machine
public final Machine machine
food
public final Food food
orderFood
public final java.util.List<Food> orderFood
orderNumber
public final int orderNumber
simParams
public final int[] simParams
startSimulation
public static SimulationEvent startSimulation(int numEaters,
int numCooks,
int numTables,
int capacity)
endSimulation
public static SimulationEvent endSimulation()
eaterStarting
public static SimulationEvent eaterStarting(Eater eater)
eaterEnteredRestaurant
public static SimulationEvent eaterEnteredRestaurant(Eater eater)
eaterPlacedOrder
public static SimulationEvent eaterPlacedOrder(Eater eater,
java.util.List<Food> order,
int orderNumber)
eaterReceivedOrder
public static SimulationEvent eaterReceivedOrder(Eater eater,
java.util.List<Food> order,
int orderNumber)
eaterLeavingRestaurant
public static SimulationEvent eaterLeavingRestaurant(Eater eater)
cookStarting
public static SimulationEvent cookStarting(Cook cook)
cookReceivedOrder
public static SimulationEvent cookReceivedOrder(Cook cook,
java.util.List<Food> order,
int orderNumber)
cookStartedFood
public static SimulationEvent cookStartedFood(Cook cook,
Food food,
int orderNumber)
cookFinishedFood
public static SimulationEvent cookFinishedFood(Cook cook,
Food food,
int orderNumber)
cookCompletedOrder
public static SimulationEvent cookCompletedOrder(Cook cook,
int orderNumber)
cookEnding
public static SimulationEvent cookEnding(Cook cook)
machineStarting
public static SimulationEvent machineStarting(Machine machine,
Food food,
int capacity)
machineCookingFood
public static SimulationEvent machineCookingFood(Machine machine,
Food food)
machineDoneFood
public static SimulationEvent machineDoneFood(Machine machine,
Food food)
machineEnding
public static SimulationEvent machineEnding(Machine machine)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object