|
CubeTwister 2.0alpha141 2011-10-13 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Notation
Notation describes the tokens and syntax used by the Parser.
| Method Summary | |
|---|---|
void |
configureMoveFromToken(MoveNode move,
java.lang.String twistToken)
Configures a MoveNode from the specified move token. |
java.lang.String |
getEquivalentMacro(Cube cube,
java.util.Map localMacros)
Returns a macro which performs the same transformation as the cube parameter. |
int |
getLayerCount()
Returns the number of layers supported by this notation. |
java.util.List<MacroNode> |
getMacros()
Returns the macros defined by this notation. |
Symbol |
getSymbolFor(java.lang.String token,
Symbol compositeSymbol)
Returns a symbol for the specified token. |
Syntax |
getSyntax(Symbol s)
Returns the syntax for the specified symbol. |
java.lang.String |
getToken(Move s)
Returns a token for the specified move. |
java.lang.String |
getToken(Symbol s)
Returns a token for the specified symbol. |
boolean |
isSupported(Symbol s)
Returns true, if this notation supports the specified symbol. |
boolean |
isToken(java.lang.String token)
Returns true, if the specified String is a token of this notation. |
boolean |
isTokenFor(java.lang.String token,
Symbol symbol)
Returns true, if the specified String is a token for the specified symbol. |
void |
writeToken(java.io.PrintWriter w,
int axis,
int layerMask,
int angle)
Writes a token for the specified transformation to the print writer. |
void |
writeToken(java.io.PrintWriter w,
Symbol symbol)
Writes a token for the specified symbol to the print writer. |
| Method Detail |
|---|
int getLayerCount()
java.lang.String getEquivalentMacro(Cube cube,
java.util.Map localMacros)
cube - A transformed cube.localMacros - A Map with local macros.java.util.List<MacroNode> getMacros()
void writeToken(java.io.PrintWriter w,
Symbol symbol)
throws java.io.IOException
java.io.IOException - If the symbol is not supported by the notation,
and if no alternative symbols could be found.
void writeToken(java.io.PrintWriter w,
int axis,
int layerMask,
int angle)
throws java.io.IOException
java.io.IOExceptionboolean isSupported(Symbol s)
Syntax getSyntax(Symbol s)
boolean isToken(java.lang.String token)
boolean isTokenFor(java.lang.String token,
Symbol symbol)
java.lang.String getToken(Symbol s)
java.lang.String getToken(Move s)
Symbol getSymbolFor(java.lang.String token,
Symbol compositeSymbol)
void configureMoveFromToken(MoveNode move,
java.lang.String twistToken)
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||