Class SigSequencer

java.lang.Object
eu.bandm.sig.adlib2.AbstractProcess
eu.bandm.sig.adlib2.lib.SigSequencer
All Implemented Interfaces:
Component, AbstractSequencer, Process
Direct Known Subclasses:
DoubleSequencer, FloatSequencer

public abstract class SigSequencer extends AbstractProcess implements AbstractSequencer
Defines the data access methods needed to drive a sig network by a sequencer. All sub-classes are qualified like "DoubleSequencer", and this wording gives the type of the time points.
  • Field Details

    • endListeners

      protected List<Consumer<AbstractSequencer>> endListeners
      Listeners which will be triggered when the normal operation reads the very last row.
    • preDataReadIndex

      public static final int preDataReadIndex
      "Row" index when the current play time lies before the very first loaded data row.
      See Also:
  • Constructor Details

    • SigSequencer

      public SigSequencer()
  • Method Details

    • addEndListener

      public void addEndListener(Consumer<AbstractSequencer> listener)
      Specified by:
      addEndListener in interface AbstractSequencer
    • removeEndListener

      public void removeEndListener(Consumer<AbstractSequencer> listener)
      Specified by:
      removeEndListener in interface AbstractSequencer
    • getReadIndex

      public abstract int getReadIndex()
      Returns the "row" index of the score data wich is currently played.
    • getByteColumn

      public abstract ByteSignalSource getByteColumn(int i)
      Returns the i-th column of the sequencer, assuming it is the source of "byte" data. The number is one less than the score column, because score column 0 is always the timepoint data. Throws a class cast exception if the column data is not of byte type.
    • getIntColumn

      public abstract IntSignalSource getIntColumn(int i)
      Returns the i-th column of the sequencer, assuming it is the source of "int" data. The number is one less than the score column, because score column 0 is always the timepoint data. Throws a class cast exception if the column data is not of int type.
    • getLongColumn

      public abstract LongSignalSource getLongColumn(int i)
      Returns the i-th column of the sequencer, assuming it is the source of "long" data. The number is one less than the score column, because score column 0 is always the timepoint data. Throws a class cast exception if the column data is not of long type.
    • getFloatColumn

      public abstract FloatSignalSource getFloatColumn(int i)
      Returns the i-th column of the sequencer, assuming it is the source of "float" data. The number is one less than the score column, because score column 0 is always the timepoint data. Throws a class cast exception if the column data is not of float type.
    • getDoubleColumn

      public abstract DoubleSignalSource getDoubleColumn(int i)
      Returns the i-th column of the sequencer, assuming it is the source of "double" data. The number is one less than the score column, because score column 0 is always the timepoint data. Throws a class cast exception if the column data is not of double type.
    • getBooleanColumn

      public abstract BooleanSignalSource getBooleanColumn(int i)
      Returns the i-th column of the sequencer, assuming it is the source of "boolean" data. The number is one less than the score column, because score column 0 is always the timepoint data. Throws a class cast exception if the column data is not of boolean type.