Class PublisherNonStrictTest

    • Field Detail

      • correctValues

        public Parameter correctValues
        A matrix specifying what the input should be. This defaults to a one-by-one array containing a boolean true.
      • tolerance

        public Parameter tolerance
        A double specifying how close the input has to be to the value given by correctValues. This is a DoubleToken, with default value 10-9. During training, if a correct value is greater than 10 orders of magnitude than the tolerance, then the tolerance is changed to a value 9 orders of magnitude less than the correct value. This helps avoid comparisons beyond the precision of a Java double.
      • trainingMode

        public SharedParameter trainingMode
        If true, then do not check inputs, but rather collect them into the correctValues array. This parameter is a boolean, and it defaults to false. It is a shared parameter, meaning that changing it for any one instance in a model will change it for all instances in the model.
      • _firedOnce

        protected boolean _firedOnce
        Set to true if fire() is called once. If fire() is not called at least once, then throw an exception in wrapup().
      • _initialized

        protected boolean _initialized
        Set to true when initialized() is called.
      • _iteration

        protected int _iteration
        Count of iterations.
      • _numberOfInputTokensSeen

        protected int _numberOfInputTokensSeen
        Number of input tokens seen by this actor in the fire method.
      • _tolerance

        protected double _tolerance
        A double that is read from the tolerance parameter specifying how close the input has to be to the value given by correctValues. This is a double, with default value 10-9.
      • _trainingTokens

        protected java.util.List _trainingTokens
        List to store tokens for training mode.