public class BurstGenerator extends Generator
BurstGenerator generates bursts of information that are
segmented in messages of max. size and sent according to an
interPacketTime. MessageFactory and parsing is done as
in StdGenerator.| Modifier and Type | Class and Description |
|---|---|
protected static class |
BurstGenerator.BurstData |
Entity.PortAlias| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<BurstGenerator.BurstData> |
activeBursts |
protected ContinuousDistribution |
burstIATDist |
protected DiscreteDistribution |
burstLengthDist |
protected Duration |
interPacketTime |
protected int |
maxPacketSize |
protected BurstGenerator.BurstData |
nextBurst |
activated, currentEventToken, messageFactory, outputPortportAliases, ports, simNodeCREATE_INSTANCE_METHOD_NAME| Constructor and Description |
|---|
BurstGenerator(DiscreteDistribution burstLengthDist,
ContinuousDistribution burstIATDist,
Duration interPacketTime,
int maxPacketSize,
SimNode ownNode) |
BurstGenerator(DiscreteDistribution burstLengthDist,
ContinuousDistribution burstIATDist,
Duration interPacketTime,
int maxPacketSize,
SimNode ownNode,
boolean activateOnStart) |
BurstGenerator(DiscreteDistribution burstLengthDist,
ContinuousDistribution burstIATDist,
Duration interPacketTime,
int maxPacketSize,
SimNode ownNode,
Factory<Message> factory) |
BurstGenerator(DiscreteDistribution burstLengthDist,
ContinuousDistribution burstIATDist,
Duration interPacketTime,
int maxPacketSize,
SimNode ownNode,
Factory<Message> factory,
boolean activateOnStart) |
| Modifier and Type | Method and Description |
|---|---|
static BurstGenerator |
createInstance(SimNode ownNode,
Parameters pars)
as required by
ReflectionConstructable |
protected Message |
createMessage() |
protected Message |
createMessageToSend(int length) |
protected void |
createNewNextBurst(PointInTime refTime)
creates a new burst and stores it in nextBurst
|
protected BurstGenerator.BurstData |
getCurentBurst()
decides which burst is the one which sends the next packet.
|
protected PointInTime |
getNextEventTime(PointInTime currentTime) |
void |
setActivated(boolean start) |
activate, deactivate, getMessageFactory, getOutput, handleProcessEvent, setMessageFactoryaddPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPortprotected final DiscreteDistribution burstLengthDist
protected final ContinuousDistribution burstIATDist
protected final Duration interPacketTime
protected final int maxPacketSize
protected final java.util.List<BurstGenerator.BurstData> activeBursts
protected BurstGenerator.BurstData nextBurst
public BurstGenerator(DiscreteDistribution burstLengthDist, ContinuousDistribution burstIATDist, Duration interPacketTime, int maxPacketSize, SimNode ownNode, Factory<Message> factory, boolean activateOnStart)
public BurstGenerator(DiscreteDistribution burstLengthDist, ContinuousDistribution burstIATDist, Duration interPacketTime, int maxPacketSize, SimNode ownNode, Factory<Message> factory)
public BurstGenerator(DiscreteDistribution burstLengthDist, ContinuousDistribution burstIATDist, Duration interPacketTime, int maxPacketSize, SimNode ownNode)
public BurstGenerator(DiscreteDistribution burstLengthDist, ContinuousDistribution burstIATDist, Duration interPacketTime, int maxPacketSize, SimNode ownNode, boolean activateOnStart)
public static BurstGenerator createInstance(SimNode ownNode, Parameters pars)
ReflectionConstructablepublic void setActivated(boolean start)
setActivated in class Generatorprotected PointInTime getNextEventTime(PointInTime currentTime)
getNextEventTime in class Generatorprotected Message createMessage()
createMessage in class Generatorprotected Message createMessageToSend(int length)
protected void createNewNextBurst(PointInTime refTime)
refTime - PointInTime which serves as reference for the burst IATprotected BurstGenerator.BurstData getCurentBurst()