Class ParameterInstanceRef

  • All Implemented Interfaces:
    Serializable

    public class ParameterInstanceRef
    extends ParameterOrArgumentRef
    A reference to an instance of a Parameter.

    Used when the value of a parameter is required for a calculation or as an index value.

    A positive value for instance is forward in time, a negative value for count is backward in time, a 0 value for count means use the current value of the parameter or the first value in a container.

    If the parameter is an aggregate or an array, the reference can be made to a member of the aggregate/array or more generally to a path inside the aggregate (if a hierarchy of aggregates/arrays)

    Thus the reference can be something like: g1/g2/a[1]/g4[a3]/p7

    See Also:
    Serialized Form
    • Constructor Detail

      • ParameterInstanceRef

        public ParameterInstanceRef()
        Constructor to be used when the parameter is not yet known. The parameter will have to be set later with setParameter()
      • ParameterInstanceRef

        public ParameterInstanceRef​(Parameter para)
      • ParameterInstanceRef

        public ParameterInstanceRef​(Parameter para,
                                    boolean useCalibratedValue)
      • ParameterInstanceRef

        public ParameterInstanceRef​(boolean useCalibratedValue)
    • Method Detail

      • setParameter

        public void setParameter​(Parameter para)
      • getParameter

        public Parameter getParameter()
      • setInstance

        public void setInstance​(int instance)
      • getInstance

        public int getInstance()
        A positive value for instance is forward in time, a negative value for count is backward in time, a 0 value for count means use the current value of the parameter or the first value in a container.
        Returns:
        instance of the parameter that is required