Package mil.nga.crs.operation
Class OperationParameter
- java.lang.Object
-
- mil.nga.crs.operation.OperationParameter
-
- All Implemented Interfaces:
Identifiable
public class OperationParameter extends Object implements Identifiable
Operation Parameter- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description OperationParameter()
ConstructorOperationParameter(String name, double value)
ConstructorOperationParameter(String name, double value, Unit unit)
ConstructorOperationParameter(String name, String fileName)
ConstructorOperationParameter(String name, String value, Unit unit)
ConstructorOperationParameter(OperationParameters parameter, double value)
ConstructorOperationParameter(OperationParameters parameter, double value, Unit unit)
ConstructorOperationParameter(OperationParameters parameter, String value)
ConstructorOperationParameter(OperationParameters parameter, String value, Unit unit)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIdentifier(Identifier identifier)
Add the identifiervoid
addIdentifiers(List<Identifier> identifiers)
Add the identifiersboolean
equals(Object obj)
String
getFileName()
Get the file nameIdentifier
getIdentifier(int index)
Get the identifier at the indexList<Identifier>
getIdentifiers()
Get the identifiersString
getName()
Get the nameOperationParameters
getParameter()
Get the commonly known parameter typeUnit
getUnit()
Get the unitdouble
getValue()
Get the valueString
getValueText()
Get the value textint
hashCode()
boolean
hasIdentifiers()
Has identifiersboolean
hasParameter()
Is a commonly known parameter typeboolean
hasUnit()
Has a unitboolean
isFile()
Is a parameter fileint
numIdentifiers()
Number of identifiersvoid
setFileName(String fileName)
Set the file namevoid
setIdentifiers(List<Identifier> identifiers)
Set the identifiersvoid
setName(String name)
Set the namevoid
setParameter(OperationParameters parameter)
Set the commonly known parameter typevoid
setUnit(Unit unit)
Set the unitvoid
setValue(double value)
Set the valuevoid
setValue(String value)
Set the valueString
toString()
void
updateParameter()
Update the commonly known parameter type using the name
-
-
-
Constructor Detail
-
OperationParameter
public OperationParameter()
Constructor
-
OperationParameter
public OperationParameter(String name, double value)
Constructor- Parameters:
name
- namevalue
- value
-
OperationParameter
public OperationParameter(String name, double value, Unit unit)
Constructor- Parameters:
name
- namevalue
- valueunit
- unit
-
OperationParameter
public OperationParameter(String name, String value, Unit unit)
Constructor- Parameters:
name
- namevalue
- valueunit
- unit- Since:
- 1.1.0
-
OperationParameter
public OperationParameter(OperationParameters parameter, double value)
Constructor- Parameters:
parameter
- operation parametervalue
- value
-
OperationParameter
public OperationParameter(OperationParameters parameter, String value)
Constructor- Parameters:
parameter
- operation parametervalue
- value- Since:
- 1.1.0
-
OperationParameter
public OperationParameter(OperationParameters parameter, double value, Unit unit)
Constructor- Parameters:
parameter
- operation parametervalue
- valueunit
- unit
-
OperationParameter
public OperationParameter(OperationParameters parameter, String value, Unit unit)
Constructor- Parameters:
parameter
- operation parametervalue
- valueunit
- unit- Since:
- 1.1.0
-
-
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
-
getIdentifiers
public List<Identifier> getIdentifiers()
Get the identifiers- Specified by:
getIdentifiers
in interfaceIdentifiable
- Returns:
- identifiers
-
hasIdentifiers
public boolean hasIdentifiers()
Has identifiers- Specified by:
hasIdentifiers
in interfaceIdentifiable
- Returns:
- true if has identifiers
-
numIdentifiers
public int numIdentifiers()
Number of identifiers- Specified by:
numIdentifiers
in interfaceIdentifiable
- Returns:
- identifiers count
-
getIdentifier
public Identifier getIdentifier(int index)
Get the identifier at the index- Specified by:
getIdentifier
in interfaceIdentifiable
- Parameters:
index
- identifier index- Returns:
- identifier
-
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
Set the identifiers- Specified by:
setIdentifiers
in interfaceIdentifiable
- Parameters:
identifiers
- identifiers
-
addIdentifier
public void addIdentifier(Identifier identifier)
Add the identifier- Specified by:
addIdentifier
in interfaceIdentifiable
- Parameters:
identifier
- identifier
-
addIdentifiers
public void addIdentifiers(List<Identifier> identifiers)
Add the identifiers- Specified by:
addIdentifiers
in interfaceIdentifiable
- Parameters:
identifiers
- identifiers
-
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
-
-