C E F L M N O R S T V 

C

cmsc433.p2 - package cmsc433.p2
 
Cook - Class in cmsc433.p2
Cooks are simulation actors that have at least one field, a name.
Cook(String) - Constructor for class cmsc433.p2.Cook
You can feel free modify this constructor.
cook - Variable in class cmsc433.p2.SimulationEvent
 
cookCompletedOrder(Cook, int) - Static method in class cmsc433.p2.SimulationEvent
 
cookEnding(Cook) - Static method in class cmsc433.p2.SimulationEvent
 
cookFinishedFood(Cook, Food, int) - Static method in class cmsc433.p2.SimulationEvent
 
cookReceivedOrder(Cook, List<Food>, int) - Static method in class cmsc433.p2.SimulationEvent
 
cookStartedFood(Cook, Food, int) - Static method in class cmsc433.p2.SimulationEvent
 
cookStarting(Cook) - Static method in class cmsc433.p2.SimulationEvent
 
cookTimeMS - Variable in class cmsc433.p2.Food
 

E

Eater - Class in cmsc433.p2
Eaters are simulation actors that have two fields: a name, and a list of Food items that constitue the Eater's order.
Eater(String, List<Food>) - Constructor for class cmsc433.p2.Eater
You can feel free modify this constructor.
eater - Variable in class cmsc433.p2.SimulationEvent
 
eaterEnteredRestaurant(Eater) - Static method in class cmsc433.p2.SimulationEvent
 
eaterLeavingRestaurant(Eater) - Static method in class cmsc433.p2.SimulationEvent
 
eaterPlacedOrder(Eater, List<Food>, int) - Static method in class cmsc433.p2.SimulationEvent
 
eaterReceivedOrder(Eater, List<Food>, int) - Static method in class cmsc433.p2.SimulationEvent
 
eaterStarting(Eater) - Static method in class cmsc433.p2.SimulationEvent
 
endSimulation() - Static method in class cmsc433.p2.SimulationEvent
 
event - Variable in class cmsc433.p2.SimulationEvent
 

F

Food - Class in cmsc433.p2
Food is what is prepared by Cooks, and ordered by Eaters.
Food(String, int) - Constructor for class cmsc433.p2.Food
 
food - Variable in class cmsc433.p2.Machine
 
food - Variable in class cmsc433.p2.SimulationEvent
 

L

logEvent(SimulationEvent) - Static method in class cmsc433.p2.Simulation
 

M

Machine - Class in cmsc433.p2
A Machine is used to make a particular Food.
Machine(String, Food, int) - Constructor for class cmsc433.p2.Machine
The constructor takes at least the name of the machine, the Food item it makes, and its capacity.
machine - Variable in class cmsc433.p2.SimulationEvent
 
machineCookingFood(Machine, Food) - Static method in class cmsc433.p2.SimulationEvent
 
machineDoneFood(Machine, Food) - Static method in class cmsc433.p2.SimulationEvent
 
machineEnding(Machine) - Static method in class cmsc433.p2.SimulationEvent
 
machineStarting(Machine, Food, int) - Static method in class cmsc433.p2.SimulationEvent
 
main(String[]) - Static method in class cmsc433.p2.Simulation
Entry point for the simulation program.
makeFood() - Method in class cmsc433.p2.Machine
This method is called by a Cook in order to make the Machine's food item.

N

name - Variable in class cmsc433.p2.Food
 
name - Variable in class cmsc433.p2.Machine
 

O

orderFood - Variable in class cmsc433.p2.SimulationEvent
 
orderNumber - Variable in class cmsc433.p2.SimulationEvent
 

R

run() - Method in class cmsc433.p2.Cook
This method defines what a Cook does, i.e., process orders submitted by Eaters.
run() - Method in class cmsc433.p2.Eater
This method defines what an Eater does: The eater attempts to enter the restaurant (only successful if the restaurant has a free table), place its order, and then leave the restaurant when the order is complete.
runSimulation(int, int, int, int) - Static method in class cmsc433.p2.Simulation
This function performs the simulation.

S

SamplePublicTests - Class in cmsc433.p2
 
SamplePublicTests() - Constructor for class cmsc433.p2.SamplePublicTests
 
simParams - Variable in class cmsc433.p2.SimulationEvent
 
Simulation - Class in cmsc433.p2
Simulation is the main class used to run the simulation.
Simulation() - Constructor for class cmsc433.p2.Simulation
 
SimulationEvent - Class in cmsc433.p2
This class represents each of the salient events that occur during the simulation.
SimulationEvent.EventType - Enum in cmsc433.p2
 
startSimulation(int, int, int, int) - Static method in class cmsc433.p2.SimulationEvent
 

T

testMaxEaters() - Method in class cmsc433.p2.SamplePublicTests
 
testNumEaters() - Method in class cmsc433.p2.SamplePublicTests
 
testRun1x1x1x1() - Static method in class cmsc433.p2.SamplePublicTests
 
testRun2x1x1x1() - Static method in class cmsc433.p2.SamplePublicTests
 
testRun3x1x1x1() - Static method in class cmsc433.p2.SamplePublicTests
 
testValidate1Eater() - Method in class cmsc433.p2.SamplePublicTests
 
testValidate2Eater() - Method in class cmsc433.p2.SamplePublicTests
 
toString() - Method in class cmsc433.p2.Cook
 
toString() - Method in class cmsc433.p2.Eater
 
toString() - Method in class cmsc433.p2.Food
 
toString() - Method in class cmsc433.p2.Machine
 
toString() - Method in class cmsc433.p2.SimulationEvent
 

V

Validate - Class in cmsc433.p2
Validates a simulation
Validate() - Constructor for class cmsc433.p2.Validate
 
validateSimulation(List<SimulationEvent>) - Static method in class cmsc433.p2.Validate
Validates the given list of events is a valid simulation.
valueOf(String) - Static method in enum cmsc433.p2.SimulationEvent.EventType
Returns the enum constant of this type with the specified name.
values() - Static method in enum cmsc433.p2.SimulationEvent.EventType
Returns an array containing the constants of this enum type, in the order they are declared.
C E F L M N O R S T V