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

A

a - Variable in class MADMethodHashFunction
Multiplier for the MAD method.
ACraneStrategy - class ACraneStrategy.
Base class for a strategy of operating the warehouse crane.
ACraneStrategy() - Constructor for class ACraneStrategy
 
add(Parcel) - Method in class Crane
Sets the parcel at the current crane location to the given parcel.
add(Statistics) - Method in class Statistics
Adds the given statistics to this set of statistics.
addComponents() - Method in class CraneView
Adds components to this GUI.
addComponents() - Method in class StatisticsView
Adds the components to this GUI.
added - Variable in class StatisticsView
View for the number of added orders.
addedPer - Variable in class StatisticsView
View for the percentage of added orders.
addLocations - Variable in class RowsStrategy
Locations found to place a lot of parcels.
addOrder(Order) - Method in class ACraneStrategy
Places the given order in the warehouse and returns true, or returns false if it could not be placed.
addOrder(Order) - Method in class Crane
Places the given order in the warehouse and returns true, or returns false if it could not be placed.
addOrder(Order) - Method in class Warehouse
Places the given order in the warehouse and returns true, or returns false if it could not be placed.
addPropertyChangeListener(PropertyChangeListener) - Method in class Crane
Adds the given property change listener to the list of property change listeners for this crane.
address - Variable in class Letter
Address for this.
Address - class Address.
Address for letter to be sorted at the post office.
Address(String) - Constructor for class Address
Constructs a new address with the given zip code.
adds - Variable in class Statistics
Number of orders successfully added.
addStrategies() - Method in class WarehouseApplication
Adds the device drivers for use in this simulation.
addStrategies(WarehouseApplication) - Static method in class MapFactory
Adds ACraneStrategy objects to the given application.
addStrategy(ACraneStrategy) - Method in class WarehouseApplication
Adds a strategy for use in this simulation.
addTime(long) - Method in class Statistics
Adds the given number of milliseconds.

B

b - Variable in class MADMethodHashFunction
Addend for the MAD method.
beginAdd(Order) - Method in class ACraneStrategy
Called when the given order is to be added to the warehouse.
beginAdd(Order) - Method in class RowsStrategy
Finds a row with enough space to hold the given order.
beginRemove(Order) - Method in class ACraneStrategy
Called when the given order is to be removed from the warehouse.
bias - Variable in class WarehouseApplication
Bias towards removing a lot in this simulation.
body - Variable in class Letter
Message for this.

C

CenterStrategy - class CenterStrategy.
Strategy that picks locations near the center of the warehouse.
CenterStrategy() - Constructor for class CenterStrategy
 
colors - Static variable in class ParcelView
Colors for parcels.
contains(Parcel) - Method in class Crane
Returns true if the current crane location contains the given parcel, or false if it does not contain the given parcel.
contains(Parcel) - Method in class Order
Returns whether or not this contains the given parcel.
crane - Variable in class ACraneStrategy
Crane used to operate on the warehouse.
crane - Variable in class Warehouse
Crane used to operate on this warehouse.
crane - Variable in class WarehouseView
Space view currently inhabited by the crane.
Crane - class Crane.
A crane used in a warehouse to store and remove parcels from a grid of possible locations using row and column coordinates.
Crane(Warehouse) - Constructor for class Crane
Constructs a crane operating on the given warehouse.
CraneView - class CraneView.
View for the status of a warehouse crane.
CraneView(Crane) - Constructor for class CraneView
Constructs a view for the given warehouse crane.
createActionsPanel() - Method in class WarehouseApplication
Creates the actions panel for simulation actions.
createHashFunction(int) - Static method in class MapFactory
Creates IHashFunction objects for use in hash tables.
createMap() - Static method in class MapFactory
Creates IMap objects for use in the application.
currentParcel - Variable in class RowsStrategy
Current parcel being added.

D

