Class DynamicTimeSeriesCollection.ValueSequence

  • Enclosing class:
    DynamicTimeSeriesCollection

    protected class DynamicTimeSeriesCollection.ValueSequence
    extends java.lang.Object
    A wrapper for a fixed array of float values.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) float[] dataPoints
      Storage for the float values.
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueSequence()
      Default constructor:
      ValueSequence​(int length)
      Creates a sequence with the specified length.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void enterData​(int index, float value)
      Enters data into the storage array.
      float getData​(int index)
      Returns a value from the storage array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • dataPoints

        float[] dataPoints
        Storage for the float values.
    • Constructor Detail

      • ValueSequence

        public ValueSequence()
        Default constructor:
      • ValueSequence

        public ValueSequence​(int length)
        Creates a sequence with the specified length.
        Parameters:
        length - the length.
    • Method Detail

      • enterData

        public void enterData​(int index,
                              float value)
        Enters data into the storage array.
        Parameters:
        index - the index.
        value - the value.
      • getData

        public float getData​(int index)
        Returns a value from the storage array.
        Parameters:
        index - the index.
        Returns:
        The value.