engine
Class ValueChangeMonitor

java.lang.Object
engine.ValueChangeMonitor
- All Implemented Interfaces:
- Monitor
- class ValueChangeMonitor
- extends java.lang.Object
- implements Monitor
It's is a monitor that watches for the change of an expression,
and then wakes up the associated thread (and, now and then,
it gets stuck, i don't jnow why...)
ns
NameSpace ns
target
Expression target
lastValue
BitVector lastValue
curValue
BitVector curValue
lastTime
long lastTime
waiter
java.lang.Object waiter
isOn
volatile boolean isOn
EVT_CHANGE
static final int EVT_CHANGE
- See Also:
- Constant Field Values
EVT_POSEDGE
static final int EVT_POSEDGE
- See Also:
- Constant Field Values
EVT_NEGEDGE
static final int EVT_NEGEDGE
- See Also:
- Constant Field Values
mask
int mask
ValueChangeMonitor
ValueChangeMonitor(NameSpace ns,
Expression target,
int mask)
trigger
public void trigger()
throws InterpretTimeException
- Specified by:
trigger in interface Monitor
attach
void attach(java.lang.Object semaphore)
consume
void consume()
detach
void detach()
isTriggd
boolean isTriggd()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).