org.codehaus.wadi.impl
Class Quipu
java.lang.Object
EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable
EDU.oswego.cs.dl.util.concurrent.SynchronizedInt
EDU.oswego.cs.dl.util.concurrent.WaitableInt
org.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
Constructor Summary |
Quipu(int numLlammas)
|
Methods inherited from class EDU.oswego.cs.dl.util.concurrent.WaitableInt |
add, commit, decrement, divide, increment, multiply, set, subtract, whenEqual, whenGreater, whenGreaterEqual, whenLess, whenLessEqual, whenNotEqual |
Methods inherited from class EDU.oswego.cs.dl.util.concurrent.SynchronizedInt |
and, compareTo, compareTo, compareTo, complement, equals, get, hashCode, negate, or, swap, toString, xor |
_log
protected static final Log _log
_results
protected final Collection _results
Quipu
public Quipu(int numLlammas)
waitFor
public boolean waitFor(long timeout)
throws InterruptedException
- Throws:
InterruptedException
putResult
public void putResult(Object result)
getResults
public Collection getResults()
Copyright © 2004-2006 Core Developers Network Ltd.. All Rights Reserved.