Class Constant

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

    
    public final class Constant<V extends Object>
     implements DependentVariable<V>
                        

    A constant value, expressed as a variable to promote code reuse in Alchemist specifications.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final V value
    • Constructor Summary

      Constructors 
      Constructor Description
      Constant(V value)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final V getValue()
      V 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

      • Constant

        Constant(V value)
    • Method Detail

      • getWith

         V getWith(Map<String, Object> variables)

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

        Returns:

        the value for this value