public class Blueprint extends DeviceWithCapabilities
Device.Type
Constructor and Description |
---|
Blueprint(String name)
Create a blueprint with the given name.
|
Modifier and Type | Method and Description |
---|---|
ParameterObjectValue |
getBasicInformation()
Get basic information about this device.
|
String |
getBlueprintType() |
static Set<String> |
getBlueprintTypes()
Get all possible types a blueprint can have.
|
static boolean |
hasBlueprintType(String type)
Can a blueprint have the given type.
|
void |
setBasicInformation(ParameterObjectValue info)
Set basic resource information for this blueprint.
|
void |
setBlueprintType(String type)
Set a type for the blueprint.
|
static void |
setBlueprintTypes(Set<String> types)
Define the types a blueprint can have.
|
addCapability, addParameterObject, addParameterValue, addResourceCapability, getCapabilities, getCapabilityParameterObjectProperties, getParameterObjectValue, getParameters, getParameterValuesForCapability, getResourceCapabilities, getResourceCapability
getBlueprint, getDescription, getDescriptionAsPlainText, getDevices, getName, getRdID, getRdURL, getType, setDescription, setRdID, setRdURL, toString
public Blueprint(String name)
name
- name of the blueprintpublic static Set<String> getBlueprintTypes()
public static void setBlueprintTypes(Set<String> types)
types
- public static boolean hasBlueprintType(String type)
type
- type namepublic ParameterObjectValue getBasicInformation()
Device
getBasicInformation
in class Device
public void setBasicInformation(ParameterObjectValue info)
info
- the basic resource informationpublic String getBlueprintType()
public void setBlueprintType(String type) throws IllegalArgumentException
type
- type for the blueprintIllegalArgumentException
- blueprint cannot have the given type. see getBlueprintTypes for possible types.Copyright © 2017 Tampere University of Technology (TUT) / Laboratory of Mechanical Engineering and Industrial Systems (MEI). All rights reserved.