Class Or
java.lang.Object
|
+--Or
- public class Or
- extends java.lang.Object
An Or manager for our orders
orCriterion
0 - all 'or' branches in sequence
1 - choosing first branch
2 - choosing second branch
3 - a random branch
4 - the branch whose first step
has the shortest waiting list
- Author:
- Pietro Terna
Field Summary |
static int |
orCriterion
|
static swarm.collections.ListImpl |
unitList
the list of the operating units |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
orCriterion
public static int orCriterion
unitList
public static swarm.collections.ListImpl unitList
- the list of the operating units
Or
public Or()
setOrCriterion
public static void setOrCriterion(int k)
setUnitList
public static void setUnitList(swarm.collections.ListImpl ul)
applyOr
public static void applyOr(Order o)