Module rgg

Class GD

All Implemented Interfaces:
Manageable, PersistenceCapable, Shareable, UserFields, XObject, TurtleModifier, Map, Serializable

public class GD extends Assignment
The turtle command GD(x) sets TurtleState.generativeDistance to the specified argument x. Then the value of order is copied to its counterpart TurtleState.generativeDistance.
This corresponds to no turtle command of the GROGRA software.
Author:
Jan D�rer
See Also:
  • Field Details

  • Constructor Details

    • GD

      public GD()
    • GD

      public GD(float argument)
  • Method Details

    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class Node
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class Node
      Returns:
      new instance of class of this node
    • execute

      public void execute(Object node, TurtleState state, GraphState gs)