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 ContinuousDistribution |
burstIATDist |
protected DiscreteDistribution |
burstLengthDist |
protected java.util.Queue<BurstGenerator.BurstData> |
burstList |
protected BurstGenerator.BurstData |
currentBurst |
protected double |
interPacketTime |
protected int |
maxPacketSize |
protected BurstGenerator.BurstData |
newBurst |
activated, event, messageFactory, outputPortportAliases, ports, simNode| Modifier | Constructor and Description |
|---|---|
|
BurstGenerator(DiscreteDistribution burstLengthDist,
ContinuousDistribution burstIATDist,
double interPacketTime,
int maxPacketSize,
java.lang.String name,
SimNode owner) |
|
BurstGenerator(DiscreteDistribution burstLengthDist,
ContinuousDistribution burstIATDist,
double interPacketTime,
int maxPacketSize,
java.lang.String name,
SimNode owner,
boolean activateOnStart) |
|
BurstGenerator(DiscreteDistribution burstLengthDist,
ContinuousDistribution burstIATDist,
double interPacketTime,
int maxPacketSize,
java.lang.String name,
SimNode owner,
Factory<Message> factory) |
|
BurstGenerator(DiscreteDistribution burstLengthDist,
ContinuousDistribution burstIATDist,
double interPacketTime,
int maxPacketSize,
java.lang.String name,
SimNode owner,
Factory<Message> factory,
boolean activateOnStart) |
protected |
BurstGenerator(java.lang.String name,
SimNode owner,
Factory<Message> factory) |
protected |
BurstGenerator(java.lang.String name,
SimNode owner,
Factory<Message> factory,
boolean activateOnStart) |
| Modifier and Type | Method and Description |
|---|---|
protected Message |
createMessage() |
protected Message |
createMessageToSend(int length) |
protected double |
getNextEventTime(double currentTime) |
activate, deactivate, getMessageFactory, getOutput, setActivated, setMessageFactoryaddPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPortprotected DiscreteDistribution burstLengthDist
protected ContinuousDistribution burstIATDist
protected double interPacketTime
protected int maxPacketSize
protected BurstGenerator.BurstData newBurst
protected BurstGenerator.BurstData currentBurst
protected final java.util.Queue<BurstGenerator.BurstData> burstList
protected BurstGenerator(java.lang.String name,
SimNode owner,
Factory<Message> factory,
boolean activateOnStart)
protected BurstGenerator(java.lang.String name,
SimNode owner,
Factory<Message> factory)
public BurstGenerator(DiscreteDistribution burstLengthDist, ContinuousDistribution burstIATDist, double interPacketTime, int maxPacketSize, java.lang.String name, SimNode owner, Factory<Message> factory, boolean activateOnStart)
public BurstGenerator(DiscreteDistribution burstLengthDist, ContinuousDistribution burstIATDist, double interPacketTime, int maxPacketSize, java.lang.String name, SimNode owner, Factory<Message> factory)
public BurstGenerator(DiscreteDistribution burstLengthDist, ContinuousDistribution burstIATDist, double interPacketTime, int maxPacketSize, java.lang.String name, SimNode owner)
public BurstGenerator(DiscreteDistribution burstLengthDist, ContinuousDistribution burstIATDist, double interPacketTime, int maxPacketSize, java.lang.String name, SimNode owner, boolean activateOnStart)
protected double getNextEventTime(double currentTime)
getNextEventTime in class Generatorprotected Message createMessage()
createMessage in class Generatorprotected Message createMessageToSend(int length)