Class ValueGroup


  • public class ValueGroup
    extends Handle
    A set of related values which should be logged together.
    Author:
    Steinar Knutsen
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      void put​(java.lang.String name, double x)
      Put a value into the named value in the group.
      void runHandle()
      Dump state to log and reset.
      • Methods inherited from class java.lang.Object

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

      • ValueGroup

        public ValueGroup​(java.lang.String name,
                          Statistics manager)
        Create a ValueGroup.
        Parameters:
        name - The symbolic name of this group of values
        manager - the statistics manager acquired by injection
      • ValueGroup

        public ValueGroup​(java.lang.String name,
                          Statistics manager,
                          Callback callback)
        Create a ValueGroup.
        Parameters:
        name - The symbolic name of this group of values
        manager - the statistics manager acquired by injection
        callback - will be invoked each time data is written to the log
    • Method Detail

      • put

        public void put​(java.lang.String name,
                        double x)
        Put a value into the named value in the group.
      • runHandle

        public void runHandle()
        Dump state to log and reset.
        Specified by:
        runHandle in class Handle
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in class Handle
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class Handle