delay - Static variable in class Crane
Delay time for all cranes.
delay - Static variable in class WarehouseApplication
Delay time for all simulations.
delay() - Method in class Crane
Delays operation of this crane.
delay() - Method in class WarehouseApplication
Delays this simulation.
destination - Variable in class Crane
Current move destination in warehouse.
destination - Variable in class WarehouseView
Space view currently the crane's destination.
DESTINATION - Static variable in class Crane
Bound property name for the destination property.
destinationView - Variable in class CraneView
View for the destination of this crane.
distance(Point, Point) - Static method in class Crane
Returns the number of steps required for a crane to move from the first given point to the second given point.
DivisionMethodHashFunction - class DivisionMethodHashFunction.
IHashFunction implementation using the division method.
DivisionMethodHashFunction(int) - Constructor for class DivisionMethodHashFunction
Constructs a new hash function with the given array length.
driver - Variable in class Crane
Device driver governing the operation of this crane.

E

equals(Object) - Method in class Address
Compares this address to the given object.

F

failedAdds - Variable in class Statistics
Number of orders unsuccessfully added.
failedAdds - Variable in class StatisticsView
View for the number of failed adds.
failedAddsPer - Variable in class StatisticsView
View for the percentage of failed adds.
failedRemoves - Variable in class Statistics
Number of orders unsuccessfully removed.
failedRemoves - Variable in class StatisticsView
View for the number of failed removes.
failedRemovesPer - Variable in class StatisticsView
View for the percentage of failed removes.
fragmented - Variable in class Order
Whether or not this lot is fragmented.
fragmented - Variable in class Statistics
Number of fragmented orders.
fragmented - Variable in class StatisticsView
View for the number of fragmented orders.
fragmentedPer - Variable in class StatisticsView
View for the percentage of fragmented orders.

G

generator - Static variable in class WarehouseApplication
Random number generator for all simulations.
getAddLocation(Parcel) - Method in class ACraneStrategy
Returns a location in the warehouse at which the given parcel should be added.
getAddLocation(Parcel) - Method in class CenterStrategy
Returns an empty location near the center of the warehouse, or returns null if there are no empty locations.
getAddLocation(Parcel) - Method in class RandomStrategy
Returns a random location at which to try to add the given parcel.
getAddLocation(Parcel) - Method in class RowsStrategy
Returns the location to add the given parcel, or null if there is no such location.
getAdds() - Method in class Statistics
Returns the number of added orders.
getColor(int) - Static method in class ParcelView
Returns a color for this parcel.
getColumn() - Method in class Crane
Returns the column index of the location of this crane.
getColumnCount() - Method in class Warehouse
Returns the number of columns in this warehouse.
getCompareCount() - Static method in class Address
Returns the compare count of addresses.
getCrane() - Method in class Warehouse
Returns the crane used to operate on this warehouse.
getDestination() - Method in class Crane
Returns the destination of this crane, or null if it has no current destination.
getFailedAdds() - Method in class Statistics
Returns the number of failed adds.
getFailedRemoves() - Method in class Statistics
Returns the number of failed removes.
getFragmented() - Method in class Statistics
Returns the number of fragmented orders.
getHitPercentage() - Method in class Space
Returns the percentage of total hits that this space has received.
getLocation() - Method in class Crane
Returns the location of this crane.
getModel() - Method in class LetterView
Returns the letter data model for this view.
getMoves() - Method in class Statistics
Returns the number of crane moves.
getName() - Method in class ACraneStrategy
Returns the name of this device driver.
getName() - Method in class CenterStrategy
Returns the name of this.
getName() - Method in class RandomStrategy
Returns the name of this.
getName() - Method in class RowsStrategy
Returns the name of this.
getParcel() - Method in class Crane
Returns the parcel at the current crane location.
getParcel() - Method in class Space
Returns the parcel contained in this space, or null if this space is empty.
getParcel(int, int) - Method in class Warehouse
Returns the parcel stored in this warehouse in the space at the given row and column indices.
getRemoveLocation(Order) - Method in class ACraneStrategy
Returns a location in the warehouse from which a parcel in the given order should be removed.
getRemoveLocation(Order) - Method in class CenterStrategy
Returns a location near the center of the warehouse that contains a parcel in the given lot, or returns null if there are no parcels in the given order.
getRemoveLocation(Order) - Method in class RandomStrategy
Returns a location from which to remove a parcel in the given order.
getRemoves() - Method in class Statistics
Returns the number of removed orders.
getRow() - Method in class Crane
Returns the row index of the location of this crane.
getRowCount() - Method in class Warehouse
Returns the number of rows in this warehouse.
getSpaces() - Method in class Warehouse
Returns the array of spaces in this warehouse.
getStatistics() - Method in class Crane
Returns the current operating statistics for this crane.
getStatus() - Method in class Crane
Returns the status description for this crane.
getStrategy() - Method in class Crane
Returns the strategy for this crane.
getStrategy(int) - Method in class WarehouseApplication
Gets the strategy at the given index.
getTime() - Method in class Statistics
Returns the number of milliseconds used by the strategy.
getZipCode() - Method in class Address
Returns the zip code for this.

