Class Room

java.lang.Object
  extended by Room

public class Room
extends Object

A room is a location at which a session may be scheduled.

Version:
28 February 2006

Constructor Summary
Room(String theBuilding, String theRoomNumber)
          Construct a Room object.
 
Method Summary
 boolean equals(Room other)
          Determine if two rooms have the same information; that is, the strings for building are equivalent and the strings for room number are equivalent.
 String getBuilding()
          Return the building.
 String getRoomNumber()
          Return the room number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Room

public Room(String theBuilding,
            String theRoomNumber)
Construct a Room object.

Parameters:
theBuilding - the building
theRoomNumber - the room number
Method Detail

getBuilding

public String getBuilding()
Return the building.

Returns:
the building

getRoomNumber

public String getRoomNumber()
Return the room number.

Returns:
the room number

equals

public boolean equals(Room other)
Determine if two rooms have the same information; that is, the strings for building are equivalent and the strings for room number are equivalent.

Parameters:
other - the room to compare with this room
Returns:
true if the rooms have the same building and room number