Class RealDeviceCombination
- java.lang.Object
-
- fi.tut.mei.capabilityQueryLib.model.Device
-
- fi.tut.mei.capabilityQueryLib.model.DeviceWithCapabilities
-
- fi.tut.mei.capabilityQueryLib.model.DeviceCombination
-
- fi.tut.mei.capabilityQueryLib.model.RealDeviceCombination
-
public class RealDeviceCombination extends DeviceCombination
A real device combination consists of other real device combinations and individual devices.- Author:
- hylli
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class fi.tut.mei.capabilityQueryLib.model.Device
Device.Type
-
-
Constructor Summary
Constructors Constructor Description RealDeviceCombination(String name)
Create a real device combination with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDevice(Device device)
Add a device to this combination.boolean
isReal()
boolean
isTest()
-
Methods inherited from class fi.tut.mei.capabilityQueryLib.model.DeviceCombination
getDevices
-
Methods inherited from class fi.tut.mei.capabilityQueryLib.model.DeviceWithCapabilities
addCapability, addParameterObject, addParameterValue, addResourceCapability, getCapabilities, getCapabilityParameterObjectProperties, getParameterObjectValue, getParameters, getParameterValuesForCapability, getResourceCapabilities, getResourceCapability
-
Methods inherited from class fi.tut.mei.capabilityQueryLib.model.Device
getBasicInformation, getBlueprint, getDescription, getDescriptionAsPlainText, getName, getRdID, getRdURL, getType, setDescription, setRdID, setRdURL, toString
-
-
-
-
Constructor Detail
-
RealDeviceCombination
public RealDeviceCombination(String name)
Create a real device combination with the given name.- Parameters:
name
-
-
-
Method Detail
-
isReal
public boolean isReal()
- Specified by:
isReal
in classDeviceCombination
-
isTest
public boolean isTest()
- Specified by:
isTest
in classDeviceCombination
-
addDevice
public void addDevice(Device device) throws IllegalArgumentException
Add a device to this combination.- Overrides:
addDevice
in classDeviceCombination
- Parameters:
device
- the device to be added- Throws:
IllegalArgumentException
- Tried to add a test device combination or a blueprint.
-
-