public class CrossbarMessage extends Message implements java.lang.Cloneable
MessageCrossbar
or a
MessageChannel
to activate processes waiting on the them. The
CrossbarMessage contains the TimeInstant
on which it was sent and its
sender (the process that send the message to the crossbar).MessageCrossbar
,
MessageChannel
Modifier and Type | Class and Description |
---|---|
static class |
CrossbarMessage.DistributionMode
The DistributionMode defines how a CrossbarMessage is distributed to
receiver processes.
|
Constructor and Description |
---|
CrossbarMessage(Model origin,
java.lang.String description)
Constructs a CrossbarMessage with the given model and description.
|
CrossbarMessage(Model origin,
java.lang.String description,
CrossbarMessage.DistributionMode distributionMode)
Constructs a CrossbarMessage with the given model, description and
CrossbarMessage.DistributionMode . |
Modifier and Type | Method and Description |
---|---|
CrossbarMessage.DistributionMode |
getDistributionMode() |
SimProcess |
getSender()
Returns the process which sent this message to the
MessageCrossbar . |
getDescription, getExperimentName, getModelName, getSendTime, getTime, toString
public CrossbarMessage(Model origin, java.lang.String description)
CrossbarMessage.DistributionMode
using the constructor
CrossbarMessage(Model, String, DistributionMode)
origin
- The model the CrossbarMessage belongs to.description
- The description for the message.public CrossbarMessage(Model origin, java.lang.String description, CrossbarMessage.DistributionMode distributionMode)
CrossbarMessage.DistributionMode
.origin
- The model the CrossbarMessage belongs to.description
- The description for the message.distributionMode
- The CrossbarMessage.DistributionMode
for this message defining whether
it will be distributed to receivers by reference or as a copy.public CrossbarMessage.DistributionMode getDistributionMode()
public SimProcess getSender()
MessageCrossbar
.