A C D F G I L M N R S T U V X

A

add(Object) - Method in class ResizableArray
Adds the given object to the end of this ResizableArray, resizing the underlying array if necessary.
addCustomer(Customer) - Method in class CheckoutLane
Adds the specified customer to the end of this lane's line.
addSample(double) - Method in class SampleManager
Records a sample value, updating sample count, min and max values, and mean and variance estimates.

C

capacity() - Method in class ResizableArray
Returns the capacity of this array.
CashierSharingSim - Class in <Unnamed>
 
CashierSharingSim(SampleManager, CustomerGenerator, int) - Constructor for class CashierSharingSim
Creates a new simulator object with a given SampleManager and CustomerGenerator, creating a Store with a specified number of lanes.
CheckoutLane - Class in <Unnamed>
The CheckoutLane class models a checkout lane, with a line of customers waiting to be served.
CheckoutLane(int) - Constructor for class CheckoutLane
Constructs a Lane with an underlying array of the given initial size.
Customer - Class in <Unnamed>
 
Customer(int) - Constructor for class Customer
Creates a Customer object with the specified initial number of items.
CustomerGenerator - Class in <Unnamed>
 

D

DEFAULT_SIZE - Static variable in class ResizableArray
 

F

FirstComeFirstServedSim - Class in <Unnamed>
 
FirstComeFirstServedSim(SampleManager, CustomerGenerator, int) - Constructor for class FirstComeFirstServedSim
Creates a new simulator object with a given SampleManager and CustomerGenerator, creating a Store with a specified number of lanes.

G

get(int) - Method in class ResizableArray
Returns the element at the given index.
getArrivals() - Method in class CustomerGenerator
Returns an array of Customers arriving in a given time step.
getArrivalTime() - Method in class Customer
Gets the arrival time.
getCustomerAt(int) - Method in class CheckoutLane
Returns the customer at the given position in this lane.
getCustomerCount() - Method in class CheckoutLane
Returns the number of customers currently in this Lane.
getDepartureTime() - Method in class Customer
 
getFirstCustomer() - Method in class CheckoutLane
Returns the customer at the head of this lane.
getInitialItemCount() - Method in class Customer
 
getItemCount() - Method in class Customer
 
getLane(int) - Method in class Store
Returns the CheckoutLane object with the given lane number.
getMax() - Method in class SampleManager
Returns the maximum value seen so far.
getMean() - Method in class SampleManager
Returns the arithmetic mean of sample values seen so far.
getMin() - Method in class SampleManager
Returns the minimum value seen so far.
getNumLanes() - Method in class Store
Returns the number of checkout lanes in this Store.
getStdDev() - Method in class SampleManager
Returns the standard deviation of sample values seen so far.
getTime() - Method in class SimulationTimer
Returns the current simulation time.
getVariance() - Method in class SampleManager
Returns the variance of sample values seen so far.

I

insertBefore(Object, int) - Method in class ResizableArray
Inserts an element before the element at the given position and increases the size of this array.
insertCustomer(Customer, int) - Method in class CheckoutLane
Adds the specified customer ahead of the customer at the specified position.
isEmpty() - Method in class ResizableArray
 

L

lag1sum - Variable in class SampleManager
 
lastSample - Variable in class SampleManager
 

M

main(String[]) - Static method in class CustomerGenerator
 
makeHeavy() - Static method in class CustomerGenerator
Returns a "heavy traffic" stream of customers.
makeHeavy(int) - Static method in class CustomerGenerator
Returns a "heavy traffic" stream of customers, using the specified seed.
makeLight() - Static method in class CustomerGenerator
Returns a "light traffic" stream of customers.
makeLight(int) - Static method in class CustomerGenerator
Returns a "light traffic" stream of customers, using the specified seed.
makeModerate() - Static method in class CustomerGenerator
Returns a "moderate traffic" stream of customers.
makeModerate(int) - Static method in class CustomerGenerator
Returns a "moderate traffic" stream of customers, using the specified seed.
max - Variable in class SampleManager
 
min - Variable in class SampleManager
 

N

nextValPos - Variable in class SampleManager
 
numSamples - Variable in class SampleManager
 
numSamples() - Method in class SampleManager
Returns the number of sample values seen so far.

R

removeElementAt(int) - Method in class ResizableArray
Removes the element at the given index, shifting all subsequent elements forward and decreasing the size of this array by one.
removeFirstCustomer() - Method in class CheckoutLane
Removes the first customer from this lane, decrements the current customer count, and shifts all other customers one element towards the head of the lane.
removeItem() - Method in class Customer
Removes one item from the customer's basket.
ResizableArray - Class in <Unnamed>
 
ResizableArray() - Constructor for class ResizableArray
Creates a resizable array with DEFAULT_SIZE elements.
ResizableArray(int) - Constructor for class ResizableArray
Creates a resizable array with the given number of elements.
runStep() - Method in class CashierSharingSim
 
runStep() - Method in class FirstComeFirstServedSim
Runs one step of simulation time.
runStep() - Method in class ShortestJobFirstSim
 
runStep() - Method in interface Simulation
Runs one step of simulation time.

S

SampleManager - Class in <Unnamed>
SampleManager keeps track of aggregate information about your data samples: minimum and maximum values and estimates of arithmetic mean, variance, and standard deviation.
SampleManager() - Constructor for class SampleManager
Constructs a new SampleManager instance.
seed - Variable in class SampleManager
 
set(int, Object) - Method in class ResizableArray
Sets the element at the give index.
setArrivalTime(int) - Method in class Customer
Sets the arrival time; your code will call this on Customer instances returned by the CustomerGenerator.
setDepartureTime(int) - Method in class Customer
Sets the departure time.
ShortestJobFirstSim - Class in <Unnamed>
 
ShortestJobFirstSim(SampleManager, CustomerGenerator, int) - Constructor for class ShortestJobFirstSim
Creates a new simulator object with a given SampleManager and CustomerGenerator, creating a Store with a specified number of lanes.
Simulation - Interface in <Unnamed>
 
SimulationTimer - Class in <Unnamed>
The SimulationTimer class encapsulates a simple integer timer.
SimulationTimer() - Constructor for class SimulationTimer
Creates a SimulationTimer with a simulation time of 0.
size() - Method in class ResizableArray
Returns the size of this array.
stdDev - Variable in class SampleManager
 
Store - Class in <Unnamed>
The Store class models the checkout section of a grocery store; specifically, it does so by modeling an array of Lane objects.
Store(int) - Constructor for class Store
Creates a Store object with the specified number of lanes; initializes each CheckoutLane to a newly-constructed CheckoutLane
sumX - Variable in class SampleManager
 
sumXSquared - Variable in class SampleManager
 

T

tick() - Method in class SimulationTimer
Increments the simulation timer.

U

updateEstimates(double) - Method in class SampleManager
 

V

variance - Variable in class SampleManager
 

X

xbar - Variable in class SampleManager
 

A C D F G I L M N R S T U V X