|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Or
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
5 - the branch whose number is stored in (x,0) pos in
memoryMatrix designated by orMemoryMatrix in
VEFrameModelSwarm.java; the matrix
may be sensitive or insensitive to layers;
range of the branch number: from 1 to
branchNumber
x is 0 if the first node in 'or' sequence is
numbered 1; is kk if the first node is numbered
10kk with kk 00 to 99
Field Summary | |
static MemoryMatrix |
mm
memory matrix addresses to be used in orCriterion 5 |
static int |
orCriterion
or criterion to be applied |
static swarm.collections.ListImpl |
unitList
the list of the operating units |
Constructor Summary | |
Or()
|
Method Summary | |
static boolean |
applyOr(Order o)
applying 'or' |
static void |
setMemoryMatrix(MemoryMatrix m)
setting the address of memory matrix |
static void |
setOrCriterion(int k)
setting the 'or' criterion |
static void |
setUnitList(swarm.collections.ListImpl ul)
setting the list of the units |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int orCriterion
public static swarm.collections.ListImpl unitList
public static MemoryMatrix mm
Constructor Detail |
public Or()
Method Detail |
public static void setOrCriterion(int k)
public static void setUnitList(swarm.collections.ListImpl ul)
public static void setMemoryMatrix(MemoryMatrix m)
public static boolean applyOr(Order o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |