Class LinearVariable

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.Variable , java.io.Serializable , java.lang.Iterable

    
    public final class LinearVariable
    extends PrintableVariable<V>
                        

    This class represents a linear variable, namely a variable whose values span linearly between minimum and maximum.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      LinearVariable(double def, double min, double max, double step)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Double getDefault()
      long steps()
      Stream<Double> stream()
      • Methods inherited from class it.unibo.alchemist.boundary.variables.PrintableVariable

        toString
      • Methods inherited from class it.unibo.alchemist.boundary.Variable

        iterator
      • Methods inherited from class java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from class java.lang.Object

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

      • LinearVariable

        LinearVariable(double def, double min, double max, double step)
        Parameters:
        def - default value
        min - minimum (inclusive)
        max - maximum (inclusive)
        step - number of steps