|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.krep.evalbench.trace.Tick
public class Tick
One tick in a trace. Contains input and output signals with their values, as well as output signals that were saved at a given time.
Constructor Summary | |
---|---|
Tick()
generate empty tick. |
|
Tick(LinkedList<Signal> ins,
LinkedList<Signal> outs)
Generate tick. |
|
Tick(Tick t)
copy tick contents. |
Method Summary | |
---|---|
void |
add(IO io,
Signal s)
Add additional signal to a tick. |
void |
clearOutput()
restores the initial state by removing all output signals. |
LinkedList<Signal> |
getInputs()
|
LinkedList<Signal> |
getOutputs()
|
int |
getRT()
|
void |
setOutput(Tick t)
copy all outputs from Tick t. |
void |
setRT(int reactionTime)
set the reaction time to compute this tick. |
void |
snapshot()
save the current status of all outputs. |
String |
toString(IO io)
print part of the tick. |
boolean |
validate(Tick tick)
Test whether the current output is equal to the last snapshot of tick t. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tick()
public Tick(Tick t)
t
- tick to copypublic Tick(LinkedList<Signal> ins, LinkedList<Signal> outs)
ins
- list of input signals with their valuesouts
- list of output signals with their valuesMethod Detail |
---|
public void add(IO io, Signal s)
io
- indicates what kind of signal this iss
- the signalpublic String toString(IO io)
io
- indicate whether input, output or reference outputs are printed
public LinkedList<Signal> getInputs()
public LinkedList<Signal> getOutputs()
public void snapshot()
public boolean validate(Tick tick)
tick
- tick that contains the snapshot
public void setOutput(Tick t)
t
- the tick that defines the outputspublic void setRT(int reactionTime)
reactionTime
- reaction timepublic int getRT()
public void clearOutput()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |