engine
Class MContAssignMonitor

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

class MContAssignMonitor
extends java.lang.Object
implements Monitor, Executable

Used for internal linking between wirez. It propagates strength and cannot be delayed (i.e. acts like a tran/2 ).


Field Summary
(package private)  boolean active
           
(package private)  BitVector curValue
           
(package private)  int length
           
(package private)  LeftValue[] lValue
           
(package private)  byte[] newStrengths
           
(package private)  BitVector prevValue
           
(package private)  byte[] reduceTable
          If this monitor should reduce strengths, this contains the reducing table
(package private)  Expression[] rValue
           
 
Constructor Summary
(package private) MContAssignMonitor(LeftValue[] lValue, Expression[] rValue)
           
 
Method Summary
(package private) static MContAssignMonitor createNewMContAssignMonitor(LeftValue[] lValue, Expression rValue)
           
(package private) static MContAssignMonitor createNewMContAssignMonitor(LeftValue lValue, Expression rValue)
           
(package private) static MContAssignMonitor createNewMContAssignMonitor(LeftValue lValue, Expression[] rValue)
           
 void execute()
           
(package private)  void setReduceTable(byte[] table)
          Sets the strength reduction table
 java.lang.String toString()
           
(package private)  java.lang.String toString(java.lang.Object[] lValue)
           
 void trigger()
          Note: If triggered multiple times per time-unit, it will execute only once, assigning the last update value.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

lValue

LeftValue[] lValue

rValue

Expression[] rValue

prevValue

BitVector prevValue

curValue

BitVector curValue

newStrengths

byte[] newStrengths

active

boolean active

length

int length

reduceTable

byte[] reduceTable
If this monitor should reduce strengths, this contains the reducing table
Constructor Detail

MContAssignMonitor

MContAssignMonitor(LeftValue[] lValue,
                   Expression[] rValue)
Method Detail

createNewMContAssignMonitor

static MContAssignMonitor createNewMContAssignMonitor(LeftValue[] lValue,
                                                      Expression rValue)

createNewMContAssignMonitor

static MContAssignMonitor createNewMContAssignMonitor(LeftValue lValue,
                                                      Expression[] rValue)

createNewMContAssignMonitor

static MContAssignMonitor createNewMContAssignMonitor(LeftValue lValue,
                                                      Expression rValue)

setReduceTable

void setReduceTable(byte[] table)
Sets the strength reduction table

trigger

public void trigger()
             throws InterpretTimeException
Note: If triggered multiple times per time-unit, it will execute only once, assigning the last update value.
Specified by:
trigger in interface Monitor

toString

java.lang.String toString(java.lang.Object[] lValue)

execute

public void execute()
             throws InterpretTimeException
Specified by:
execute in interface Executable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object