m865.simulation
Class Passenger.FloorTimePair

java.lang.Object
  extended by m865.simulation.Passenger.FloorTimePair
Enclosing class:
Passenger

public static class Passenger.FloorTimePair
extends java.lang.Object

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.


Constructor Summary
Passenger.FloorTimePair(int floor, int time)
          Create a new FloorTimePair.
 
Method Summary
 int getFloor()
          Get the floor.
 int getTime()
          Get the time.
 java.lang.String toString()
          Get a String representation of the FloorTimePair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Passenger.FloorTimePair

public Passenger.FloorTimePair(int floor,
                               int time)
Create a new FloorTimePair.

Parameters:
floor - The floor the passenger should go to.
time - The amount of time the passenger will be at that floor.
Method Detail

getFloor

public int getFloor()
Get the floor.

Returns:
The floor.

getTime

public int getTime()
Get the time.

Returns:
The time.

toString

public java.lang.String toString()
Get a String representation of the FloorTimePair.

Overrides:
toString in class java.lang.Object
Returns:
A string describing the FloorTimePair.