core/src/de/lksbhm/mona/puzzle/representations/Direction.java
/**
	 * Implements an ordering upon the direction, where NONE is always greater,
	 * followed by UP which is greater than DOWN which in turn is greater than
	 * LEFT. RIGHT is the "smallest" direction.
	 * 
	 * @param d
	 * @return
	 */
Implements an ordering upon the direction, where NONE is always greater,
followed by UP which is greater than DOWN which in turn is greater than
LEFT. RIGHT is the "smallest" direction.

@param d
@return
Implements an ordering upon the direction where NONE is always greater followed by UP which is greater than DOWN which in turn is greater than LEFT . RIGHT is the " smallest " direction . @param d @return
public boolean isGreater(Direction d) {
		switch (this) {
		case NONE:
			return true;
		case UP:
			if (d == NONE) {
				return false;
			}
			return true;
		case DOWN:
			if (d == NONE || d == UP) {
				return false;
			}
			return true;
		case LEFT:
			if (d == LEFT || d == RIGHT) {
				return true;
			}
			return false;
		case RIGHT:
			if (d == RIGHT) {
				return true;
			}
			return false;
		}
		throw new RuntimeException();
	}
public boolean isGreater ( Direction d ) { switch ( this ) { case NONE : return true ; case UP : if ( d == NONE ) { return false ; } return true ; case DOWN : if ( d == NONE || d == UP ) { return false ; } return true ; case LEFT : if ( d == LEFT || d == RIGHT ) { return true ; } return false ; case RIGHT : if ( d == RIGHT ) { return true ; } return false ; } throw new RuntimeException ( ) ; }
Implements an ordering upon the direction, where NONE is always greater,
 followed by UP which is greater than DOWN which in turn is greater than
 LEFT.
Implements an ordering upon the direction where NONE is always greater followed by UP which is greater than DOWN which in turn is greater than LEFT .