Class AbstractSweepParameterSetter<T>

    • Field Detail

      • parameterName

        protected String parameterName
      • lastValue

        protected T lastValue
      • revertValue

        protected T revertValue
    • Constructor Detail

      • AbstractSweepParameterSetter

        public AbstractSweepParameterSetter​(String parameterName)
        Constructs this with the given name to store its parameters to.
        parameterName - the name of the parameter
    • Method Detail

      • getParameterName

        public String getParameterName()
        Gets the name of the parameter that this setter is responsible for setting.
        the name of the parameter that this setter is responsible for setting.
      • next

        public void next​(Parameters params)
        If the object has finished its space this will set the parameter to the last value it generaetd, otherwise it will set it to the value returned by #nextValue().
        Specified by:
        next in interface ParameterSetter
        params - the parameter object values will be stored in
      • nextValue

        protected abstract T nextValue​(T prevValue)
        Retrieves the next value for the parameter. This will not be called when the space is finished.
        the next parameter value
      • randomValue

        protected abstract T randomValue()
      • previousValue

        protected abstract T previousValue​(T prevValue)
      • resetValue

        protected abstract T resetValue()
      • atEnd

        protected abstract boolean atEnd​(T prevValue)
      • atBeginning

        protected abstract boolean atBeginning​(T prevValue)
      • randDouble

        protected double randDouble​(double from,
                                    double to)
      • randInt

        protected int randInt​(int from,
                              int to)