Class RMInvocation

java.lang.Object
com.inductiveautomation.rm.graphics.RMInvocation
All Implemented Interfaces:
Cloneable

public class RMInvocation extends Object implements Cloneable
This class represent a method call and is used to set values on another object, either by calling a "setFoo()" method or by directly setting the value of a public instance variable. The action string is always of the form "setFoo:". If the target object has a setFoo() method, that method will get called. If not, but it has a "foo" or "_foo" instance variable, that variable will get stuffed with the value.
  • Constructor Details

    • RMInvocation

      public RMInvocation()
      Creates an uninitialized invocation.
    • RMInvocation

      public RMInvocation(Object aTarget, String anAction, Object aValue)
      Creates a new invocation for the given object, method name and value.
  • Method Details

    • getTarget

      public Object getTarget()
      Returns the target for this invocation.
    • getAction

      public String getAction()
      Returns the action for this invocation.
    • getArg

      public Object getArg()
      Returns the arg for this invocation.
    • setArg

      public void setArg(Object anObj)
      Sets the arg for this invocation.
    • getArgClass

      public Class getArgClass()
      Returns the class of this invocation's arg.
    • invoke

      public void invoke()
      Invoke method.
    • getInterpolation

      public RMInvocation getInterpolation(double aFraction, RMInvocation other)
      Returns an invocation by blending this invocation with given invocation using the given fraction of this invocation.
    • clone

      public Object clone()
      Standard clone implementation.
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Returns a string representation of this invocation.
      Overrides:
      toString in class Object