|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--moves.EuBeaconizer
This class can analyse options for issuing beacons. Is meant as a tool which should be instantiated and used locally. The current version does not know how to check global flags for preferences with regards to which types are preferred or ruled out, or to prompt the user for choices.
Field Summary | |
static int |
AGE
Internal flag for beacon of type OLD or NEW |
static int |
BEACON_OPTIONS
|
static int |
BEST_PROXIMITY
Internal flag for beacon of type CLOSE or FAR, using closest distinguishing point |
static int |
COCIRCULAR_ORIENTATION
|
static int |
FIRST_ORIENTATION
Internal flag for beacon of type CW or CCW |
static int |
FIRST_PROXIMITY
Internal flag for beacon of type CLOSE or FAR, using first distinguishing point |
static int |
INTERNAL
Internal flag for beacon of type PLUS or MINUS |
static int |
INTERNALORIENTATION
|
Constructor Summary | |
EuBeaconizer()
The constructor does miscellaneous initialization |
|
EuBeaconizer(interagents.joinedWrapper results,
interagents.finalWrapper inputs,
interagents.EuLab lab)
This constructor examines the options one has in issuing beacons for a pair of objects. |
Method Summary | |
int |
bestScoring()
|
int |
distinguishAge(interagents.joinedWrapper findings,
interagents.EuLab lab)
Tries to distinguish using age criteria. |
int |
distinguishInternal(interagents.joinedWrapper results)
Tries to distinguish using internal criteria (and always succeeds) |
int |
distinguishInternalOrientation(interagents.joinedWrapper results,
interagents.finalWrapper inputs,
interagents.EuLab lab)
Tries to distinguish using internal criteria (succeeds when input is an arc containing output) |
int |
distinguishOrientation(interagents.joinedWrapper results,
fundamentals.EuVector v)
Tries to distinguish using orientation criteria. |
int |
distinguishProximity(interagents.joinedWrapper results,
fundamentals.EuVector v)
Tries to distinguish using proximity criteria. |
int |
getNumber(int i)
|
fundamentals.EuBeacon |
issueBeacon(int i,
int choice)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int AGE
public static final int INTERNAL
public static final int FIRST_PROXIMITY
public static final int BEST_PROXIMITY
public static final int FIRST_ORIENTATION
public static final int COCIRCULAR_ORIENTATION
public static final int INTERNALORIENTATION
public static final int BEACON_OPTIONS
Constructor Detail |
public EuBeaconizer()
public EuBeaconizer(interagents.joinedWrapper results, interagents.finalWrapper inputs, interagents.EuLab lab)
Method Detail |
public int distinguishAge(interagents.joinedWrapper findings, interagents.EuLab lab)
findings
- a joinedWrapper with two objects.
public int distinguishInternal(interagents.joinedWrapper results)
public int distinguishInternalOrientation(interagents.joinedWrapper results, interagents.finalWrapper inputs, interagents.EuLab lab)
public int distinguishProximity(interagents.joinedWrapper results, fundamentals.EuVector v)
v
- the vector
public int distinguishOrientation(interagents.joinedWrapper results, fundamentals.EuVector v)
v
- the vector
public int bestScoring() throws InternalException
InternalException
- if no beacon is possiblepublic fundamentals.EuBeacon issueBeacon(int i, int choice)
choice
- 1 if objects are needed in the order passed at
instantiation, -1 if needed in opposite orderpublic int getNumber(int i)
i
- index of beacon type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |