engine
Class ValueChangeMonitor

java.lang.Object
  |
  +--engine.ValueChangeMonitor

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...)


Field Summary
(package private)  BitVector curValue
           
(package private) static int EVT_CHANGE
           
(package private) static int EVT_NEGEDGE
           
(package private) static int EVT_POSEDGE
           
(package private)  boolean isOn
           
(package private)  long lastTime
           
(package private)  BitVector lastValue
           
(package private)  int mask
           
(package private)  NameSpace ns
           
(package private)  Expression target
           
(package private)  java.lang.Object waiter
           
 
Constructor Summary
(package private) ValueChangeMonitor(NameSpace ns, Expression target, int mask)
           
 
Method Summary
(package private)  void attach(java.lang.Object semaphore)
           
(package private)  void consume()
           
(package private)  void detach()
           
(package private)  boolean isTriggd()
           
 java.lang.String toString()
           
 void trigger()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

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

EVT_POSEDGE

static final int EVT_POSEDGE

EVT_NEGEDGE

static final int EVT_NEGEDGE

mask

int mask
Constructor Detail

ValueChangeMonitor

ValueChangeMonitor(NameSpace ns,
                   Expression target,
                   int mask)
Method Detail

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()
Overrides:
toString in class java.lang.Object