de.cau.cs.kieler.sim.trace
Class Signal
java.lang.Object
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

Constructor Summary |
Signal(String theName)
Generate pure signal |
Signal(String theName,
int theValue)
Generate valued signal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 signaltheValue
- value of the signal.
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.