CubeTwister 2.0alpha142 2012-02-11

ch.randelshofer.rubik.parser
Class Move

java.lang.Object
  extended by ch.randelshofer.rubik.parser.Move
All Implemented Interfaces:
java.lang.Comparable

public class Move
extends java.lang.Object
implements java.lang.Comparable

Symbol for move tokens. Instances of this class are immutable.

This class must be Java 1.1 compliant.

Version:
2.0 2007-06-16 Renamed from Twist to Move.
1.0 May 1, 2006 Created.
Author:
Werner Randelshofer.

Field Summary
static Move B
           
static Move B2
           
static Move BI
           
static Move CB
           
static Move CB2
           
static Move CD
           
static Move CD2
           
static Move CF
           
static Move CF2
           
static Move CL
           
static Move CL2
           
static Move CR
           
static Move CR2
           
static Move CU
           
static Move CU2
           
static Move D
           
static Move D2
           
static Move DI
           
static Move F
           
static Move F2
           
static Move FI
           
static Move L
           
static Move L2
           
static Move LI
           
static Move R
           
static Move R2
           
static Move RI
           
static Move U
           
static Move U2
           
static Move UI
           
 
Constructor Summary
Move(int axis, int layerMask, int angle)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(Move that)
           
 boolean equals(java.lang.Object o)
           
 int getAngle()
           
 int getAxis()
           
 java.lang.String getLayerList()
           
 int getLayerMask()
           
 java.util.List getResolvedList()
           
 int hashCode()
           
 Move toInverse()
          Returns an inverse Move of this Move.
static int toLayerMask(java.lang.String str)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

R

public static final Move R

L

public static final Move L

U

public static final Move U

D

public static final Move D

F

public static final Move F

B

public static final Move B

RI

public static final Move RI

LI

public static final Move LI

UI

public static final Move UI

DI

public static final Move DI

FI

public static final Move FI

BI

public static final Move BI

R2

public static final Move R2

L2

public static final Move L2

U2

public static final Move U2

D2

public static final Move D2

F2

public static final Move F2

B2

public static final Move B2

CR

public static final Move CR

CL

public static final Move CL

CU

public static final Move CU

CD

public static final Move CD

CF

public static final Move CF

CB

public static final Move CB

CR2

public static final Move CR2

CL2

public static final Move CL2

CU2

public static final Move CU2

CD2

public static final Move CD2

CF2

public static final Move CF2

CB2

public static final Move CB2
Constructor Detail

Move

public Move(int axis,
            int layerMask,
            int angle)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toInverse

public Move toInverse()
Returns an inverse Move of this Move.


getAxis

public int getAxis()

getAngle

public int getAngle()

getLayerMask

public int getLayerMask()

getLayerList

public java.lang.String getLayerList()

toLayerMask

public static int toLayerMask(java.lang.String str)

equals

public boolean equals(Move that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getResolvedList

public java.util.List getResolvedList()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

(c) Werner Randelshofer.
All rights reserved.