inria.meije.rc.sugarcubes
Class JavaProgramValue

java.lang.Object
  |
  +--inria.meije.rc.sugarcubes.JavaProgramValue
All Implemented Interfaces:
JavaExpression, JavaProgramExpression, java.io.Serializable

public final class JavaProgramValue
extends java.lang.Object
implements JavaProgramExpression

It is a simple implementation of a JavaProgramExpression used when the reactive program is already constructed.

See Also:
Serialized Form

Field Summary
protected  Program inst
          It references the reactive program which is set at construction time.
 
Constructor Summary
JavaProgramValue(Program i)
          The constructor of this class gets a reactive program and stores it for future use (when the evaluate method is called).
 
Method Summary
 Program evaluate(java.lang.Object self, LocalVariables vars, ReactiveEngine engine)
          Returns the reactive program.
 java.lang.String toString()
          Returns a string representation of that atomic expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inst

protected final Program inst
It references the reactive program which is set at construction time.
Constructor Detail

JavaProgramValue

public JavaProgramValue(Program i)
The constructor of this class gets a reactive program and stores it for future use (when the evaluate method is called).
Method Detail

evaluate

public final Program evaluate(java.lang.Object self,
                              LocalVariables vars,
                              ReactiveEngine engine)
Returns the reactive program.
Specified by:
evaluate in interface JavaProgramExpression
Following copied from interface: inria.meije.rc.sugarcubes.JavaProgramExpression
See Also:
Cube

toString

public final java.lang.String toString()
Returns a string representation of that atomic expression. (simplify debugging)
Overrides:
toString in class java.lang.Object