Class DataContainer


  • public class DataContainer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      DataContainer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRecord​(java.lang.Float[] record)
      Adds a Record to the end.
      java.lang.Float[] getCurrentRecord()
      Gets the current record.
      java.util.Set<java.lang.String> getKeys()
      Gets the available keys.
      java.util.Optional<java.lang.Float> getValue​(java.lang.String key)
      Gets the value for the key from the current record.
      void nextRecord()
      Switch to the next row of values.
      void rewind()
      Rewinds the data to start again at the first record.
      void setKeys​(java.lang.String[] keys)
      Sets the keys.
      • Methods inherited from class java.lang.Object

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

      • DataContainer

        public DataContainer()
    • Method Detail

      • getKeys

        public java.util.Set<java.lang.String> getKeys()
        Gets the available keys.
        Returns:
        the Channel-Id
      • setKeys

        public void setKeys​(java.lang.String[] keys)
        Sets the keys.
        Parameters:
        keys - the Channel-Id
      • addRecord

        public void addRecord​(java.lang.Float[] record)
        Adds a Record to the end.
        Parameters:
        record - the record values
      • getCurrentRecord

        public java.lang.Float[] getCurrentRecord()
        Gets the current record.
        Returns:
        the current record
      • getValue

        public java.util.Optional<java.lang.Float> getValue​(java.lang.String key)
        Gets the value for the key from the current record. If no keys exist, get the first value of the record.
        Parameters:
        key - the Channel-Id
        Returns:
        the record value
      • nextRecord

        public void nextRecord()
        Switch to the next row of values.
      • rewind

        public void rewind()
        Rewinds the data to start again at the first record.