Class inria.meije.rc.sugarcubes.ValuedEvent
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class inria.meije.rc.sugarcubes.ValuedEvent

java.lang.Object
   |
   +----inria.meije.rc.sugarcubes.Event
           |
           +----inria.meije.rc.sugarcubes.ValuedEvent

public class ValuedEvent
extends Event
The valued event class. Generated values are combined in the write field. Event's value is in the read field.

Variable Index

 o read
 o write

Constructor Index

 o ValuedEvent(String)

Method Index

 o combination(Object, Object)
Abstract combination function.
 o generate(Machine, Object)
Generate event with a value in a machine.
 o value(Machine)
Get the value of the valued event.

Variables

 o read
  protected Object read
 o write
  protected Object write

Constructors

 o ValuedEvent
  public ValuedEvent(String name)

Methods

 o combination
  protected abstract Object combination(Object o1,
                                        Object o2)
Abstract combination function.
 o generate
  public void generate(Machine machine,
                       Object value)
Generate event with a value in a machine.
 o value
  public Object value(Machine machine)
Get the value of the valued event. It is always the value at previous instant.

All Packages  Class Hierarchy  This Package  Previous  Next  Index