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
 
Constructor Summary
Or()
           
 
Method Summary
static void applyOr(Order o)
           
static void setOrCriterion(int k)
           
static void setUnitList(swarm.collections.ListImpl ul)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orCriterion

public static int orCriterion

unitList

public static swarm.collections.ListImpl unitList
the list of the operating units
Constructor Detail

Or

public Or()
Method Detail

setOrCriterion

public static void setOrCriterion(int k)

setUnitList

public static void setUnitList(swarm.collections.ListImpl ul)

applyOr

public static void applyOr(Order o)