Module rgg

Class RV

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

public class RV extends GRotation implements TurtleModifier
The turtle command RV(x) represents a rotation which implements gravitropism. Its strength is given by the specified argument.
This corresponds to the turtle command RV(x) of the GROGRA software.
Author:
Ole Kniemeyer
See Also:
  • Field Details

    • argument

      public float argument
    • $TYPE

      public static final Node.NType $TYPE
    • argument$FIELD

      public static final Node.NType.Field argument$FIELD
  • Constructor Details

    • RV

      public RV()
    • RV

      public RV(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
    • getTropismStrength

      public float getTropismStrength(Object node, GraphState gs)
      Specified by:
      getTropismStrength in class GRotation
    • execute

      public void execute(Object node, TurtleState state, GraphState gs)
      Specified by:
      execute in interface TurtleModifier