public class Parameter extends CapabilityParameter
Constructor and Description |
---|
Parameter(String name)
Create a new parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
addValueAlternative(String alternative)
Add an alternative for this parameter's value.
|
String |
getType()
Get the type of the parameter value for example float, int or string.
|
String |
getUnit()
Return the unit of this parameter.
|
Set<String> |
getValueAlternatives()
Get the set of values this parameter can have.
|
void |
setType(String type)
Set the type of this parameter.
|
void |
setUnit(String unit)
Set the unit of this parameter.
|
getDescription, getName, setDescription, setName
public Parameter(String name)
name
- name of the parameterpublic String getType()
public String getUnit()
public void setType(String type)
type
- the type for example floatpublic void setUnit(String unit)
unit
- the unitpublic Set<String> getValueAlternatives()
public void addValueAlternative(String alternative)
alternative
- the value alternativeCopyright © 2021 Tampere University (TAU) / Faculty of Engineering and Natural Sciences (ENS) / Automation Technology and Mechanical Engineering (ATME) / Manufacturing and Production Automation. All rights reserved.