|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.ericsson.eto.norarc.javaframe.Trace
This object produces Trace information to file or stream for one scheduler.
The Trace object is given as parameter to the constructor of the Scheduler
.
Only very few methods are available to the application programmer
Scheduler
,
TraceUserDefinedTask(java.lang.String)
,
setTraceOn(boolean)
Field Summary | |
protected long |
start_time
|
protected boolean |
trace_on
|
Constructor Summary | |
Trace(boolean on,
java.lang.String fileName)
Constructor trace to file |
|
Trace(boolean on,
java.lang.String remote_address,
int remote_port)
Constructor trace to remote port |
Method Summary | |
protected java.lang.String |
fullStateName(State state)
The full name of a nested State. |
protected void |
saveTraceData()
Add text to the trace. |
void |
setTraceOn(boolean on)
Control of trace production. |
protected void |
traceDefaultTransition(StateMachine sm,
State st,
Message msg)
|
protected void |
traceHeader()
Write the trace header. |
protected void |
traceInput(StateMachine sm,
State st,
Message msg)
Trace receiption of an input message by a StateMachine. |
protected void |
traceNextState(State st)
Trace transition to a new State. |
protected void |
traceOutput(Message msg,
Mediator med)
Trace output of a message in a transaction. |
protected void |
traceSameState(State st)
Trace that the transition remains in the same State. |
protected void |
traceSave(StateMachine sm,
State st,
Message msg)
|
protected void |
traceSMadded(StateMachine fsm)
Trace that a new StateMachine has been generated. |
protected void |
traceTimestamp()
Include a timestamp in the trace. |
void |
TraceUserDefinedTask(java.lang.String str)
Produce Trace information from within user defined transitions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean trace_on
protected long start_time
Constructor Detail |
public Trace(boolean on, java.lang.String fileName)
on
- trace info is produced iff truefileName
- trace filepublic Trace(boolean on, java.lang.String remote_address, int remote_port) throws java.lang.Exception
on
- trace info produced iff trueremote_address
- Inet address to JFTrace instantiationremote_port
- Port number to JFTrace instantiationMethod Detail |
public void setTraceOn(boolean on)
on
- When true then there will be produced trace info otherwise notprotected void saveTraceData()
protected java.lang.String fullStateName(State state)
state
- can be leaf, middle, or the top (representing the FSM)
If state is the top, the name of top is return.
Otherwise, top is not part of the full name.protected void traceHeader()
protected void traceTimestamp()
protected void traceInput(StateMachine sm, State st, Message msg)
sm
- current StateMachinest
- current State of smmsg
- the message receivedprotected void traceOutput(Message msg, Mediator med)
msg
- the message to be sentmed
- output mediatorprotected void traceNextState(State st)
st
- the new Stateprotected void traceSameState(State st)
st
- current Stateprotected void traceSMadded(StateMachine fsm)
fsm
- the new StateMachineprotected void traceDefaultTransition(StateMachine sm, State st, Message msg)
protected void traceSave(StateMachine sm, State st, Message msg)
public void TraceUserDefinedTask(java.lang.String str)
str
- A String with the information to be traced
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |