public class IndividualDevice extends Device
Device.Type
Constructor and Description |
---|
IndividualDevice(String name)
Create a device with the given name.
|
Modifier and Type | Method and Description |
---|---|
void |
addCapability(Capability capability)
Add capability to the device's blueprint.
|
void |
addParameterObject(String property,
ParameterObjectValue value,
Capability capability)
This has not yet been implemented for this subclass.
|
void |
addParameterValue(Parameter param,
Object value,
Capability capability)
This has not yet been implemented for this subclass.
|
void |
addResourceCapability(ResourceCapability capability)
Not yet implemented for this.
|
ParameterObjectValue |
getBasicInformation()
Get the basic information of this device which is the basic information of the blueprint of this device.
|
Blueprint |
getBlueprint()
Get the blueprint the individual device is based on.
|
Set<Capability> |
getCapabilities()
Get the capabilities this device has
|
Collection<String> |
getCapabilityParameterObjectProperties(Capability capability)
Get property names that connect the given capability to its ParameterObjectValues.
|
String |
getDescription()
Get the description of the individual device.
|
Set<ParameterObjectValue> |
getParameterObjectValue(Capability capability,
String property)
Get ParameterObjectValues related to a capability via the given property.
|
Collection<ParameterValue> |
getParameters()
Gets parameters from the device's blueprint.
|
Set<ParameterValue> |
getParameterValuesForCapability(Capability capability)
Gets parameter values from the blueprint.
|
Collection<ResourceCapability> |
getResourceCapabilities()
Get the resource capabilities of the device.
|
ResourceCapability |
getResourceCapability(Capability capability)
Get a ResourceCapability of this device for the given capability.
|
void |
setBlueprint(Blueprint blueprint)
Set the blueprint the device is based on.
|
getDescriptionAsPlainText, getDevices, getName, getRdID, getRdURL, getType, setDescription, setRdID, setRdURL, toString
public IndividualDevice(String name)
name
- device namepublic Blueprint getBlueprint()
getBlueprint
in class Device
public ParameterObjectValue getBasicInformation()
getBasicInformation
in class Device
public void setBlueprint(Blueprint blueprint)
blueprint
- the blueprint to setpublic Set<Capability> getCapabilities()
Device
getCapabilities
in class Device
public Collection<ResourceCapability> getResourceCapabilities()
Device
getResourceCapabilities
in class Device
public ResourceCapability getResourceCapability(Capability capability)
Device
getResourceCapability
in class Device
capability
- a capabilitypublic void addCapability(Capability capability)
addCapability
in class Device
capability
- The capability to be added.Device.addCapability(fi.tut.mei.capabilityQueryLib.model.Capability)
public void addResourceCapability(ResourceCapability capability)
addResourceCapability
in class Device
capability
- the resource capabilityDevice.addResourceCapability(fi.tut.mei.capabilityQueryLib.model.ResourceCapability)
public String getDescription()
getDescription
in class Device
public void addParameterValue(Parameter param, Object value, Capability capability)
addParameterValue
in class Device
param
- the parameter whose value is setvalue
- the parameter valuecapability
- the capability to which this parameter value is related toDevice.addParameterValue(fi.tut.mei.capabilityQueryLib.model.Parameter, java.lang.Object, fi.tut.mei.capabilityQueryLib.model.Capability)
public Collection<ParameterValue> getParameters()
getParameters
in class Device
Device.getParameters()
public Set<ParameterValue> getParameterValuesForCapability(Capability capability)
getParameterValuesForCapability
in class Device
capability
- Capability whose parameter values will be returned.Device.getParameterValuesForCapability(fi.tut.mei.capabilityQueryLib.model.Capability)
public void addParameterObject(String property, ParameterObjectValue value, Capability capability)
addParameterObject
in class Device
property
- The property name that connects a device capability and the valuevalue
- The parameter object valuecapability
- capability the value is related topublic Collection<String> getCapabilityParameterObjectProperties(Capability capability)
Device
getCapabilityParameterObjectProperties
in class Device
capability
- a capabilitypublic Set<ParameterObjectValue> getParameterObjectValue(Capability capability, String property)
Device
getParameterObjectValue
in class Device
capability
- a capabilityproperty
- a property nameCopyright © 2017 Tampere University of Technology (TUT) / Laboratory of Mechanical Engineering and Industrial Systems (MEI). All rights reserved.