H

hash(Object) - Method in class DivisionMethodHashFunction
Returns the hash index for the given key object.
hash(Object) - Method in interface IHashFunction
Returns the hash index for the given key object.
hash(Object) - Method in class MADMethodHashFunction
Returns the hash index for the given key object.
hashCode() - Method in class Address
Returns the hash code for this.
heatColor() - Method in class SpaceView
Returns the correct transparent color for this space given the hit percentage for the data model.
highlightColor - Variable in class SpaceView
Whether or not this space is highlighted.
hit() - Method in class Space
"Hits" this space.
hit(Point) - Method in class Warehouse
"Hits" the space at the given location.
hits - Variable in class Space
Number of times this space has been "hit".
hundredth - Variable in class StatisticsView
String format for 2 decimal place precision.

I

IHashFunction - interface IHashFunction.
Required method for a hash function.
IMap - interface IMap.
Required methods for the Map ADT.
incrementAdds() - Method in class Statistics
Adds one to the number of added orders.
incrementFailedAdds() - Method in class Statistics
Adds one to the number of failed adds.
incrementFailedRemoves() - Method in class Statistics
Adds one to the number of failed removes.
incrementFragmented() - Method in class Statistics
Adds one to the number of fragmented orders.
incrementMoves() - Method in class Statistics
Adds one to the number of crane moves.
incrementRemoves() - Method in class Statistics
Adds one to the number of removed orders.
initializeComponents() - Method in class CraneView
Initializes the components used in this GUI.
initializeSlider() - Method in class WarehouseApplication
Sets slider parameters.
initializeViews() - Method in class CraneView
Initializes the contents of the views in this GUI.
insertItem(Object, Object) - Method in interface IMap
Inserts an item into this that associates the given key with the given element, increasing the size of this by 1 if the given key is not already in this.
insertItem(Object, Object) - Method in class JavaMap
Inserts an item into this that associates the given key with the given element, increasing the size of this by 1 if the given key is not already in this.
installControlPanel() - Method in class WarehouseApplication
Installs the control panel for the simulation.
installCraneView() - Method in class WarehouseApplication
Installs the view for the warehouse crane.
installInto(Crane, Warehouse) - Method in class ACraneStrategy
Installs this device driver into the given crane operating in the given warehouse.
installStrategy(ACraneStrategy) - Method in class Crane
Installs the given device driver into this crane.
installWarehouseView() - Method in class WarehouseApplication
Installs the view for the warehouse.
isEmpty() - Method in class Crane
Returns whether or not the current crane location is an empty warehouse location.
isEmpty() - Method in interface IMap
Returns whether or not this is empty.
isEmpty() - Method in class JavaMap
Returns whether or not this is empty.
isEmpty() - Method in class Space
Returns whether or not this space is empty.
isEmpty(int, int) - Method in class Warehouse
Returns whether or not the space at the given row and column indices is empty.
isFragmented(Order) - Method in class Warehouse
Returns whether or not the given order is fragmented.
isFull() - Method in class Warehouse
Returns true if there are no empty spaces in this warehouse, and false if at least one empty space exists.
isHighlighted() - Method in class Address
Returns whether or not the letter for this should be highlighted.
isHighlighted() - Method in class Letter
Returns whether or not this should be highlighted.
isHighlighted() - Method in class SpaceView
Returns whether or not this space is highlighted.
items - Variable in class JavaMap
Hashtable used to store items in this.

