Module rgg

Class C0

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

public class C0 extends Node implements TurtleModifier
The turtle command C0 resets TurtleState.carbon to its initial value (as defined in TurtleState.initialState). Then the value of carbon is copied to its local counterpart TurtleState.localCarbon.
This corresponds to the turtle command C of the GROGRA software.
Author:
Ole Kniemeyer
See Also:
  • Field Details

  • Constructor Details

    • C0

      public C0()
  • 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)
      Specified by:
      execute in interface TurtleModifier