nl.tudelft.simulation.messaging.devices.components
Class DelaySendingDevice
java.lang.Object
nl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.messaging.devices.components.Device
nl.tudelft.simulation.messaging.devices.components.SendingDevice
nl.tudelft.simulation.messaging.devices.components.DelaySendingDevice
- All Implemented Interfaces:
- DeviceInterface, nl.tudelft.simulation.event.EventProducerInterface, SendingDeviceInterface, java.io.Serializable
- public class DelaySendingDevice
- extends SendingDevice
The DelaySendingDevice device is a device that sends out a message, which
will arrive after a certain delay. There is no resource behavior in the
device.
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 |
protected nl.tudelft.simulation.jstats.distributions.DistContinuous |
delay
the delay of the sender |
protected nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface |
simulator
the simulator to schedule on |
| 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.event.EventProducerInterface |
FIRST_POSITION, LAST_POSITION |
|
Constructor Summary |
DelaySendingDevice(java.lang.String name,
DeviceType deviceType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
nl.tudelft.simulation.jstats.distributions.DistContinuous delay)
constructs a new DelaySendingDevice, take the transmission delay and
frequency from the DeviceType. |
DelaySendingDevice(java.lang.String name,
DeviceType deviceType,
int transmissionDelay,
double transmissionFrequency,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
nl.tudelft.simulation.jstats.distributions.DistContinuous delay)
constructs a new DelaySendingDevice, override the default transmission
delay and frequency from the DeviceType. |
|
Method Summary |
java.lang.Object |
send(Message message)
sends a message |
| 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.event.EventProducerInterface |
addListener, addListener, addListener, addListener, getEventTypes, removeListener |
simulator
protected nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator
- the simulator to schedule on
delay
protected nl.tudelft.simulation.jstats.distributions.DistContinuous delay
- the delay of the sender
DelaySendingDevice
public DelaySendingDevice(java.lang.String name,
DeviceType deviceType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
nl.tudelft.simulation.jstats.distributions.DistContinuous delay)
- constructs a new DelaySendingDevice, take the transmission delay and
frequency from the DeviceType.
- Parameters:
name - the name or description of the devicedeviceType - the type of devicesimulator - the simulatordelay - the delay
DelaySendingDevice
public DelaySendingDevice(java.lang.String name,
DeviceType deviceType,
int transmissionDelay,
double transmissionFrequency,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
nl.tudelft.simulation.jstats.distributions.DistContinuous delay)
- constructs a new DelaySendingDevice, override the default transmission
delay and frequency from the DeviceType.
- Parameters:
name - the name or description of the devicedeviceType - the type of devicetransmissionDelay - the default logarithmic transmission delay of
the device.transmissionFrequency - the maximum transmission frequency of the
device.simulator - the simulatordelay - the delay
send
public java.lang.Object send(Message message)
- Description copied from interface:
SendingDeviceInterface
- sends a message
- Specified by:
send in interface SendingDeviceInterface- Specified by:
send in class SendingDevice
- See Also:
#send(nl.tudelft.simulation.messaging.Message)
Copyright © 2004-2005 Delft University of Technology, the Netherlands. All Rights Reserved.