|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.messaging.devices.components.Device
nl.tudelft.simulation.messaging.devices.components.SendingReceivingDevice
A SendingReceivingDevice combines the sending device and receiving device in
one aggregated object.
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.
| Field Summary |
| 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.DeviceInterface |
STATE_CHANGE_EVENT |
| Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
FIRST_POSITION, LAST_POSITION |
| Fields inherited from interface nl.tudelft.simulation.messaging.devices.components.ReceivingDeviceInterface |
RECEIVED_NEW_MESSAGE_EVENT |
| Constructor Summary | |
SendingReceivingDevice(java.lang.String name,
ReceivingDeviceInterface receiver,
SendingDeviceInterface sender)
constructs a new SendingReceivingDevice |
|
| Method Summary | |
MessageQueueInterface |
getQueue()
get the queue of messages that have already been received. |
void |
notify(nl.tudelft.simulation.event.EventInterface event)
|
java.lang.Object |
receive(Message message)
receives a message |
java.lang.Object |
send(Message message)
sends a message |
| 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 |
public SendingReceivingDevice(java.lang.String name,
ReceivingDeviceInterface receiver,
SendingDeviceInterface sender)
name - the name of the devicesender - the sending part of this devicereceiver - the receiving part of this device| Method Detail |
public java.lang.Object send(Message message)
SendingDeviceInterface
send in interface SendingDeviceInterfacemessage - the message to be send
SendingDeviceInterface.send(nl.tudelft.simulation.messaging.Message)public java.lang.Object receive(Message message)
ReceivingDeviceInterface
receive in interface ReceivingDeviceInterfacemessage - the message
ReceivingDeviceInterface.receive(nl.tudelft.simulation.messaging.Message)public MessageQueueInterface getQueue()
ReceivingDeviceInterface
getQueue in interface ReceivingDeviceInterfaceReceivingDeviceInterface.getQueue()public void notify(nl.tudelft.simulation.event.EventInterface event)
notify in interface nl.tudelft.simulation.event.EventListenerInterfaceEventListenerInterface.notify(nl.tudelft.simulation.event.EventInterface)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||