de.cau.cs.kieler.sim.trace
Interface ITrace

All Superinterfaces:
Iterator<ITick>

public interface ITrace
extends Iterator<ITick>

Generic interface for traces, ie, a list of ticks.

Rating red

Method Summary
 ITick current()
          Returns the current tick of the trace, without switching to the next tick.
 Set<String> getOutputs()
           
 int getRemaining()
           
 Set<String> getSignals()
          Take all signals that are defined by the trace, either input or output.
 boolean hasNext()
           
 ITick next()
          Activate and return the next tick of the trace, or null if no further tick exists.
 void reset()
          Reset the trace, ie, set initial tick as current.
 
Methods inherited from interface java.util.Iterator
remove
 

Method Detail

next

ITick next()
Activate and return the next tick of the trace, or null if no further tick exists.

Specified by:
next in interface Iterator<ITick>
Returns:
the next tick in the list

hasNext

boolean hasNext()
Specified by:
hasNext in interface Iterator<ITick>
Returns:
true if the trace has another tick

current

ITick current()
Returns the current tick of the trace, without switching to the next tick.

Returns:
the current tick

getRemaining

int getRemaining()
Returns:
number of remaining ticks

reset

void reset()
Reset the trace, ie, set initial tick as current.


getSignals

Set<String> getSignals()
Take all signals that are defined by the trace, either input or output.

Returns:
all signals that all defined by the trace

getOutputs

Set<String> getOutputs()