A B C D E F G H I L M N O P Q R S T U V W X Y

A

AbstractPriorityQueue - Class in m865.datastructures
Abstract class for the priority queue data structure.
AbstractPriorityQueue() - Constructor for class m865.datastructures.AbstractPriorityQueue
 
AbstractQueue<T> - Class in m865.datastructures
Abstract class for the queue data structure.
AbstractQueue() - Constructor for class m865.datastructures.AbstractQueue
 
AbstractStack<T> - Class in m865.datastructures
Abstract class for the stack data structure.
AbstractStack() - Constructor for class m865.datastructures.AbstractStack
 
add(Object) - Method in class m865.datastructures.AbstractPriorityQueue
Adds a Prioritizeable object to the priority queue.
add(T) - Method in class m865.datastructures.AbstractQueue
Enqueues an object onto the end of the queue.
add(T) - Method in class m865.datastructures.AbstractStack
Pushes an object onto the top of the stack.
addAll(Collection) - Method in class m865.datastructures.AbstractPriorityQueue
Adds each object of the specified collection to the priority queue.
addAll(Collection<? extends T>) - Method in class m865.datastructures.AbstractQueue
Enqueues each object of the specified collection onto the queue.
addAll(Collection<? extends T>) - Method in class m865.datastructures.AbstractStack
Pushes each object of the specified collection onto the stack.
adjustPriority(Prioritizeable, Comparable) - Method in class m865.datastructures.AbstractPriorityQueue
Finds the object and adjusts its priority.
adjustPriority(Comparable) - Method in interface m865.datastructures.Prioritizeable
A prioritizable object can have its priority raised or lowered.
adjustPriority(Comparable) - Method in class m865.datastructures.PrioritizedItem
Adjusts the priority of this object
adjustPriority(Prioritizeable, Comparable) - Method in class m865.datastructures.PriorityQueueAL
Locates the specified object in the heap, changes its priority to the specified priority, and adjusts the location of the object in the heap.
adjustPriority(Comparable) - Method in class m865.simulation.Event
A prioritizable object can have its priority raised or lowered.
anyPassengers() - Method in class m865.simulation.Elevator
Any passengers for the current floor?
area() - Method in class m865.shapepack.Ellipse
Calculates the area of the ellipse.
area() - Method in class m865.shapepack.Rectangle
Calculates the area.
area() - Method in class m865.shapepack.Shape
Calculates the area of the shape.
arrivalFloor - Variable in class m865.simulation.ElevatorArrivalEvent
floor that the elevator is at
average(double, int) - Method in class m865.simulation.Statistician
This method calculates the average time

B

back - Variable in class m865.datastructures.QueueLL
 
balk() - Method in class m865.simulation.Passenger
Stop waiting for the elevator and take the stairs.
BalkEvent - Class in m865.simulation
The balk event might not occur.
BalkEvent(Integer, DepartmentStore, Passenger, BalkingQueue) - Constructor for class m865.simulation.BalkEvent
Constructor for objects of class BalkEvent
balkingQueue - Variable in class m865.simulation.BalkEvent
the balking queue in which the passenger that is now scheduled to balk is in.
BalkingQueue - Class in m865.simulation
Write a description of class BalkingQueue here.
BalkingQueue() - Constructor for class m865.simulation.BalkingQueue
Constructor for objects of class BalkingQueue
bubbleUp(int) - Method in class m865.datastructures.PriorityQueueAL
Moves this item at the specified position up the heap according to its priority.
ButtonSystem - Class in m865.simulation
Maintains the status of the buttons on each floor.
ButtonSystem(DepartmentStore) - Constructor for class m865.simulation.ButtonSystem
Constructor for objects of class ButtonSystem
buttonSystem - Variable in class m865.simulation.DepartmentStore
The ButtonSystem that records the interests of passengers who are waiting for elevators

C

CAPACITY - Static variable in class m865.simulation.DepartmentStore
Symbolic constants that define various simulation parameters
capacity - Variable in class m865.simulation.Elevator
Elevator capacity
clear() - Method in class m865.datastructures.PriorityQueueAL
Removes all the objects from this queue.
clear() - Method in class m865.datastructures.QueueCL
Removes all the objects from this queue.
clear() - Method in class m865.datastructures.QueueLL
Removes all the objects from this queue.
clear() - Method in class m865.datastructures.StackAL
Removes all the objects from this stack.
clear() - Method in class m865.datastructures.StackLL
Removes all the objects from this stack.
Clock - Class in m865.simulation
The Clock maintains a priority queue of Events.
Clock() - Constructor for class m865.simulation.Clock
Constructor for the clock.
clock - Variable in class m865.simulation.DepartmentStore
The clock keeps track of the simulation time and insures that events occur in the proper order and at the proper times.
clone() - Method in class m865.datastructures.PrioritizedItem
Creates a clone of this object
clone() - Method in class m865.datastructures.QueueCL
The Cloneable Interface indicates that the clone method, which is inherited from Object, is implemented so that a true clone (a true and independent copy) of the object is returned.
clone() - Method in class m865.datastructures.StackAL
The Cloneable Interface indicates that the clone method, which is inherited from Object, is implemented so that a true clone (a true and independent copy) of the object is returned.
color - Variable in class m865.shapepack.Shape
Fill color for the shape
compareTo(Object) - Method in class m865.datastructures.PrioritizedItem
The compareTo method required by the Comparable interface If the priorities are comparable this returns an int specifying the relation between the two priorities.
compareTo(Object) - Method in class m865.simulation.Event
The compareTo method required by the Comparable interface If the priorities are comparable this returns an int specifying the relation between the two priorities.
contains(Object) - Method in class m865.datastructures.AbstractPriorityQueue
Determines if the specified object is in the priority queue.
contains(Object) - Method in class m865.datastructures.AbstractQueue
Determines if the specified object is in the queue.
contains(Object) - Method in class m865.datastructures.AbstractStack
Determines if the specified object is in the stack.
contains(Object) - Method in class m865.datastructures.PriorityQueueAL
Determines whether the specified object is contained in the priority queue.
containsAll(Collection) - Method in class m865.datastructures.AbstractPriorityQueue
Determines if the specified collection is contained in the queue.
containsAll(Collection<?>) - Method in class m865.datastructures.AbstractQueue
Determines if the specified collection is contained in the queue.
containsAll(Collection<?>) - Method in class m865.datastructures.AbstractStack
Determines if the specified collection is contained in the stack.
createShape(String, int, int, int, int, Color) - Method in class m865.shapepack.ShapeFactory
Creates a specified shape
createShape(String, int, int) - Method in class m865.shapepack.ShapeFactory
Creates a specified shape with a default color and a bounding box of the default size.
currentDirection - Variable in class m865.simulation.Elevator
The state of the elevator's motion
currentFloor - Variable in class m865.simulation.Elevator
The floor the elevator is at
currentMove - Variable in class m865.simulation.MoveOnEvent
The state of the way we want the elevator to move

D

data - Variable in class m865.datastructures.QueueLL.Link
 
datum - Variable in class m865.datastructures.PrioritizedItem
The general object which the datum.
DecisionTable - Class in m865.simulation
 
DecisionTable() - Constructor for class m865.simulation.DecisionTable
 
DEFAULT_CAPACITY - Static variable in class m865.datastructures.QueueCL
The default capacity of the dynamic array.
defaultColor - Static variable in class m865.shapepack.Shape
Constant specifying the default fill color for a shape.
defaultErr - Static variable in class m865.io.MySystem
The defaul Error stream corresponds to the Unix stderr.
defaultHeight - Static variable in class m865.shapepack.Shape
Constant specifying the default height of a shape.
defaultIn - Static variable in class m865.io.MySystem
The default Input stream corresponding to the Unix stdin.
defaultOut - Static variable in class m865.io.MySystem
The default Output stream corresponding to the Unix stdout.
defaultWidth - Static variable in class m865.shapepack.Shape
Constant specifying the default width of a shape.
DepartmentStore - Class in m865.simulation
The DepartmentStore has a main method which sets up and starts the simulation.
DepartmentStore(int, int, int, int, PassengerFactory) - Constructor for class m865.simulation.DepartmentStore
The constructor for the DepartmentStore.
departmentStore - Variable in class m865.simulation.DepartmentStoreEvent
The department store where this event occurs.
DepartmentStoreEvent - Class in m865.simulation
In addition to a firing time a DepartmentStoreEvent will need access to key objects in the department store.
DepartmentStoreEvent(Integer, DepartmentStore) - Constructor for class m865.simulation.DepartmentStoreEvent
Normal constructor for a DepartmentStoreEvent.
dequeue() - Method in class m865.datastructures.AbstractPriorityQueue
Removes and returns the object with the highest priority in the priority queue.
dequeue() - Method in class m865.datastructures.AbstractQueue
Removes and returns the type T object at the beginning of the queue.
dequeue() - Method in class m865.datastructures.PriorityQueueAL
Removes and returns the object at the beginning of the queue.
dequeue() - Method in class m865.datastructures.QueueCL
Removes and returns the object at the beginning of the queue.
dequeue() - Method in class m865.datastructures.QueueLL
Removes and returns the object on the top of the queue.
dequeue() - Method in class m865.simulation.BalkingQueue
The dequeue method
downdateHashCode(Object) - Method in class m865.datastructures.AbstractPriorityQueue
Downdates the hash code for this queue
downdateHashCode(Object) - Method in class m865.datastructures.AbstractQueue
Downdates the hash code for this queue
downdateHashCode(T) - Method in class m865.datastructures.AbstractStack
Downdates the hash code for this stack
draw(Graphics) - Method in class m865.shapepack.Ellipse
Draws the ellipse.
draw(Graphics) - Method in class m865.shapepack.Rectangle
Draws the rectangle
draw(Graphics) - Method in class m865.shapepack.Shape
Draws the shape.
dumpSchedule() - Method in class m865.simulation.Clock
Dumps the schedule.

E

