Class LXGlobalSnapshot

All Implemented Interfaces:
LXComponent.Renamable, LXPath, LXSerializable, LXOscComponent, LXParameterListener

public class LXGlobalSnapshot extends LXSnapshot implements LXComponent.Renamable, LXOscComponent
A snapshot holds a memory of the state of the program at a point in time. The snapshot contains a collection of "views" which are memories of a piece of state in the program at some time. Typically this is a parameter value, but some special cases exist, like the active pattern on a channel.
  • Field Details

  • Constructor Details

    • LXGlobalSnapshot

      public LXGlobalSnapshot(LX lx)
  • Method Details

    • getIndex

      public int getIndex()
      Public accessor for the index of this snapshot in the list
      Returns:
      This snapshot's position in the global list
    • getPath

      public String getPath()
      Description copied from class: LXComponent
      Accessor for the path of this object. Returns the path this component was registered with. Some subclasses may override this if path structure is dynamic.
      Specified by:
      getPath in interface LXPath
      Overrides:
      getPath in class LXComponent
      Returns:
      path of this component relative to its parent
    • getOscPath

      public String getOscPath()
      Description copied from class: LXComponent
      Accessor for this component's OSC path relative to its parent. This by default is no different from LXComponent.getPath(), but certain subclasses may modify this to support different types of OSC paths that aren't required to match the LX hierarchy.
      Overrides:
      getOscPath in class LXComponent
      Returns:
      Path that this object can be accessed via OSC
    • getOscAddress

      public String getOscAddress()
      Description copied from class: LXComponent
      Gets the OSC address for this object
      Specified by:
      getOscAddress in interface LXOscComponent
      Overrides:
      getOscAddress in class LXComponent
      Returns:
      Full OSC address for this component
    • initialize

      public void initialize()
      Specified by:
      initialize in class LXSnapshot