wodka.ga.geno.lang.turtle
Class TurtleInterpreter
java.lang.Object
wodka.ga.geno.lang.AbstractInterpreter
wodka.ga.geno.lang.turtle.TurtleInterpreter
- All Implemented Interfaces:
- Interpreter
- public class TurtleInterpreter
- extends AbstractInterpreter
An interpreter for the turtle like build language.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TurtleInterpreter
public TurtleInterpreter(int gridWidth)
isUpBefore
public boolean isUpBefore()
setGridWidth
public void setGridWidth(int gridWidth)
setUp
public void setUp(boolean isUp)
eval
public Model eval(Program pgm)
- Description copied from interface:
Interpreter
- Builds a Model from a Program.
evalNoRewise
public Model evalNoRewise(Program pgm)
- Description copied from interface:
Interpreter
- Builds a Model from a Program without rewising invalid
nodes and springs.
toString
public java.lang.String toString()
getGridWidth
public int getGridWidth()
getPrevMass
public Mass getPrevMass()
setPrevMass
public void setPrevMass(Mass prevMass)