wodka.ga.geno.lang.turtle
Class TurtleInterpreter

java.lang.Object
  extended bywodka.ga.geno.lang.AbstractInterpreter
      extended bywodka.ga.geno.lang.turtle.TurtleInterpreter
All Implemented Interfaces:
Interpreter

public class TurtleInterpreter
extends AbstractInterpreter

An interpreter for the turtle like build language.


Constructor Summary
TurtleInterpreter(int gridWidth)
           
 
Method Summary
 Model eval(Program pgm)
          Builds a Model from a Program.
 Model evalNoRewise(Program pgm)
          Builds a Model from a Program without rewising invalid nodes and springs.
 int getGridWidth()
           
 Mass getPrevMass()
           
 boolean isUpBefore()
           
 void setGridWidth(int gridWidth)
           
 void setPrevMass(Mass prevMass)
           
 void setUp(boolean isUp)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TurtleInterpreter

public TurtleInterpreter(int gridWidth)
Method Detail

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)