Class OperationParameter

    • Constructor Detail

      • OperationParameter

        public OperationParameter()
        Constructor
      • OperationParameter

        public OperationParameter​(String name,
                                  double value)
        Constructor
        Parameters:
        name - name
        value - value
      • OperationParameter

        public OperationParameter​(String name,
                                  double value,
                                  Unit unit)
        Constructor
        Parameters:
        name - name
        value - value
        unit - unit
      • OperationParameter

        public OperationParameter​(String name,
                                  String value,
                                  Unit unit)
        Constructor
        Parameters:
        name - name
        value - value
        unit - unit
        Since:
        1.1.0
      • OperationParameter

        public OperationParameter​(OperationParameters parameter,
                                  double value)
        Constructor
        Parameters:
        parameter - operation parameter
        value - value
      • OperationParameter

        public OperationParameter​(OperationParameters parameter,
                                  String value)
        Constructor
        Parameters:
        parameter - operation parameter
        value - value
        Since:
        1.1.0
      • OperationParameter

        public OperationParameter​(OperationParameters parameter,
                                  double value,
                                  Unit unit)
        Constructor
        Parameters:
        parameter - operation parameter
        value - value
        unit - unit
      • OperationParameter

        public OperationParameter​(OperationParameters parameter,
                                  String value,
                                  Unit unit)
        Constructor
        Parameters:
        parameter - operation parameter
        value - value
        unit - unit
        Since:
        1.1.0
      • OperationParameter

        public OperationParameter​(String name,
                                  String fileName)
        Constructor
        Parameters:
        name - name
        fileName - file name
    • Method Detail

      • getName

        public String getName()
        Get the name
        Returns:
        name
      • setName

        public void setName​(String name)
        Set the name
        Parameters:
        name - name
      • getValue

        public double getValue()
        Get the value
        Returns:
        value
      • getValueText

        public String getValueText()
        Get the value text
        Returns:
        value text
        Since:
        1.1.0
      • setValue

        public void setValue​(double value)
        Set the value
        Parameters:
        value - value
      • setValue

        public void setValue​(String value)
        Set the value
        Parameters:
        value - value
        Since:
        1.1.0
      • getUnit

        public Unit getUnit()
        Get the unit
        Returns:
        unit
      • hasUnit

        public boolean hasUnit()
        Has a unit
        Returns:
        true if has unit
      • setUnit

        public void setUnit​(Unit unit)
        Set the unit
        Parameters:
        unit - unit
      • getFileName

        public String getFileName()
        Get the file name
        Returns:
        file name
      • isFile

        public boolean isFile()
        Is a parameter file
        Returns:
        true if file
      • setFileName

        public void setFileName​(String fileName)
        Set the file name
        Parameters:
        fileName - file name
      • hasIdentifiers

        public boolean hasIdentifiers()
        Has identifiers
        Specified by:
        hasIdentifiers in interface Identifiable
        Returns:
        true if has identifiers
      • numIdentifiers

        public int numIdentifiers()
        Number of identifiers
        Specified by:
        numIdentifiers in interface Identifiable
        Returns:
        identifiers count
      • getIdentifier

        public Identifier getIdentifier​(int index)
        Get the identifier at the index
        Specified by:
        getIdentifier in interface Identifiable
        Parameters:
        index - identifier index
        Returns:
        identifier
      • addIdentifier

        public void addIdentifier​(Identifier identifier)
        Add the identifier
        Specified by:
        addIdentifier in interface Identifiable
        Parameters:
        identifier - identifier
      • getParameter

        public OperationParameters getParameter()
        Get the commonly known parameter type
        Returns:
        parameter type or null
      • hasParameter

        public boolean hasParameter()
        Is a commonly known parameter type
        Returns:
        true if has common parameter type
      • setParameter

        public void setParameter​(OperationParameters parameter)
        Set the commonly known parameter type
        Parameters:
        parameter - parameter type or null
      • updateParameter

        public void updateParameter()
        Update the commonly known parameter type using the name
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object