|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.krep.evalbench.comm.Signal
public class Signal
Pure or valued signal for the synchronous signal model.
Constructor Summary | |
---|---|
Signal(Signal s)
generate a new signal by copying. |
|
Signal(String n,
boolean s,
Integer v,
HashMap<String,Integer> tIndex)
Creates and initializes a signal. |
|
Signal(String tName,
boolean tStatus,
Integer tValue,
Integer tIndex)
generate Signal with explicit index. |
|
Signal(String tName,
Integer tValue)
generate new signal. |
Method Summary | |
---|---|
int |
compareTo(Signal o)
|
boolean |
equals(Object o)
|
int |
getIndex()
Get the signal index. |
String |
getName()
Get the signal name. |
boolean |
getPresent()
Get the current signal status. |
Object |
getValue()
Get the signal value. |
int |
hashCode()
|
boolean |
isValued()
Check whether this is a valued signal. |
void |
setIndex(int tIndex)
Set the signal index. |
void |
setPresent(boolean b)
Set the current signal status. |
void |
setValue(Object x)
Set the signal value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Signal(String n, boolean s, Integer v, HashMap<String,Integer> tIndex)
n
- signal names
- initial status of the signalv
- value of the signal, null for pure signaltIndex
- signal indexpublic Signal(String tName, boolean tStatus, Integer tValue, Integer tIndex)
tName
- name of the signaltStatus
- initial statustValue
- value if valued, null for pure signaltIndex
- index in the current programpublic Signal(Signal s)
s
- signal to copypublic Signal(String tName, Integer tValue)
tName
- name of the signaltValue
- initial value for a valued signal, null for a pure signalMethod Detail |
---|
public boolean isValued()
public int getIndex()
public void setIndex(int tIndex)
tIndex
- signal indexpublic boolean getPresent()
public void setPresent(boolean b)
b
- new statuspublic Object getValue()
public void setValue(Object x)
x
- new valuepublic String getName()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(Signal o)
compareTo
in interface Comparable<Signal>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |