org.codehaus.wadi.impl
Class Quipu

java.lang.Object
  extended byEDU.oswego.cs.dl.util.concurrent.SynchronizedVariable
      extended byEDU.oswego.cs.dl.util.concurrent.SynchronizedInt
          extended byEDU.oswego.cs.dl.util.concurrent.WaitableInt
              extended byorg.codehaus.wadi.impl.Quipu
All Implemented Interfaces:
Cloneable, Comparable, Executor

public class Quipu
extends WaitableInt

You have a flock of n Llamas, you [un]tie a knot in your Quipu as each one leaves/enters your pen. When all are in/out, you are free to continue. If the Llamas take too long, you can leave anyway !

Version:
$Revision: 1346 $
Author:
Jules Gosnell

Field Summary
protected static Log _log
           
protected  Collection _results
           
 
Fields inherited from class EDU.oswego.cs.dl.util.concurrent.SynchronizedInt
value_
 
Fields inherited from class EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable
lock_
 
Constructor Summary
Quipu(int numLlammas)
           
 
Method Summary
 Collection getResults()
           
 void putResult(Object result)
           
 boolean waitFor(long timeout)
           
 
Methods inherited from class EDU.oswego.cs.dl.util.concurrent.WaitableInt
add, and, commit, complement, decrement, divide, increment, multiply, or, set, subtract, whenEqual, whenGreater, whenGreaterEqual, whenLess, whenLessEqual, whenNotEqual, xor
 
Methods inherited from class EDU.oswego.cs.dl.util.concurrent.SynchronizedInt
compareTo, compareTo, compareTo, equals, get, hashCode, negate, swap, toString
 
Methods inherited from class EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable
execute, getLock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_log

protected static final Log _log

_results

protected final Collection _results
Constructor Detail

Quipu

public Quipu(int numLlammas)
Method Detail

waitFor

public boolean waitFor(long timeout)
                throws InterruptedException
Throws:
InterruptedException

putResult

public void putResult(Object result)

getResults

public Collection getResults()


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.