nl.tudelft.simulation.messaging.devices.reference
Class LetterBox

java.lang.Object
  extended bynl.tudelft.simulation.event.EventProducer
      extended bynl.tudelft.simulation.messaging.devices.components.Device
          extended bynl.tudelft.simulation.messaging.devices.components.ReceivingDevice
              extended bynl.tudelft.simulation.messaging.devices.reference.LetterBox
All Implemented Interfaces:
DeviceInterface, nl.tudelft.simulation.event.EventProducerInterface, ReceivingDeviceInterface, java.io.Serializable

public class LetterBox
extends ReceivingDevice

A reference implementation of receiving regular mail.

Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.

Version:
$$Revision: 1.3 $$ $$Date: 2005/04/08 11:29:12 $$
Author:
Peter Jacobs , Stijn-Pieter van Houten , Alexander Verbraeck
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nl.tudelft.simulation.messaging.devices.components.ReceivingDevice
queue
 
Fields inherited from class nl.tudelft.simulation.messaging.devices.components.Device
name
 
Fields inherited from class nl.tudelft.simulation.event.EventProducer
listeners
 
Fields inherited from interface nl.tudelft.simulation.messaging.devices.components.ReceivingDeviceInterface
RECEIVED_NEW_MESSAGE_EVENT
 
Fields inherited from interface nl.tudelft.simulation.messaging.devices.components.DeviceInterface
STATE_CHANGE_EVENT
 
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
 
Constructor Summary
LetterBox()
          Constructs a new LetterBox with the default name "Letter-box".
LetterBox(java.lang.String name)
          Constructs a new LetterBox.
 
Methods inherited from class nl.tudelft.simulation.messaging.devices.components.ReceivingDevice
getQueue, receive
 
Methods inherited from class nl.tudelft.simulation.messaging.devices.components.Device
getDeviceType, getName, getState, getTransmissionDelay, getTransmissionFrequency, setState
 
Methods inherited from class nl.tudelft.simulation.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.tudelft.simulation.messaging.devices.components.DeviceInterface
getDeviceType, getName, getState, getTransmissionDelay, getTransmissionFrequency
 
Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface
addListener, addListener, addListener, addListener, getEventTypes, removeListener
 

Constructor Detail

LetterBox

public LetterBox()
Constructs a new LetterBox with the default name "Letter-box". A LetterBox is used for receiving letters.


LetterBox

public LetterBox(java.lang.String name)
Constructs a new LetterBox. A LetterBox is used for receiving letters.

Parameters:
name - the name of the LetterBox


Copyright © 2004-2005 Delft University of Technology, the Netherlands. All Rights Reserved.