biz.hammurapi.rules.backwardreasoning
Class Accumulator.LinkImpl

java.lang.Object
  extended by biz.hammurapi.rules.backwardreasoning.Accumulator.LinkImpl
All Implemented Interfaces:
Accumulator.Link
Enclosing class:
Accumulator

protected class Accumulator.LinkImpl
extends java.lang.Object
implements Accumulator.Link


Constructor Summary
Accumulator.LinkImpl(java.lang.Object value)
           
 
Method Summary
 Accumulator.Link getNext()
          Retrieves next link.
 java.lang.Object getValue()
           
 Accumulator.Link peekNext()
           
 void setNext(Accumulator.Link next)
          Sets next link and notifies waiting iterators.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Accumulator.LinkImpl

public Accumulator.LinkImpl(java.lang.Object value)
Method Detail

setNext

public void setNext(Accumulator.Link next)
Sets next link and notifies waiting iterators.

Specified by:
setNext in interface Accumulator.Link
Parameters:
value -

getNext

public Accumulator.Link getNext()
                         throws java.lang.InterruptedException
Retrieves next link. Block until next link is available.

Specified by:
getNext in interface Accumulator.Link
Returns:
Throws:
java.lang.InterruptedException

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface Accumulator.Link

peekNext

public Accumulator.Link peekNext()
Specified by:
peekNext in interface Accumulator.Link


Copyright © 2005 Hammurapi Group. All Rights Reserved.