/** * This class encapsulates the concept of a room message. It includes * both the message describing the room and the time at which the * message was received. This class is used whenever a received 802.11 * message describing a room must be stored or placed into a queue or * history. * * @author Tony Offer * @author Chris Palistrant * @version 1.0 */ public class Room { // The message that describes the room. public String roomMsg = null; // The time at which the room message was received. public long timeReceived; /** * Basic constructor can be used to create a new Room object * describing the room message that was received and the time at * which it was received. * * @param msg The message that was received. * @param time The time at which the message was received. */ public Room(String msg, long time) { roomMsg = msg; timeReceived = time; } }