Module rgg

Class NlMul

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

public class NlMul extends Assignment
The turtle command NlMul(x) sets TurtleState.localParameter to the product of the field TurtleState.parameter and the specified argument x.
This corresponds to the turtle command Nl*(x) of the GROGRA software.
Author:
Ole Kniemeyer
See Also:
  • Field Details Link icon

  • Constructor Details Link icon

    • NlMul Link icon

      public NlMul()
    • NlMul Link icon

      public NlMul(float argument)
  • Method Details Link icon

    • getNTypeImpl Link icon

      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 Link icon

      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 Link icon

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