public class StdGenerator extends Generator
If a length distribution is provided, the length of the default Message generated by the MessageFactory is overwritten.
Entity.PortAlias
Modifier and Type | Field and Description |
---|---|
protected ContinuousDistribution |
interArrivalTime |
protected DiscreteDistribution |
messageLengthDist |
activated, event, messageFactory, outputPort
portAliases, ports, simNode
Modifier | Constructor and Description |
---|---|
|
StdGenerator(ContinuousDistribution iat,
DiscreteDistribution lengthdist,
java.lang.String name,
SimNode owner) |
|
StdGenerator(ContinuousDistribution iat,
DiscreteDistribution lengthdist,
java.lang.String name,
SimNode owner,
boolean activateOnStart) |
|
StdGenerator(ContinuousDistribution iat,
DiscreteDistribution lengthdist,
java.lang.String name,
SimNode owner,
Factory<Message> factory) |
|
StdGenerator(ContinuousDistribution iat,
DiscreteDistribution lengthdist,
java.lang.String name,
SimNode owner,
Factory<Message> factory,
boolean activateOnStart)
Constructor with factory but without parsing.
|
|
StdGenerator(ContinuousDistribution iat,
java.lang.String name,
SimNode owner) |
|
StdGenerator(ContinuousDistribution iat,
java.lang.String name,
SimNode owner,
boolean activateOnStart) |
|
StdGenerator(ContinuousDistribution iat,
java.lang.String name,
SimNode owner,
Factory<Message> factory) |
|
StdGenerator(ContinuousDistribution iat,
java.lang.String name,
SimNode owner,
Factory<Message> factory,
boolean activateOnStart)
Constructor without parsing of distributions (w and w/o factory)
|
protected |
StdGenerator(java.lang.String name,
SimNode owner) |
protected |
StdGenerator(java.lang.String name,
SimNode owner,
boolean activateOnStart) |
protected |
StdGenerator(java.lang.String name,
SimNode owner,
Factory<Message> factory) |
protected |
StdGenerator(java.lang.String name,
SimNode owner,
Factory<Message> factory,
boolean activateOnStart)
to be used for subclasses parsing
|
Modifier and Type | Method and Description |
---|---|
protected Message |
createMessage() |
protected double |
getNextEventTime(double currentTime) |
activate, deactivate, getMessageFactory, getOutput, setActivated, setMessageFactory
addPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPort
protected ContinuousDistribution interArrivalTime
protected DiscreteDistribution messageLengthDist
protected StdGenerator(java.lang.String name, SimNode owner, Factory<Message> factory, boolean activateOnStart)
protected StdGenerator(java.lang.String name, SimNode owner, boolean activateOnStart)
protected StdGenerator(java.lang.String name, SimNode owner)
public StdGenerator(ContinuousDistribution iat, DiscreteDistribution lengthdist, java.lang.String name, SimNode owner, Factory<Message> factory, boolean activateOnStart)
public StdGenerator(ContinuousDistribution iat, DiscreteDistribution lengthdist, java.lang.String name, SimNode owner, Factory<Message> factory)
public StdGenerator(ContinuousDistribution iat, DiscreteDistribution lengthdist, java.lang.String name, SimNode owner, boolean activateOnStart)
public StdGenerator(ContinuousDistribution iat, DiscreteDistribution lengthdist, java.lang.String name, SimNode owner)
public StdGenerator(ContinuousDistribution iat, java.lang.String name, SimNode owner, Factory<Message> factory, boolean activateOnStart)
public StdGenerator(ContinuousDistribution iat, java.lang.String name, SimNode owner, Factory<Message> factory)
public StdGenerator(ContinuousDistribution iat, java.lang.String name, SimNode owner, boolean activateOnStart)
public StdGenerator(ContinuousDistribution iat, java.lang.String name, SimNode owner)
protected Message createMessage()
createMessage
in class Generator
protected double getNextEventTime(double currentTime)
getNextEventTime
in class Generator