Elevator - Class in m865.simulation
The Elevator class.
Elevator(int, int) - Constructor for class m865.simulation.Elevator
Constructor for the Elevator class
elevator - Variable in class m865.simulation.ElevatorArrivalEvent
The elevator
elevator - Variable in class m865.simulation.MoveOnEvent
Field to store which elevator we are working with
elevator - Variable in class m865.simulation.OffLoadEvent
The elevator
Elevator.State - Enum in m865.simulation
The three states of an elevator relative to its motion.
ElevatorArrivalEvent - Class in m865.simulation
The ElevatorArrivalEvent checks ButtonSystem Status and Passenger goals.
ElevatorArrivalEvent(Integer, DepartmentStore, Elevator, int) - Constructor for class m865.simulation.ElevatorArrivalEvent
Constructor for ElevatorArrivalEvent.
elevatorQueues - Variable in class m865.simulation.DepartmentStore
The array of queues that hold the passengers who are waiting for elevators.
elevators - Variable in class m865.simulation.DepartmentStore
The array of Elevators
elevatorTransitTime - Variable in class m865.simulation.DepartmentStore
The time for an elevator to move from one floor to the next
Ellipse - Class in m865.shapepack
The concrete Shape subclass that defines ellipses.
Ellipse(int, int, int, int, Color) - Constructor for class m865.shapepack.Ellipse
/** The generic Ellipse constructor
Ellipse(int, int) - Constructor for class m865.shapepack.Ellipse
Constructor for an ellipse at the specified location with the default width, height, and color.
ELLIPSE - Static variable in class m865.shapepack.ShapeFactory
 
enqueue(Prioritizeable) - Method in class m865.datastructures.AbstractPriorityQueue
Adds a Prioritizeable to the priority queue.
enqueue(T) - Method in class m865.datastructures.AbstractQueue
Appends a T object onto the end of the queue.
enqueue(Prioritizeable) - Method in class m865.datastructures.PriorityQueueAL
Appends an object to the end of the queue.
enqueue(T) - Method in class m865.datastructures.QueueCL
Appends a type T object to the end of the queue.
enqueue(T) - Method in class m865.datastructures.QueueLL
Enqueues an object to the back of the queue.
enqueue(Passenger) - Method in class m865.simulation.BalkingQueue
The enqueue method
equals(Object) - Method in class m865.datastructures.AbstractPriorityQueue
The test for equality.
equals(Object) - Method in class m865.datastructures.AbstractQueue
The test for equality.
equals(Object) - Method in class m865.datastructures.AbstractStack
The test for equality.
equals(Object) - Method in class m865.datastructures.PrioritizedItem
Tests for the equality of this object with a specified object
equals(Object) - Method in class m865.datastructures.PriorityQueueAL
The test for equality.
Event - Class in m865.simulation
Abstract class for an event.
Event(Integer) - Constructor for class m865.simulation.Event
Constructor for an event
extremeValues(double, double, double, double, double, double) - Method in class m865.simulation.Statistician
This method determines the longest wait and travel time encountered by a shopper

F

fire() - Method in class m865.simulation.BalkEvent
This method: removes the passenger from the queue.
fire() - Method in class m865.simulation.ElevatorArrivalEvent
The fire method tells the elevator that is is now at this floor, then it creates and schedules either an OffLoadEvent or a MoveOnEvent If passengers inside the elevator want to get off at the arrivalFloor, the elevator will stop at this floor.
fire() - Method in class m865.simulation.Event
This method is invoked when it is time for an event to fire.
fire() - Method in class m865.simulation.LoadEvent
Fire the event; move passengers onto the elevator and schedule schedule a MoveOnEvent after all passengers are on the elevator.
fire() - Method in class m865.simulation.MoveOnEvent
Decides how the elevator should move after all the passengers get off and get on.
fire() - Method in class m865.simulation.OffLoadEvent
Determines how many and which passengers to remove.
fire() - Method in class m865.simulation.PassengerArrivalEvent
This method schedules a PushButtonEvent.
fire() - Method in class m865.simulation.PressButtonEvent
Updates ButtonSystem.
fire() - Method in class m865.simulation.StartTaskEvent
Here we update the passengers time keeping information.
firingTime - Variable in class m865.simulation.Event
Every event has a time at which it fires
FLOORM1 - Static variable in class m865.simulation.DecisionTable
 
FLOORP1 - Static variable in class m865.simulation.DecisionTable
 
front - Variable in class m865.datastructures.QueueLL
The queue is implemented with a Linked List The Linked List starts with the link called top.

G

generateReport() - Method in class m865.simulation.Statistician
This method generates the report.
generator - Variable in class m865.simulation.PassengerFactory
 
getBalkEvent() - Method in class m865.simulation.Passenger
Get the BalkEvent associated with this passenger.
getButtonStatus(int, int) - Method in class m865.simulation.ButtonSystem
Gets the status of a button at a floor
getCapacity() - Method in class m865.simulation.Elevator
Get the elevator's capacity
getColor() - Method in class m865.shapepack.Shape
 
getCurrentDirection() - Method in class m865.simulation.Elevator
Get current elevator's direction
getCurrentFloor() - Method in class m865.simulation.Elevator
Get current elevator's floor
getCurrentFloor() - Method in class m865.simulation.Passenger
Get the floor the passenger is currently on.
getCurrentFloorTimePair() - Method in class m865.simulation.Passenger
Get the FloorTimePair of the passenger's current task.
getDatum() - Method in class m865.datastructures.PrioritizedItem
Get the datum of this object
getFiringTime() - Method in class m865.simulation.Event
Gets the firing time for this event.
getFloor() - Method in class m865.simulation.Passenger.FloorTimePair
Get the floor.
getHeight() - Method in class m865.shapepack.Shape
 
getLoadingTime() - Method in class m865.simulation.Passenger
Get the amount of time it takes the passenger to get onto the elevator.
getMaxWait() - Method in class m865.simulation.Passenger
Get the maximum amount of time the passenger is willing to wait on the elevator before taking the stairs.
getNextFloor() - Method in class m865.simulation.Passenger
See which floor the passenger's next task is on.
getNextFloorTimePair() - Method in class m865.simulation.Passenger
Get the next FloorTimePair, telling us where the passenger needs to go next.
getNumBalks() - Method in class m865.simulation.Passenger
Get the number of times the passenger has balked.
getNumberOfPassengers() - Method in class m865.simulation.Elevator
Number of passengers inside the elevator
getPriority() - Method in class m865.datastructures.PrioritizedItem
Get the priority of this object
getQueue(int, boolean) - Method in class m865.simulation.DepartmentStore
Get an elevator queue
getSchedule() - Method in class m865.simulation.Passenger
Retrieve the passenger's schedule.
getState() - Method in class m865.simulation.Passenger
The passenger's current state.
getTheList() - Method in class m865.shapepack.ShapeFactory
 
getTime() - Method in class m865.simulation.Passenger.FloorTimePair
Get the time.
getTravelTimes() - Method in class m865.simulation.Passenger
Get an array of the times the passenger spent travelling on the elevator.
getUnloadingTime() - Method in class m865.simulation.Passenger
Get the amount of time it takes the passenger to get off of the elevator.
getWaitingTimes() - Method in class m865.simulation.Passenger
Get an array of the times the passenger spent waiting on the elevator.
getWalkingTime() - Method in class m865.simulation.Passenger
Get the amount of time it takes the passenger to walk up or down a flight of stairs.
getWidth() - Method in class m865.shapepack.Shape
 
getX() - Method in class m865.shapepack.Shape
 
getY() - Method in class m865.shapepack.Shape
 

H

hasEvent() - Method in class m865.simulation.Clock
Determine if there are more events to be processed.
hash - Variable in class m865.datastructures.AbstractPriorityQueue
The cached value of the hash code for the queue.
hash - Variable in class m865.datastructures.AbstractQueue
The cached value of the hash code for the queue.
hash - Variable in class m865.datastructures.AbstractStack
The cached value of the hash code for the stack.
hashCode() - Method in class m865.datastructures.AbstractPriorityQueue
Returns the value of the hash code for this priority queue.
hashCode() - Method in class m865.datastructures.AbstractQueue
Returns the value of the hash code for this queue.
hashCode() - Method in class m865.datastructures.AbstractStack
Returns the value of the hash code for this stack.
hashCode() - Method in class m865.datastructures.PrioritizedItem
Calculates the hashCode
hasMoreToDo() - Method in class m865.simulation.Passenger
See if the passenger has more tasks they need to complete.
hasNext() - Method in class m865.datastructures.PriorityQueueAL.PriorityQueueALIterator
Determines if there is an object in the priority queue that can be returned by next().
hasNext() - Method in class m865.datastructures.QueueCL.QueueCLIterator
Determines if there is an object in the queue that can be returned by next().
hasNext() - Method in class m865.datastructures.QueueLL.QueueLLIterator
Determines if there is an object in queue that can be returned by next().
hasNext() - Method in class m865.datastructures.StackAL.StackALIterator
Determines if there is an object in stack that can be returned by next().
hasNext() - Method in class m865.datastructures.StackLL.StackLLIterator
Determines if there is an object in stack that can be returned by next().
head - Variable in class m865.datastructures.QueueCL
The index that points to the front of the queue.
height - Variable in class m865.shapepack.Shape
Height of the bounding box.

I

IMMEDIATE - Static variable in class m865.simulation.Clock
The time for any event which must occur immediately.
isEmpty() - Method in class m865.datastructures.AbstractPriorityQueue
Determines whether the queue is empty.
isEmpty() - Method in class m865.datastructures.AbstractQueue
Determines whether the queue is empty.
isEmpty() - Method in class m865.datastructures.AbstractStack
Determines whether the stack is empty.
isEmpty() - Method in class m865.datastructures.QueueLL
Determines whether the queue is empty.
isEmpty() - Method in class m865.datastructures.StackLL
Determines whether the stack is empty.
isEmpty() - Method in class m865.simulation.BalkingQueue
The isEmpty method
iterator() - Method in class m865.datastructures.PriorityQueueAL
A factory method which returns an Iterator to the collection in this priority queue.
iterator() - Method in class m865.datastructures.QueueCL
A factory method which returns an Iterator to the collection in this queue.
iterator() - Method in class m865.datastructures.QueueLL
A factory method which returns an Iterator to the collection in this queue.
iterator() - Method in class m865.datastructures.StackAL
A factory method which returns an Iterator to the collection in this stack.
iterator() - Method in class m865.datastructures.StackLL
A factory method which returns an Iterator to the collection in this stack.

L

lambda - Variable in class m865.simulation.PassengerFactory
 
LoadEvent - Class in m865.simulation
The LoadEvent is responsible for moving passengers from a waiting queue onto an elevator, provided the elevator is stopping at the floor the passenger is on and is travelling in the direction the passenger wants to go.
LoadEvent(Integer, DepartmentStore, Elevator, BalkingQueue) - Constructor for class m865.simulation.LoadEvent
Create a new LoadEvent for moving passengers from the given queue to the given elevator.
loadPassenger(Passenger) - Method in class m865.simulation.Elevator
Load Passenger LoadEvent will send the passenger and the corresponding floor to the elevator
LOADTIME - Static variable in class m865.simulation.DepartmentStore
 
longestTravel - Variable in class m865.simulation.Statistician
 
longestWait - Variable in class m865.simulation.Statistician
 

M

m865.datastructures - package m865.datastructures
 
m865.io - package m865.io
 
m865.shapepack - package m865.shapepack
 
m865.simulation - package m865.simulation
 
main(String[]) - Static method in class m865.datastructures.PriorityQueueAL
This main method tests the PriorityQueueAL class to insure that the elementary functions are correct.
main(String[]) - Static method in class m865.datastructures.QueueCL
This main method tests the QueueCL class to insure that the elementary functions are correct.
main(String[]) - Static method in class m865.datastructures.QueueLL
This main method tests the QueueLL class to insure that the elementary functions are correct.
main(String[]) - Static method in class m865.datastructures.StackAL
This main method tests the StackAL class to insure that the elementary functions are correct.
main(String[]) - Static method in class m865.datastructures.StackLL
This main method tests the StackLL class to insure that the elementary functions are correct.
main(String[]) - Static method in class m865.io.MySystem
 
main(String[]) - Static method in class m865.shapepack.ShapeFactory
Provides a unit test.
main(String[]) - Static method in class m865.simulation.BalkingQueue
This main method tests the BalkingQueue
main(String[]) - Static method in class m865.simulation.DecisionTable
 
main(String[]) - Static method in class m865.simulation.DepartmentStore
The main method sets up the simulation.
main(String[]) - Static method in class m865.simulation.Statistician
Statistician Main method
meanBalk - Variable in class m865.simulation.PassengerFactory
 
meanTask - Variable in class m865.simulation.PassengerFactory
 
MOVEDH - Static variable in class m865.simulation.DecisionTable
 
MOVEDOWN - Static variable in class m865.simulation.DecisionTable
 
MoveOnEvent - Class in m865.simulation
MoveOnEvent decides if the elevator should move up a floor, down a floor, or stay on the current floor.
MoveOnEvent(Integer, DepartmentStore, Elevator) - Constructor for class m865.simulation.MoveOnEvent
Constructor for objects of class MoveOnEvent
MoveOnEvent.State - Enum in m865.simulation
The three states which represent how the elevator can move
moveTo(int, int) - Method in class m865.shapepack.Shape
Moves the shape by setting the upper left corner of the bounding box to the specified coordinates.
MOVEUH - Static variable in class m865.simulation.DecisionTable
 
MOVEUP - Static variable in class m865.simulation.DecisionTable
 
myArray - Variable in class m865.datastructures.QueueCL
The dynamic array.
MySystem - Class in m865.io
The MySystem class mimics the features of stdin, stdout, and stderr, enabling these IO streams to be redirected to files.
MySystem() - Constructor for class m865.io.MySystem
 

N

n - Variable in class m865.simulation.PassengerFactory
 
next() - Method in class m865.datastructures.PriorityQueueAL.PriorityQueueALIterator
Returns the next object in priority queue, if there is one.
next() - Method in class m865.datastructures.QueueCL.QueueCLIterator
Returns the next object in queue, if there is one.
next - Variable in class m865.datastructures.QueueLL.Link
Each link contains a reference to the next link and a reference to the value stored in the link.
next() - Method in class m865.datastructures.QueueLL.QueueLLIterator
Returns the next object in queue, if there is one.
next() - Method in class m865.datastructures.StackAL.StackALIterator
Returns the next object in stack, if there is one.
next() - Method in class m865.datastructures.StackLL.StackLLIterator
Returns the next object in stack, if there is one.
nextEvent() - Method in class m865.simulation.Clock
Gets the next event.
nItems - Variable in class m865.datastructures.QueueLL
 
nItems - Variable in class m865.datastructures.StackLL
 
now() - Method in class m865.simulation.Clock
Gets the current time.
now - Variable in class m865.simulation.OffLoadEvent
The time each passenger disembarks
numberBalked - Variable in class m865.simulation.Statistician
 
numberOfElevators - Variable in class m865.simulation.DepartmentStore
The number of elevators
numberOfFloors - Variable in class m865.simulation.DepartmentStore
The number of floors

O

OffLoadEvent - Class in m865.simulation
OffLoadEvent will remove passengers from the elevator and have them begin their task on a given floor
OffLoadEvent(Integer, DepartmentStore, Elevator) - Constructor for class m865.simulation.OffLoadEvent
Constructor for objects of class OffLoadEvent
OFFLOADTIME - Static variable in class m865.simulation.DepartmentStore
 
overallAvgTravelSum - Variable in class m865.simulation.Statistician
 
overallAvgWaitSum - Variable in class m865.simulation.Statistician
 

P

paddedFormat(long, int) - Static method in class m865.io.MySystem
Converts an integer to a string with enough leading blanks to fill a space of the specified size.
passenger - Variable in class m865.simulation.BalkEvent
the passenger that is now scheduled to balk.
Passenger - Class in m865.simulation
A class representing passengers in the elevator simulation for Dr.
Passenger(List<Passenger.FloorTimePair>, DepartmentStore) - Constructor for class m865.simulation.Passenger
Create a new passenger with the given schedule, a list of FloorTimePair objects.
Passenger(List<Passenger.FloorTimePair>, DepartmentStore, int, int, int, int) - Constructor for class m865.simulation.Passenger
Create a new passenger with the given schedule, a list of FloorTimePair objects.
passenger - Variable in class m865.simulation.PassengerArrivalEvent
the passenger that just arrived
Passenger.FloorTimePair - Class in m865.simulation
A simple class representing a floor and time pair, telling us what floor we need to be at and how much time we'll spend there.
Passenger.FloorTimePair(int, int) - Constructor for class m865.simulation.Passenger.FloorTimePair
Create a new FloorTimePair.
Passenger.State - Enum in m865.simulation
The possible states the passenger may be in.
PassengerArrivalEvent - Class in m865.simulation
When a passenger arrives, they are immediately sent to the PushButtonEvent.
PassengerArrivalEvent(Integer, DepartmentStore, Passenger) - Constructor for class m865.simulation.PassengerArrivalEvent
Constructor for objects of class PassengerArrivalEvent
passengerCount - Variable in class m865.simulation.Statistician
 
passengerFactory - Variable in class m865.simulation.DepartmentStore
The factory that generates the people, sets up their shopping tasks, and schedules their arrival events.
PassengerFactory - Class in m865.simulation
The PassengerFactory class will create a user specified number of passengers for the elevator system.
PassengerFactory(int, double, long, double, double, double, double) - Constructor for class m865.simulation.PassengerFactory
Constructor for objects of class PassengerFactory
passengerFloor - Variable in class m865.simulation.Elevator
Array of Floors corresponding to the passengers inside the elevator
passengers - Variable in class m865.simulation.Elevator
ArrayList of Passengers inside the elevator
peek() - Method in class m865.datastructures.AbstractPriorityQueue
Returns the object with the highest priority in the priority queue.
peek() - Method in class m865.datastructures.AbstractQueue
Returns the type T object on the beginning of the queue.
peek() - Method in class m865.datastructures.AbstractStack
Returns the type T object on the top of the stack.
peek() - Method in class m865.datastructures.PriorityQueueAL
Returns the object at the beginning of the queue.
peek() - Method in class m865.datastructures.QueueCL
Returns the object at the beginning of the queue.
peek() - Method in class m865.datastructures.QueueLL
Returns the object on the top of the queue.
peek() - Method in class m865.datastructures.StackAL
Returns the object on the top of the stack.
peek() - Method in class m865.datastructures.StackLL
Returns the object on the top of the stack.
peek() - Method in class m865.simulation.BalkingQueue
The peek method
perimeter() - Method in class m865.shapepack.Ellipse
Calculates an approximation to the perimeter of the ellipse.
perimeter() - Method in class m865.shapepack.Rectangle
Calculates the perimeter.
perimeter() - Method in class m865.shapepack.Shape
Calculates the perimeter of the shape.
pop() - Method in class m865.datastructures.AbstractStack
Removes and returns the type T object on the top of the stack.
pop() - Method in class m865.datastructures.StackAL
Removes and returns the object on the top of the stack.
pop() - Method in class m865.datastructures.StackLL
Removes and returns the object on the top of the stack.
pq - Variable in class m865.datastructures.PriorityQueueAL
The dynamic array is implemented with the java.util.ArrayList
pq - Variable in class m865.simulation.Clock
The prority queue for keeping track of the events
PressButtonEvent - Class in m865.simulation
Event related to ButtonSystem
PressButtonEvent(Integer, DepartmentStore, Passenger, int) - Constructor for class m865.simulation.PressButtonEvent
Constructor for objects of class PressButtonEvent
Prioritizeable - Interface in m865.datastructures
This interface defines the key method required for an object to be Prioritizeable.
PrioritizedItem - Class in m865.datastructures
The PrioritizedItem class contains objects which consist of a comparable object which represents the explicit priority, and a general object which is the prioritized datum.
PrioritizedItem(Comparable, Object) - Constructor for class m865.datastructures.PrioritizedItem
General Constructor
PrioritizedItem() - Constructor for class m865.datastructures.PrioritizedItem
Default constuctor
priority - Variable in class m865.datastructures.PrioritizedItem
The Comparable object which designates the priority.
PriorityQueueAL - Class in m865.datastructures
This class implements a Queue using a dynamic array Version 2.1 incorporated a new class roster.
PriorityQueueAL(int) - Constructor for class m865.datastructures.PriorityQueueAL
Constructs a priority queue whose dynamic array has a specified initial size.
PriorityQueueAL() - Constructor for class m865.datastructures.PriorityQueueAL
Constructs a queue whose dynamic array has the default initial size for a ArrayList.
PriorityQueueAL(Collection) - Constructor for class m865.datastructures.PriorityQueueAL
Constructs a priority queue which is initialized with the objects in the specified collection.
PriorityQueueAL.PriorityQueueALIterator - Class in m865.datastructures
The iterator for this PriorityQueueAL class.
PriorityQueueAL.PriorityQueueALIterator(PriorityQueueAL) - Constructor for class m865.datastructures.PriorityQueueAL.PriorityQueueALIterator
Constructor for a PriorityQueueALIterator
push(T) - Method in class m865.datastructures.AbstractStack
Pushes a type T object onto the top of the stack.
push(T) - Method in class m865.datastructures.StackAL
Pushes a type T object onto the top of the stack.
push(T) - Method in class m865.datastructures.StackLL
Pushes an object onto the top of the stack.

Q

QueueCL<T> - Class in m865.datastructures
This class implements a Queue using a circular list embedded in a dynamic array Version 3.0 incorporates generics
QueueCL(int) - Constructor for class m865.datastructures.QueueCL
Constructs a queue whose dynamic array has a specified initial size.
QueueCL() - Constructor for class m865.datastructures.QueueCL
Constructs a queue whose dynamic array has the default initial capacity.
QueueCL(Collection<? extends T>) - Constructor for class m865.datastructures.QueueCL
Constructs a queue which is initialized with the objects in the specified collection
QueueCL(int, int, int, T[]) - Constructor for class m865.datastructures.QueueCL
Constructs a queue with a specified hash code and a clone of the array containing the circular list.
QueueCL.QueueCLIterator<T> - Class in m865.datastructures
The iterator that will walk through the elements of this queue from front to back.
QueueCL.QueueCLIterator(QueueCL) - Constructor for class m865.datastructures.QueueCL.QueueCLIterator
Constructs a QueueCLIterator.
QueueLL<T> - Class in m865.datastructures
This class implements a Queue using a simple Linked List.
QueueLL() - Constructor for class m865.datastructures.QueueLL
Constructs a queue which uses a simple Linked List.
QueueLL(Collection<? extends T>) - Constructor for class m865.datastructures.QueueLL
Constructs a queue which is initialized with the objects in the specified collection
QueueLL.Link<T> - Class in m865.datastructures
The Linked List is built from a simple forward link.
QueueLL.Link(QueueLL<T>.Link<T>, T) - Constructor for class m865.datastructures.QueueLL.Link
 
QueueLL.Link(T) - Constructor for class m865.datastructures.QueueLL.Link
 
QueueLL.Link() - Constructor for class m865.datastructures.QueueLL.Link
 
QueueLL.QueueLLIterator<T> - Class in m865.datastructures
An iterator for a Linked List queue.
QueueLL.QueueLLIterator(QueueLL<T>) - Constructor for class m865.datastructures.QueueLL.QueueLLIterator
Constructor for a QueueLL iterator
QUIET - Static variable in class m865.simulation.DepartmentStore
Symbolic constants to indicate the verbosity level

R

recordPassengerInfo(Passenger) - Method in class m865.simulation.Statistician
This method receives the information from the each of the passengers and updates the number of passengers, the number of balking passengers, sum of the transit times, sum of the waiting times, etc.
Rectangle - Class in m865.shapepack
The concrete Shape subclass that defines rectangles.
Rectangle(int, int, int, int, Color) - Constructor for class m865.shapepack.Rectangle
The generic Rectangle constructor
Rectangle(int, int) - Constructor for class m865.shapepack.Rectangle
Constructor for a rectangle at the specified location with the default width, height, and color.
RECTANGLE - Static variable in class m865.shapepack.ShapeFactory
 
remove(Object) - Method in class m865.datastructures.AbstractQueue
This is an optional method of the Collection Interface.
remove(Object) - Method in class m865.datastructures.AbstractStack
This is an optional method of the Collection Interface.
remove() - Method in class m865.datastructures.PriorityQueueAL.PriorityQueueALIterator
Removes the last object returned by the iterator from the priority queue.
remove(Object) - Method in class m865.datastructures.PriorityQueueAL
Removes the specified object from this priority queue.
remove() - Method in class m865.datastructures.QueueCL.QueueCLIterator
This method is an optional method of the Iterator interface.
remove() - Method in class m865.datastructures.QueueLL.QueueLLIterator
This method is an optional method of the Iterator interface.
remove() - Method in class m865.datastructures.StackAL.StackALIterator
This method is an optional method of the Iterator interface.
remove() - Method in class m865.datastructures.StackLL.StackLLIterator
This method is an optional method of the Iterator interface.
remove(Passenger) - Method in class m865.simulation.BalkingQueue
Removes the specified passenger from this balking queue.
remove(Event) - Method in class m865.simulation.Clock
Removes the specified event from the priority queue.
removeAll(Collection) - Method in class m865.datastructures.AbstractPriorityQueue
Insures that each element of the specified collection is removed from the the priority queue.
removeAll(Collection<?>) - Method in class m865.datastructures.AbstractQueue
This is an optional method of the Collection Interface.
removeAll(Collection<?>) - Method in class m865.datastructures.AbstractStack
This is an optional method of the Collection Interface.
removeBalkEvent() - Method in class m865.simulation.Passenger
Remove the BalkEvent associated with this passenger.
resetButton(int, int) - Method in class m865.simulation.ButtonSystem
Resets(Removes) "Press" status for a button at a floor
retainAll(Collection) - Method in class m865.datastructures.AbstractPriorityQueue
Removes all the elements of the priority queue that are not contained in the specified collection.
retainAll(Collection<?>) - Method in class m865.datastructures.AbstractQueue
This is an optional method of the Collection Interface.
retainAll(Collection<?>) - Method in class m865.datastructures.AbstractStack
This is an optional method of the Collection Interface.
run() - Method in class m865.simulation.DepartmentStore
The run method runs the simulation.

S

s - Variable in class m865.datastructures.StackAL
The stack is implemented using a dynamic array from java.util.ArrayList
schedule(Event) - Method in class m865.simulation.Clock
Place the specified event into the schedule.
schedulePassengers(DepartmentStore) - Method in class m865.simulation.PassengerFactory
Generates each passenger and generates a personal schedule for each, consisting of an arrival time, two tasks with times and a balk time for that particular customer.
setBalkEvent(BalkEvent) - Method in class m865.simulation.Passenger
Tell the passenger which BalkEvent they're associated with.
setButton(int, int) - Method in class m865.simulation.ButtonSystem
Sets "Press" status for a button at a floor
setColor(Color) - Method in class m865.shapepack.Shape
 
setDatum(Object) - Method in class m865.datastructures.PrioritizedItem
Set the dataum of this object
setDefaultErr(String) - Static method in class m865.io.MySystem
Redirect the default Error stream to the specified file.
setDefaultErr() - Static method in class m865.io.MySystem
Redirect the default Error stream to System.err.
setDefaultIn(String) - Static method in class m865.io.MySystem
Redirects the default Input stream to the specified file.
setDefaultIn() - Static method in class m865.io.MySystem
Redirect the default Input stream to System.in.
setDefaultOut(String) - Static method in class m865.io.MySystem
Redirect the default Output stream to the specified file.
setDefaultOut() - Static method in class m865.io.MySystem
Redirect the default Output stream to System.out.
setDirection(Elevator.State) - Method in class m865.simulation.Elevator
update elevator direction MoveOnEvent will send this information to elevator
setFiringTime(Integer) - Method in class m865.simulation.Event
Set a new firing time for this event.
setFloor(int) - Method in class m865.simulation.Elevator
update current floor ElevatorArrivalEvent will send this information to elevator
setHeight(int) - Method in class m865.shapepack.Shape
 
setHeight(int) - Method in class m865.shapepack.Square
Set the height of the square.
SETIDLE - Static variable in class m865.simulation.DecisionTable
 
setPriority(Comparable) - Method in class m865.datastructures.PrioritizedItem
Set the priority of this object
setWidth(int) - Method in class m865.shapepack.Shape
 
setWidth(int) - Method in class m865.shapepack.Square
Set the width of the square.
Shape - Class in m865.shapepack
The Shape class is an abstract class which defines the fields, methods and behavior common to all shapes.
Shape(int, int, int, int, Color) - Constructor for class m865.shapepack.Shape
The generic constructor for shape objects.
ShapeFactory - Class in m865.shapepack
The ShapeFactory class is a factory class which provides a catalog of the shapes it can make and two creation methods which will construct any shape in the catalog.
ShapeFactory() - Constructor for class m865.shapepack.ShapeFactory
 
siftDown(int) - Method in class m865.datastructures.PriorityQueueAL
Moves this item at the specified position down the heap according to its priority.
size() - Method in class m865.datastructures.PriorityQueueAL
Determines the size of this prioirity queue.
size - Variable in class m865.datastructures.QueueCL
The size of the queue.
size() - Method in class m865.datastructures.QueueCL
Determines the size of this queue.
size() - Method in class m865.datastructures.QueueLL
Determines the size of this queue.
size() - Method in class m865.datastructures.StackAL
Determines the size of this stack.
size() - Method in class m865.datastructures.StackLL
Determines the size of this stack.
size() - Method in class m865.simulation.BalkingQueue
The size method
SQUARE - Static variable in class m865.shapepack.ShapeFactory
 
Square - Class in m865.shapepack
The Square subclass of Rectangle.
Square(int, int, int, Color) - Constructor for class m865.shapepack.Square
The generic Square constructor.
Square(int, int) - Constructor for class m865.shapepack.Square
Constructor for a square at the specified location with the default width (and height) and color.
StackAL<T> - Class in m865.datastructures
This class implements a Stack using a dynamic array Version 3.0 incorporates generics
StackAL(int) - Constructor for class m865.datastructures.StackAL
Constructs a stack whose dynamic array has a specified initial size.
StackAL() - Constructor for class m865.datastructures.StackAL
Constructs a stack whose dynamic array has the default initial size for a ArrayList.
StackAL(Collection<? extends T>) - Constructor for class m865.datastructures.StackAL
Constructs a stack which is initialized with the objects in the specified collection
StackAL(int, ArrayList<T>) - Constructor for class m865.datastructures.StackAL
Constructs a stack with a specified hash code and a clone of the specified ArrayList.
StackAL.StackALIterator<T> - Class in m865.datastructures
An iterator for an ArrayList stack.
StackAL.StackALIterator(StackAL<T>) - Constructor for class m865.datastructures.StackAL.StackALIterator
Constructor for an StackAL iterator
StackLL<T> - Class in m865.datastructures
This class implements a Stack using a simple Linked List.
StackLL() - Constructor for class m865.datastructures.StackLL
Constructs a stack which uses a simple Linked List.
StackLL(Collection<? extends T>) - Constructor for class m865.datastructures.StackLL
Constructs a stack which is initialized with the objects in the specified collection
StackLL(int, int, StackLL<T>.Link<T>) - Constructor for class m865.datastructures.StackLL
Constructs a stack with a specified hash code and a specified linked list.
StackLL.Link<T> - Class in m865.datastructures
The Linked List is built from a simple forward link.
StackLL.StackLLIterator<T> - Class in m865.datastructures
An iterator for an Linked List stack.
StackLL.StackLLIterator(StackLL<T>) - Constructor for class m865.datastructures.StackLL.StackLLIterator
Constructor for a StackLL iterator
StartTaskEvent - Class in m865.simulation
The StartTastEvent: This event is created and added to the queue, fired at the appropriate time.
StartTaskEvent(Integer, DepartmentStore, Passenger, int) - Constructor for class m865.simulation.StartTaskEvent
Constructor for objects of class StartTaskEvent
statistician - Variable in class m865.simulation.DepartmentStore
The class which collects the Passenger and teller statistics and generates the simulation report.
Statistician - Class in m865.simulation
This is a Statistician class which performs all the necessary calculations based on the inputs taken from the passengers and and presents to the departmentStore a report on the day's events.
Statistician() - Constructor for class m865.simulation.Statistician
Default constructor for the statistician class
stdBalk - Variable in class m865.simulation.PassengerFactory
 
stdTask - Variable in class m865.simulation.PassengerFactory
 

T

theList - Variable in class m865.shapepack.ShapeFactory
The list containing the names of the shapes that this factory knows how to make.
time - Variable in class m865.simulation.Clock
The current time.
toArray() - Method in class m865.datastructures.AbstractPriorityQueue
Creates an array containing the objects in this priority queue.
toArray(Object[]) - Method in class m865.datastructures.AbstractPriorityQueue
Creates an array containing the objects in this priority queue.
toArray() - Method in class m865.datastructures.AbstractQueue
Creates an array containing the objects in this queue.
toArray(T[]) - Method in class m865.datastructures.AbstractQueue
Creates an array containing the objects in this queue.
toArray() - Method in class m865.datastructures.AbstractStack
Creates an array containing the objects in this stack.
toArray(T[]) - Method in class m865.datastructures.AbstractStack
Creates an array containing the objects in this stack.
top - Variable in class m865.datastructures.StackLL
The stack is implemented with a Linked List The Linked List starts with the link called top.
toString() - Method in class m865.datastructures.AbstractPriorityQueue
List the objects in the queue
toString() - Method in class m865.datastructures.AbstractQueue
List the objects in the queue
toString() - Method in class m865.datastructures.AbstractStack
List the objects in the stack
toString() - Method in class m865.datastructures.PrioritizedItem
Display this prioritized item
toString() - Method in class m865.datastructures.PriorityQueueAL
List the objects in the priority queue in their priorty order.
toString() - Method in class m865.datastructures.QueueCL
List the objects in the queue
toString() - Method in class m865.datastructures.QueueLL
List the objects in the queue
toString() - Method in class m865.datastructures.StackAL
List the objects in the stack
toString() - Method in class m865.datastructures.StackLL
List the objects in the stack
toString() - Method in class m865.shapepack.Ellipse
 
toString() - Method in class m865.shapepack.Rectangle
Generates the string describing the rectangle.
toString() - Method in class m865.shapepack.Shape
Generates a string describing the parameters of the shape.
toString() - Method in class m865.shapepack.ShapeFactory
 
toString() - Method in class m865.shapepack.Square
 
toString() - Method in class m865.simulation.BalkEvent
Simple to string method to help with debugging.
toString() - Method in class m865.simulation.BalkingQueue
List the objects in the queue
toString() - Method in class m865.simulation.DepartmentStore
the toString method.
toString() - Method in class m865.simulation.ElevatorArrivalEvent
The basic toString method
toString() - Method in class m865.simulation.Event
The basic toString method
toString() - Method in class m865.simulation.LoadEvent
 
toString() - Method in class m865.simulation.MoveOnEvent
The toString method
toString() - Method in class m865.simulation.OffLoadEvent
The toString method
toString() - Method in class m865.simulation.Passenger.FloorTimePair
Get a String representation of the FloorTimePair.
toString() - Method in class m865.simulation.Passenger
Get a String representation of the passenger.
toString() - Method in class m865.simulation.PassengerArrivalEvent
Simple to string method to help with debugging.
toString() - Method in class m865.simulation.PressButtonEvent
Simple to string method to help with debugging.
toString() - Method in class m865.simulation.StartTaskEvent
A simple toString() method for debugging
toString() - Method in class m865.simulation.Statistician
toString method

U

unloadPassenger() - Method in class m865.simulation.Elevator
Unload Passenger OffLoadEvent will request a passenger for this floor
updateHashCode(Object) - Method in class m865.datastructures.AbstractPriorityQueue
Updates the hash code for this queue
updateHashCode(Object) - Method in class m865.datastructures.AbstractQueue
Updates the hash code for this queue
updateHashCode(T) - Method in class m865.datastructures.AbstractStack
Updates the hash code for this stack
updateTime() - Method in class m865.simulation.Passenger
Update the passenger's time records.

V

valueOf(String) - Static method in enum m865.simulation.Elevator.State
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum m865.simulation.MoveOnEvent.State
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum m865.simulation.Passenger.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum m865.simulation.Elevator.State
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum m865.simulation.MoveOnEvent.State
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum m865.simulation.Passenger.State
Returns an array containing the constants of this enum type, in the order they're declared.
VERBOSE - Static variable in class m865.simulation.DepartmentStore
 
verbosity - Variable in class m865.simulation.DepartmentStore
verbosity indicates the level of information that gets printed out.
VERY_VERBOSE - Static variable in class m865.simulation.DepartmentStore
 

W

width - Variable in class m865.shapepack.Shape
Width of the bounding box.

X

x - Variable in class m865.shapepack.Shape
Horizontal coordinate of the upper left corner of the bounding box.

Y

y - Variable in class m865.shapepack.Shape
Vertical coordinate of the upper left corner of the bounding box.

A B C D E F G H I L M N O P Q R S T U V W X Y