public class TraceGenerator extends Generator
TraceGenerator
has two
helper classes, namely TraceFile
and TraceItem
. The trace file must have have following
format:Entity.PortAlias
Modifier and Type | Field and Description |
---|---|
protected int |
msgCounter |
protected TraceFile |
traceFile |
activated, event, messageFactory, outputPort
portAliases, ports, simNode
CREATE_INSTANCE_METHOD_NAME
Constructor and Description |
---|
TraceGenerator(java.lang.String filename,
SimNode ownNode,
boolean absoluteTime,
boolean wrapFile,
Factory<Message> factory) |
TraceGenerator(java.lang.String filename,
SimNode ownNode,
boolean absoluteTime,
boolean wrapFile,
Factory<Message> factory,
boolean activateOnStart) |
TraceGenerator(java.lang.String filename,
SimNode ownNode,
Factory<Message> factory) |
TraceGenerator(java.lang.String filename,
SimNode ownNode,
Factory<Message> factory,
boolean activateOnStart) |
Modifier and Type | Method and Description |
---|---|
static TraceGenerator |
createInstance(SimNode ownNode,
Parameters pars)
as required by
ReflectionConstructable |
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 TraceFile traceFile
protected int msgCounter
public TraceGenerator(java.lang.String filename, SimNode ownNode, Factory<Message> factory, boolean activateOnStart)
public TraceGenerator(java.lang.String filename, SimNode ownNode, Factory<Message> factory)
public TraceGenerator(java.lang.String filename, SimNode ownNode, boolean absoluteTime, boolean wrapFile, Factory<Message> factory, boolean activateOnStart)
public static TraceGenerator createInstance(SimNode ownNode, Parameters pars)
ReflectionConstructable
protected Message createMessage()
createMessage
in class Generator
protected double getNextEventTime(double currentTime)
getNextEventTime
in class Generator