public class ResourceCapability extends Object
Constructor and Description |
---|
ResourceCapability(Capability capability)
Create new ResourceCapability representing the given capability.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameterObject(String property,
ParameterObjectValue value)
Add a value for a parameter object.
|
void |
addParameterValue(Parameter param,
Object value)
Add a value for the given capability parameter.
|
Capability |
getCapability()
Get the capability this has information for.
|
Set<String> |
getParameterObjectProperties()
Get all properties for which there are parameter object values.
|
Set<ParameterObjectValue> |
getParameterObjectValues(String property)
Get parameter object values for the given property.
|
Collection<ParameterValue> |
getParameters()
Get all parameter values related to the capability.
|
ParameterValue |
getParameterValueFor(Parameter parameter)
Get a ParameterValue for the given Parameter.
|
boolean |
removeParameterObject(String property,
ParameterObjectValue value)
Remove the given ParameterObjectValue of the given property.
|
boolean |
removeParameterObjectsFor(String property)
Remove all ParameterObjectValues for the given property.
|
boolean |
removeParameterValue(Parameter parameter)
Removes all values for the given parameter.
|
public ResourceCapability(Capability capability)
capability
- capability for which this will have parameterspublic Capability getCapability()
public void addParameterObject(String property, ParameterObjectValue value)
property
- property for which this is a value such as hasItemSize_maxvalue
- value for the parameter objectpublic boolean removeParameterObject(String property, ParameterObjectValue value)
property
- name of a propertyvalue
- the value to be removedpublic boolean removeParameterObjectsFor(String property)
property
- name of a propertypublic Set<String> getParameterObjectProperties()
public Set<ParameterObjectValue> getParameterObjectValues(String property)
property
- the property for example hasItemSize_minpublic void addParameterValue(Parameter param, Object value)
param
- the parametervalue
- a value for the parameterpublic boolean removeParameterValue(Parameter parameter)
parameter
- parameter whose ParameterValue will be removed.public Collection<ParameterValue> getParameters()
public ParameterValue getParameterValueFor(Parameter parameter)
parameter
- a parameterCopyright © 2017 Tampere University of Technology (TUT) / Laboratory of Mechanical Engineering and Industrial Systems (MEI). All rights reserved.