Class DeviceInfo
- java.lang.Object
-
- com.smartgridready.communicator.common.api.dto.DeviceInfo
-
public class DeviceInfo extends java.lang.ObjectImplements a generic device information facade.
-
-
Constructor Summary
Constructors Constructor Description DeviceInfo(java.lang.String name, java.lang.String manufacturer, java.lang.String versionNumber, java.lang.String softwareVersion, java.lang.String hardwareVersion, com.smartgridready.ns.v0.DeviceCategory deviceCategory, InterfaceType interfaceType, OperationEnvironment operationEnvironment, java.util.List<GenericAttribute> genericAttributes, java.util.List<ConfigurationValue> configurationInfo, java.util.List<FunctionalProfile> functionalProfiles)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<ConfigurationValue>getConfigurationInfo()Gets the configuration parameters.com.smartgridready.ns.v0.DeviceCategorygetDeviceCategory()Gets the device category, defined by XML schema.java.util.List<FunctionalProfile>getFunctionalProfiles()Gets the functional profiles.java.util.List<GenericAttribute>getGenericAttributes()Gets the generic attributes at device-level.java.lang.StringgetHardwareVersion()Gets the device hardware version compatible with the EID.InterfaceTypegetInterfaceType()Gets the type of communication interface.java.lang.StringgetManufacturer()Gets the device manufacturer name.java.lang.StringgetName()Gets the device name.OperationEnvironmentgetOperationEnvironment()Gets the device's operation environment.java.lang.StringgetSoftwareVersion()Gets the device software version compatible with the EID.java.util.List<DataPointValue>getValues()Reads all data point values from device.java.lang.StringgetVersionNumber()Gets the EID version number.java.util.List<DataPointValue>readData()Deprecated, for removal: This API element is subject to removal in a future version.Since version 2.1.0
-
-
-
Constructor Detail
-
DeviceInfo
public DeviceInfo(java.lang.String name, java.lang.String manufacturer, java.lang.String versionNumber, java.lang.String softwareVersion, java.lang.String hardwareVersion, com.smartgridready.ns.v0.DeviceCategory deviceCategory, InterfaceType interfaceType, OperationEnvironment operationEnvironment, java.util.List<GenericAttribute> genericAttributes, java.util.List<ConfigurationValue> configurationInfo, java.util.List<FunctionalProfile> functionalProfiles)Constructs a new instance.- Parameters:
name- the device namemanufacturer- the device manufacturerversionNumber- the EID version numbersoftwareVersion- the software version supported by the EIDhardwareVersion- the hardware version supported by the EIDdeviceCategory- the device categoryinterfaceType- the type of communication interfaceoperationEnvironment- the environment the device operates ingenericAttributes- the generic attributes of the deviceconfigurationInfo- the list of EID configuration parametersfunctionalProfiles- the list of functional profiles
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the device name.- Returns:
- a string
-
getManufacturer
public java.lang.String getManufacturer()
Gets the device manufacturer name.- Returns:
- a string
-
getVersionNumber
public java.lang.String getVersionNumber()
Gets the EID version number.- Returns:
- a string
-
getSoftwareVersion
public java.lang.String getSoftwareVersion()
Gets the device software version compatible with the EID.- Returns:
- a string
-
getHardwareVersion
public java.lang.String getHardwareVersion()
Gets the device hardware version compatible with the EID.- Returns:
- a string
-
getDeviceCategory
public com.smartgridready.ns.v0.DeviceCategory getDeviceCategory()
Gets the device category, defined by XML schema.- Returns:
- an instance of
DeviceCategory
-
getInterfaceType
public InterfaceType getInterfaceType()
Gets the type of communication interface.- Returns:
- an instance of
InterfaceType
-
getOperationEnvironment
public OperationEnvironment getOperationEnvironment()
Gets the device's operation environment.- Returns:
- an instance of
OperationEnvironment
-
getGenericAttributes
public java.util.List<GenericAttribute> getGenericAttributes()
Gets the generic attributes at device-level.- Returns:
- a list of
GenericAttribute
-
getConfigurationInfo
public java.util.List<ConfigurationValue> getConfigurationInfo()
Gets the configuration parameters.- Returns:
- a list of
ConfigurationValue
-
getFunctionalProfiles
public java.util.List<FunctionalProfile> getFunctionalProfiles()
Gets the functional profiles.- Returns:
- a list of
FunctionalProfile
-
getValues
public java.util.List<DataPointValue> getValues()
Reads all data point values from device.- Returns:
- a list of
DataPointValue
-
readData
@Deprecated(since="2.1.0", forRemoval=true) public java.util.List<DataPointValue> readData()Deprecated, for removal: This API element is subject to removal in a future version.Since version 2.1.0Reads all data point values from device.- Returns:
- a list of
DataPointValue
-
-