Class ValueGroup


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

      • ValueGroup

        public ValueGroup​(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​(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​(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
      • hashCode

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