Class VariableTraceTextReport

  • All Implemented Interfaces:
    ObserverIfc

    public class VariableTraceTextReport
    extends java.lang.Object
    implements ObserverIfc
    This class creates a comma separated file that traces the value of a variable observation number, time of change, value, time of previous change, previous value, weight, replication number, within replication count, experiment name
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long myCount  
      protected long myRepCount  
      protected double myRepNum  
    • Constructor Summary

      Constructors 
      Constructor Description
      VariableTraceTextReport​(java.nio.file.Path pathToFile, boolean header)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void update​(java.lang.Object observable, java.lang.Object obj)
      This method is called when the observable needs observing
      • Methods inherited from class java.lang.Object

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

      • myCount

        protected long myCount
      • myRepCount

        protected long myRepCount
      • myRepNum

        protected double myRepNum
    • Constructor Detail

      • VariableTraceTextReport

        public VariableTraceTextReport​(java.nio.file.Path pathToFile,
                                       boolean header)
        Parameters:
        pathToFile - the path to the file
        header - the header
    • Method Detail

      • update

        public void update​(java.lang.Object observable,
                           java.lang.Object obj)
        Description copied from interface: ObserverIfc
        This method is called when the observable needs observing
        Specified by:
        update in interface ObserverIfc
        Parameters:
        observable - the thing observed
        obj - an object of info