fundamentals
Class EuBeacon

java.lang.Object
  |
  +--fundamentals.EuBeacon

public class EuBeacon
extends java.lang.Object


Field Summary
static int CCW
          A constant indicating the ccw beacon
static int CLOSE
          A constant indicating the close beacon
static int CW
          A constant indicating the cw beacon
static int FAR
          A constant indicating the far beacon
static int ICCW
          A constant indicating the close beacon
static int ICW
          A constant indicating the far beacon
static int MINUS
          A constant indicating the minus beacon
static int NEW
          A constant indicating the new beacon
static int OLD
          A constant indicating the old beacon
static int PLUS
          A constant indicating the plus beacon
 
Constructor Summary
EuBeacon()
           
EuBeacon(int b)
          Initializes the beacon with a constant
EuBeacon(int b, int f)
          Initializes the beacon with a constant and a flag
 
Method Summary
 int choose()
          Used for lookup purposes:
 boolean is(int other)
           
 boolean isAge()
           
 boolean isInternal()
           
 boolean isInternalOrientation()
           
 boolean isOrientation()
           
 boolean isProximity()
           
 java.lang.String operationName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLUS

public static final int PLUS
A constant indicating the plus beacon

See Also:
Constant Field Values

MINUS

public static final int MINUS
A constant indicating the minus beacon

See Also:
Constant Field Values

OLD

public static final int OLD
A constant indicating the old beacon

See Also:
Constant Field Values

NEW

public static final int NEW
A constant indicating the new beacon

See Also:
Constant Field Values

CCW

public static final int CCW
A constant indicating the ccw beacon

See Also:
Constant Field Values

CW

public static final int CW
A constant indicating the cw beacon

See Also:
Constant Field Values

CLOSE

public static final int CLOSE
A constant indicating the close beacon

See Also:
Constant Field Values

FAR

public static final int FAR
A constant indicating the far beacon

See Also:
Constant Field Values

ICCW

public static final int ICCW
A constant indicating the close beacon

See Also:
Constant Field Values

ICW

public static final int ICW
A constant indicating the far beacon

See Also:
Constant Field Values
Constructor Detail

EuBeacon

public EuBeacon(int b)
Initializes the beacon with a constant

Parameters:
b - one of the beacon constants above

EuBeacon

public EuBeacon()

EuBeacon

public EuBeacon(int b,
                int f)
Initializes the beacon with a constant and a flag

Parameters:
b - one of the beacon constants above
f - -1 if beacon FAR, MINUS, CW, NEW is desired.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
The standard LEA program representation of the beacon

is

public boolean is(int other)
Parameters:
other - a beacon
Returns:
true if the beacon is the same as the one passed

isInternal

public boolean isInternal()
Returns:
true if the beacon is of type PLUS or MINUS

isAge

public boolean isAge()
Returns:
true if the beacon is of type OLD or NEW

isOrientation

public boolean isOrientation()
Returns:
true if the beacon is of type CW or CCW

isProximity

public boolean isProximity()
Returns:
true if the beacon is of type CLOSE or FAR

isInternalOrientation

public boolean isInternalOrientation()
Returns:
true if the beacon is of type CLOSE or FAR

choose

public int choose()
Used for lookup purposes:

Returns:
1 if the beacon is of type CLOSE, PLUS, CCW or OLD; -1 if the beacon is of type FAR, MINUS, CW, NEW; 0 if of type PAIR

operationName

public java.lang.String operationName()