orc.lib.state
Class Cell

java.lang.Object
  extended by orc.runtime.values.Value
      extended by orc.runtime.sites.Site
          extended by orc.runtime.sites.EvalSite
              extended by orc.lib.state.Cell
All Implemented Interfaces:
Callable, Future

public class Cell
extends EvalSite

Author:
dkitchin Write-once mutable cell. Read operations block if the cell is empty. Write operatons block if the cell is full.

Nested Class Summary
protected  class Cell.CellInstance
           
 
Constructor Summary
Cell()
           
 
Method Summary
 Value evaluate(Args args)
           
 
Methods inherited from class orc.runtime.sites.EvalSite
callSite
 
Methods inherited from class orc.runtime.sites.Site
accept, createCall
 
Methods inherited from class orc.runtime.values.Value
forceArg, forceCall, head, isCons, isNil, isNone, isSome, signal, tail, untag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cell

public Cell()
Method Detail

evaluate

public Value evaluate(Args args)
Specified by:
evaluate in class EvalSite