public class ParameterValue extends Object
Constructor and Description |
---|
ParameterValue(Parameter parameter,
Capability capability)
Create a new ParameterValue for a capability.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(Object value)
Add a value for the parameter
|
void |
clearValues()
Remove all values.
|
Capability |
getCapability()
Get the capability to which these parameter values are related to
|
Parameter |
getParameter()
Return information about the parameter whose values this represents.
|
String |
getValue()
Combine the different values into a string separated by commas.
|
List<Object> |
getValues()
Give the values for the parameter.
|
boolean |
removeValue(Object value)
Remove the given value from the values of this ParameterValue.
|
boolean |
replaceValue(Object oldVal,
Object newVal)
Replace a value with another value.
|
void |
setValue(Object value)
Clears existing values if any and adds the given value.
|
public ParameterValue(Parameter parameter, Capability capability)
parameter
- the parametercapability
- the capability this value is related topublic Parameter getParameter()
public String getValue()
public void addValue(Object value)
value
- the valuepublic boolean removeValue(Object value)
value
- a value of this ParameterValuepublic boolean replaceValue(Object oldVal, Object newVal)
oldVal
- value to be replacednewVal
- the new valuepublic Capability getCapability()
public void clearValues()
public void setValue(Object value)
value
- the new value of this parameter valueCopyright © 2021 Tampere University (TAU) / Faculty of Engineering and Natural Sciences (ENS) / Automation Technology and Mechanical Engineering (ATME) / Manufacturing and Production Automation. All rights reserved.