Class LXDmxEngine

java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.dmx.LXDmxEngine
All Implemented Interfaces:
LXPath, LXSerializable, LXParameterListener

public class LXDmxEngine extends LXComponent
  • Field Details

  • Constructor Details

    • LXDmxEngine

      public LXDmxEngine(LX lx)
  • Method Details

    • onParameterChanged

      public void onParameterChanged(LXParameter p)
      Description copied from class: LXComponent
      Subclasses are free to override this if desired. It will automatically fire for any listenable parameter that is registered with this component.
      Specified by:
      onParameterChanged in interface LXParameterListener
      Overrides:
      onParameterChanged in class LXComponent
      Parameters:
      p - Parameter that has a value change
    • getColor

      public int getColor(int universe, int channel)
    • getColor

      public int getColor(int universe, int channel, LXDmxEngine.ByteOrder byteOrder)
    • getByte

      public byte getByte(int universe, int channel)
    • getValuei

      public int getValuei(int universe, int channel)
    • getNormalized

      public double getNormalized(int universe, int channel)
    • load

      public void load(LX lx, JsonObject obj)
      Description copied from class: LXComponent
      Loads the LX component. Restores the ID of the component, as well as its internal and user-facing parameters. Any explicitly registered children will be automatically loaded, so long as they are direct descendants. Dynamic arrays will not be automatically loaded, this is left to subclasses to implement.
      Specified by:
      load in interface LXSerializable
      Overrides:
      load in class LXComponent
      Parameters:
      lx - LX instance
      obj - Object to deserialize
    • dispose

      public void dispose()
      Description copied from class: LXComponent
      Invoked when a component is being removed from the system and will no longer be used at all. This unregisters the component and should free up any resources and parameter listeners. Ideally after this method is called the object should be eligible for garbage collection. Subclasses are generally expected to override this method to handle their particular cleanup work. They should also generally call super.dispose() at the appropriate time to perform the basic cleanup, which may need to happen either before or after cleaning up other objects.
      Overrides:
      dispose in class LXComponent
    • error

      public static void error(String log)
    • error

      public static void error(Throwable x, String log)
    • log

      public static void log(String log)