de.cau.cs.kieler.sim.trace
Class Signal

java.lang.Object
  extended by de.cau.cs.kieler.sim.trace.Signal

public class Signal
extends Object

Implementation of a signal, which has a name, as status and an optional value. A signal does not have a status: a signal that exists is present.

Rating red

Constructor Summary
Signal(String theName)
          Generate pure signal
Signal(String theName, int theValue)
          Generate valued signal.
 
Method Summary
 String getName()
           
 Integer getValue()
           
 boolean isValued()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Signal

public Signal(String theName)
Generate pure signal

Parameters:
theName - name of the signal

Signal

public Signal(String theName,
              int theValue)
Generate valued signal.

Parameters:
theName - name of the signal
theValue - value of the signal.
Method Detail

getValue

public Integer getValue()
Returns:
value of the signal

getName

public String getName()
Returns:
name of the signal

isValued

public boolean isValued()
Returns:
true if it is a valued signal.