J

JavaMap - class JavaMap.
IMap implementation using a Java Hashtable to store items.
JavaMap() - Constructor for class JavaMap
Constructs an empty Java map.

L

Letter - class Letter.
A letter to be sorted at the post office.
Letter(Address, String) - Constructor for class Letter
Constructs a new letter.
LetterView - class LetterView.
View for a letter.
LetterView(Letter) - Constructor for class LetterView
Constructs a view for the given letter.
listeners - Variable in class Crane
Helper object for property change support.
location - Variable in class Crane
Current location in warehouse.
LOCATION - Static variable in class Crane
Bound property name for the location property.
locationView - Variable in class CraneView
View for the location of this crane.
log - Variable in class CraneView
Vector to store status log.
lookupElement(Object) - Method in interface IMap
Returns the element associated with the given key, or NO_SUCH_ELEMENT if the key is not in this.
lookupElement(Object) - Method in class JavaMap
Returns the element associated with the given key, or NO_SUCH_ELEMENT if the key is not in this.
lots - Variable in class WarehouseApplication
Number of lots to be placed in this simulation.

M

MADMethodHashFunction - class MADMethodHashFunction.
IHashFunction implementation using the MAD method.
MADMethodHashFunction(int, int, int) - Constructor for class MADMethodHashFunction
Constructs a new hash function with the given array length.
main(String[]) - Static method in class MapTests
Starts this application.
main(String[]) - Static method in class WarehouseApplication
Creates a new application GUI in its own window.
MapFactory - class MapFactory.
Contains a factory methods to create objects for the Maps Exercises homework.
MapFactory() - Constructor for class MapFactory
 
MapTests - class MapTests.
Contains tests for the Maps Exercises homework.
MapTests() - Constructor for class MapTests
 
maxSize - Variable in class WarehouseApplication
Maximum size of a lot in this simulation.
model - Variable in class CraneView
Warehouse crane data model for this view.
model - Variable in class ParcelView
Parcel data model for this view.
model - Variable in class SpaceView
Space data model for this view.
model - Variable in class StatisticsView
Statistics data model for this view.
model - Variable in class WarehouseView
Warehouse data model for this view.
moved() - Method in class Crane
Called every time this crane moves.
moveDown() - Method in class Crane
Moves this crane one row to the south.
moveLeft() - Method in class Crane
Moves this crane one column to the left.
moveRight() - Method in class Crane
Moves this crane one column to the right.
moves - Variable in class Statistics
Number of spaces moved.
moves - Variable in class StatisticsView
View for the number of crane moves.
movesPer - Variable in class StatisticsView
View for the number of crane moves per operation.
moveTo(int, int) - Method in class Crane
Moves this crane to the given warehouse location.
moveUp() - Method in class Crane
Moves this crane one row to the north.

N

N - Variable in class DivisionMethodHashFunction
Length of the array for hashtable using this.
N - Variable in class MADMethodHashFunction
Length of the array for hashtable using this.
nextDouble() - Static method in class WarehouseApplication
Returns the next random double value produced by the random number generator.
NO_SUCH_ELEMENT - Static variable in interface IMap
Constant representing a key that is not in this.
number - Variable in class Order
Unique number for this.

O

order - Variable in class Parcel
Order containing this.
Order - class Order.
A group of parcels in one order for storage in the warehouse.
Order(int, Parcel[]) - Constructor for class Order
Constructs an order with the given identifier and group of parcels.
orderNumberAt(int, int) - Method in class ACraneStrategy
Returns the order number for the parcel stored at the given row and colum coordinates, or -1 if the coordinates represent an empty space.

P

paintBorder(Graphics) - Method in class SpaceView
Paints the border for this space to the given graphics context.
paintComponent(Graphics) - Method in class LetterView
Paints the letter to the provided graphics context.
paintComponent(Graphics) - Method in class ParcelView
Paints the parcel to the given graphics context.
paintComponent(Graphics) - Method in class SpaceView
Paints this space to the given graphics context.
parcel - Variable in class Space
Parcel contained in this space.
Parcel - class Parcel.
A parcel to be stored in a warehouse.
Parcel() - Constructor for class Parcel
Constructs a new parcel.
parcelAdded(int, int, Parcel) - Method in class ACraneStrategy
Called when the given parcel has successfully been added to the warehouse at the given location.
parcelPlacedAt(int, int, int) - Method in class ACraneStrategy
Stores the fact that the given row and column coordinates contain a parcel with the given order number.
parcelRemoved(int, int, Parcel) - Method in class ACraneStrategy
Called when the given parcel has successfully been removed from the warehouse from the given location.
parcelRemovedFrom(int, int) - Method in class ACraneStrategy
Stores the fact that the given row and column coordinates no longer contain a parcel.
parcels - Variable in class Order
Parcels in this.
ParcelView - class ParcelView.
View for a parcel to be held in a warehouse.
ParcelView(Parcel) - Constructor for class ParcelView
Constructs a view for the given parcel.
percent - Variable in class StatisticsView
String format for percentage.
PostOfficeView - class PostOfficeView.
Post office simulation.
PostOfficeView() - Constructor for class PostOfficeView
Constructs a post office.
print() - Method in class CraneView
Prints the text of the status log to the console.
print() - Method in class StatisticsView
Prints the statistics in the console.
propertyChange(PropertyChangeEvent) - Method in class CraneView
Updates this when the data model changes.
propertyChange(PropertyChangeEvent) - Method in class WarehouseView
Updates this view when the warehouse crane is changed.

Q

quit() - Method in class ACraneStrategy
Causes this device driver to quit operation.
quit() - Method in class Crane
Stops the operation of this crane.

R

RandomStrategy - class RandomStrategy.
Strategy that picks add locations at random.
RandomStrategy() - Constructor for class RandomStrategy
Constructs a random strategy.
remove() - Method in class Crane
Removes and returns the parcel at the current crane location.
removed - Variable in class StatisticsView
View for the number of removed orders.
removedPer - Variable in class StatisticsView
View for the percentage of removed orders.
removeElement(Object) - Method in interface IMap
Removes and returns the element in this that is associated with the given key, reducing the size of this by 1, or returns NO_SUCH_ELEMENT and does not change the size if the key is not in this.
removeElement(Object) - Method in class JavaMap
Removes and returns the element in this that is associated with the given key, reducing the size of this by 1, or returns NO_SUCH_ELEMENT and does not change the size if the key is not in this.
removeOrder(Order) - Method in class ACraneStrategy
Removes the given order from the warehouse and returns true, or returns false if it could not be removed.
removeOrder(Order) - Method in class Crane
Removes the given order from the warehouse and returns true, or returns false if it could not be removed.
removeOrder(Order) - Method in class Warehouse
Removes the given order from the warehouse and returns true, or returns false if it could not be removed.
removePropertyChangeListener(PropertyChangeListener) - Method in class Crane
Adds the given property change listener to the list of property change listeners for this crane.
removes - Variable in class Statistics
Number of orders successfully removed.
reset() - Method in class ACraneStrategy
Resets this device driver.
reset() - Method in class Crane
Resets this crane.
reset() - Method in class Space
Resets this space.
reset() - Method in class Statistics
Resets all metrics to zero.
reset() - Method in class Warehouse
Empties the warehouse and moves its crane to the default starting location.
resetCompareCount() - Static method in class Address
Resets the compare count of addresses to 0.
RowsStrategy - class RowsStrategy.
Strategies that adds parcels to rows with enough contiguous space to hold the whole order.
RowsStrategy() - Constructor for class RowsStrategy
 
run() - Method in class WarehouseApplication
Runs this simulation.
RunPostOfficeSimulation() - Method in class MapTests
Runs the post office application.
RunWarehouseSimulation() - Method in class MapTests
Runs the warehouse application.

S

setDelay(int) - Static method in class Crane
Sets the delay time for all warehouse cranes to the given number of milliseconds.
setDestination(Point) - Method in class Crane
Sets the destination for this crane to the given destination.
setHighlight(Color) - Method in class SpaceView
Sets whether or not this space is highlighted.
setParcel(int, int, Parcel) - Method in class Warehouse
Sets the parcel stored in this warehouse in the space at the given row and column indices to the given parcel.
setParcel(Parcel) - Method in class Crane
Sets the parcel at the current crane location to the given parcel.
setParcel(Parcel) - Method in class Space
Sets the parcel contained in this space to the given parcel.
setParcels(Parcel[]) - Method in class Order
Sets the parcels for this to the given array.
setStatus(String) - Method in class Crane
Sets the status description for this crane to the given description.
size() - Method in interface IMap
Returns the number of items in this.
size() - Method in class JavaMap
Returns the number of items in this.
size() - Method in class Order
Returns the number of parcels in this.
Space - class Space.
A location in a warehouse.
Space() - Constructor for class Space
Constructs a new space.
spaces - Variable in class Warehouse
Array of spaces in this warehouse.
spaces - Variable in class WarehouseView
Array of space views used in this view.
SpaceView - class SpaceView.
View for a space in a warehouse in which an individual parcel can be placed.
SpaceView(Space) - Constructor for class SpaceView
Constructs a view for the given space.
start() - Method in class WarehouseApplication
Starts a new simulation.
Statistics - class Statistics.
Operating statistics for a warehouse crane.
Statistics() - Constructor for class Statistics
 
StatisticsView - class StatisticsView.
View for simulation statistics.
StatisticsView(Statistics) - Constructor for class StatisticsView
 
stats - Variable in class Crane
Current operating statistics for this crane.
status - Variable in class Crane
Status description for this crane.
STATUS - Static variable in class Crane
Bound property name for the status property.
statusView - Variable in class CraneView
View for a status description of this crane.
stop() - Method in class WarehouseApplication
Stops the current simulation.
stopNow - Variable in class Crane
Whether or not this crane should stop operation.
stopNow - Variable in class WarehouseApplication
Whether or not this simulation is stopped.
STRATEGY - Static variable in class Crane
Bound property name for the strategy property.
strategyNameView - Variable in class CraneView
View for the name of the strategy for this crane.

T

time - Variable in class Statistics
Number of milliseconds used by strategy.
time - Variable in class StatisticsView
View for the number of milliseconds used.
timePer - Variable in class StatisticsView
Vier for the number of milliseconds used per operation.
toString() - Method in class Order
Returns a string representation of this.
totalHits - Static variable in class Space
Number of spaces "hit" in the course of the simulation.

U

update() - Method in class Statistics
Notifies observers that this object has changed.
update(Observable, Object) - Method in class Letter
Updates this when the address is changed.
update(Observable, Object) - Method in class LetterView
Updates this when the data model has changed.
update(Observable, Object) - Method in class SpaceView
Notifies this that its data model has changed.
update(Observable, Object) - Method in class StatisticsView
Called when the statistics data model changes.
update(Observable, Object) - Method in class WarehouseView
Updates this.
updateDelay() - Method in class WarehouseApplication
Updates the delay value for animation slowdown by storing the value of the slider.

W

warehouse - Variable in class ACraneStrategy
Warehouse on which this driver operates.
warehouse - Variable in class Crane
Warehouse on which this crane operates.
Warehouse - class Warehouse.
A warehouse storing parcels in orders.
Warehouse(int, int) - Constructor for class Warehouse
Creates a warehouse that can fit the given number of parcels per side.
WarehouseApplication - class WarehouseApplication.
Application simulating warehouse operation.
WarehouseApplication() - Constructor for class WarehouseApplication
Constructs the GUI for the application.
WarehouseView - class WarehouseView.
View for a warehouse using row and column coordinates to specify locations in the warehouse in tabular format.
WarehouseView(Warehouse) - Constructor for class WarehouseView
Constructs a view for the given warehouse.

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