Class NumericConstant

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.DependentVariable , java.io.Serializable

    
    public final class NumericConstant
     implements DependentVariable<V>
                        

    A numeric constant.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Number getWith(Map<String, Object> variables) Given the current controlled variables, computes the current values for this variable.
      • Methods inherited from class java.lang.Object

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

      • NumericConstant

        NumericConstant(Number n)
        Parameters:
        n - the number
    • Method Detail

      • getWith

         Number getWith(Map<String, Object> variables)

        Given the current controlled variables, computes the current values for this variable.

        Parameters:
        variables - a mapping between variable names and values
        Returns:

        the value for this value