com.eurotech.framework.core.message
Class EsfDeviceProfile

java.lang.Object
  extended by com.eurotech.framework.core.message.EsfDeviceProfile

public class EsfDeviceProfile
extends Object

The EsfDeviceProfile is a container class that holds the parameters that make up the from of a device. This information is used to build the birth and disconnect certificates that are published when connecting to and disconnecting from the broker.


Constructor Summary
EsfDeviceProfile()
          Empty constructor for an EsfDeviceProfile.
EsfDeviceProfile(Properties props)
          Constructs an EsfDeviceProfile from a Properties object that contains all the parameters that make up the profile.
EsfDeviceProfile(String uptime, String displayName, String modelName, String modelId, String partNumber, String serialNumber, String firmwareVersion, String biosVersion, String os, String osVersion, String jvmName, String jvmVersion, String jvmProfile, String connectionInterface, String connectionIp)
          Creates an EsfDeviceProfile using the values of the supplied parameters.
EsfDeviceProfile(String uptime, String displayName, String modelName, String modelId, String partNumber, String serialNumber, String firmwareVersion, String biosVersion, String os, String osVersion, String jvmName, String jvmVersion, String jvmProfile, String connectionInterface, String connectionIp, Double latitude, Double longitude, Double altitude)
          Creates an EsfDeviceProfile using the values of the supplied parameters.
EsfDeviceProfile(String uptime, String displayName, String modelName, String modelId, String partNumber, String serialNumber, String firmwareVersion, String biosVersion, String os, String osVersion, String jvmName, String jvmVersion, String jvmProfile, String connectionInterface, String connectionIp, Double latitude, Double longitude, Double altitude, String availableProcessors, String totalMemory, String osArch, String osgiFramework, String osgiFrameworkVersion)
          Creates an EsfDeviceProfile using the values of the supplied parameters.
EsfDeviceProfile(String uptime, String displayName, String modelName, String modelId, String partNumber, String serialNumber, String firmwareVersion, String biosVersion, String os, String osVersion, String jvmName, String jvmVersion, String jvmProfile, String connectionInterface, String connectionIp, String availableProcessors, String totalMemory, String osArch, String osgiFramework, String osgiFrameworkVersion)
          Creates an EsfDeviceProfile using the values of the supplied parameters.
 
Method Summary
 Double getAltitude()
          Returns the altitude of the device's location.
 String getAvailableProcessors()
           
 String getBiosVersion()
          Returns the version of the BIOS on the device.
 String getConnectionInterface()
          Returns the name of the interface used to connect to the cloud.
 String getConnectionIp()
          Returns the IP address of the interface used to connect to the cloud.
 String getDisplayName()
          Returns the readable display name for the device.
 String getFirmwareVersion()
          Returns the version of firmware running on the device.
 String getJvmName()
          Returns the name of the JVM.
 String getJvmProfile()
          Returns the profile of the JVM.
 String getJvmVersion()
          Returns the version of the JVM.
 Double getLatitude()
          Returns the latitude of the device's location.
 Double getLongitude()
          Returns the longitude of the device's location.
 String getModelId()
          Returns the device model ID.
 String getModelName()
          Returns the device model name
 String getOs()
          Returns the name of the operating system.
 String getOsArch()
           
 String getOsgiFramework()
           
 String getOsgiFrameworkVersion()
           
 String getOsVersion()
          Returns the version of the operating system.
 String getPartNumber()
          Returns the part number of the device.
 String getSerialNumber()
          Returns the serial number of the device.
 String getTotalMemory()
           
 String getUptime()
          Returns The length of time the unit has been powered on.
 void setAltitude(Double altitude)
          Sets the altitude of the device's location.
 void setAvailableProcessors(String availableProcessors)
           
 void setBiosVersion(String biosVersion)
          Sets the version of the BIOS on the device.
 void setConnectionInterface(String connectionInterface)
          Sets the name of the interface used to connect to the cloud.
 void setConnectionIp(String connectionIp)
          Sets the IP address of the interface used to connect to the cloud.
 void setDisplayName(String displayName)
          Sets the readable display name for the device
 void setFirmwareVersion(String firmwareVersion)
          Sets the version of firmware running on the device.
 void setJvmName(String jvmName)
          Sets the name of the JVM.
 void setJvmProfile(String jvmProfile)
          Sets the profile of the JVM.
 void setJvmVersion(String jvmVersion)
          Sets the version of the JVM.
 void setLatitude(Double latitude)
          Sets the latitude of the device's location.
 void setLongitude(Double longitude)
          Sets the longitude of the device's location.
 void setModelId(String modelId)
          Sets the device model ID.
 void setModelName(String modelName)
          Sets the device model name.
 void setOs(String os)
          Sets the name of the operating system.
 void setOsArch(String osArch)
           
 void setOsgiFramework(String osgiFramework)
           
 void setOsgiFrameworkVersion(String osgiFrameworkVersion)
           
 void setOsVersion(String osVersion)
          Sets the version of the operating system.
 void setPartNumber(String partNumber)
          Sets the part number of the device.
 void setSerialNumber(String serialNumber)
          Sets the serial number of the device.
 void setTotalMemory(String totalMemory)
           
 void setUptime(String uptime)
          Sets the length of time the unit has been powered on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EsfDeviceProfile

public EsfDeviceProfile()
Empty constructor for an EsfDeviceProfile.


EsfDeviceProfile

public EsfDeviceProfile(Properties props)
Constructs an EsfDeviceProfile from a Properties object that contains all the parameters that make up the profile.

Parameters:
props - A Properties object containing all the device parameters.

EsfDeviceProfile

public EsfDeviceProfile(String uptime,
                        String displayName,
                        String modelName,
                        String modelId,
                        String partNumber,
                        String serialNumber,
                        String firmwareVersion,
                        String biosVersion,
                        String os,
                        String osVersion,
                        String jvmName,
                        String jvmVersion,
                        String jvmProfile,
                        String connectionInterface,
                        String connectionIp,
                        Double latitude,
                        Double longitude,
                        Double altitude)
Creates an EsfDeviceProfile using the values of the supplied parameters. This constructor also contains values for the GPS location of the device.

Parameters:
uptime - The length of time the unit has been powered on.
displayName - A readable display name for the device.
modelName - The device model name.
modelId - The device model ID.
partNumber - The part number of the device.
serialNumber - The serial number of the device.
firmwareVersion - The version of firmware running on the device.
biosVersion - The version of the BIOS on the device.
os - The name of the operating system
osVersion - The version of the operating system
jvmName - The name of the JVM
jvmVersion - The version of the JVM
jvmProfile - The profile of the JVM
connectionInterface - The name of the interface used to connect to the cloud
connectionIp - The IP address of the interface used to connect to the cloud
latitude - The latitude of the device's location
longitude - The longitude of the device's location
altitude - The altitude of the device's location

EsfDeviceProfile

public EsfDeviceProfile(String uptime,
                        String displayName,
                        String modelName,
                        String modelId,
                        String partNumber,
                        String serialNumber,
                        String firmwareVersion,
                        String biosVersion,
                        String os,
                        String osVersion,
                        String jvmName,
                        String jvmVersion,
                        String jvmProfile,
                        String connectionInterface,
                        String connectionIp)
Creates an EsfDeviceProfile using the values of the supplied parameters.

Parameters:
uptime - The length of time the unit has been powered on.
displayName - A readable display name for the device.
modelName - The device model name.
modelId - The device model ID.
partNumber - The part number of the device.
serialNumber - The serial number of the device.
firmwareVersion - The version of firmware running on the device.
biosVersion - The version of the BIOS on the device.
os - The name of the operating system
osVersion - The version of the operating system
jvmName - The name of the JVM
jvmVersion - The version of the JVM
jvmProfile - The profile of the JVM
connectionInterface - The name of the interface used to connect to the cloud
connectionIp - The IP address of the interface used to connect to the cloud

EsfDeviceProfile

public EsfDeviceProfile(String uptime,
                        String displayName,
                        String modelName,
                        String modelId,
                        String partNumber,
                        String serialNumber,
                        String firmwareVersion,
                        String biosVersion,
                        String os,
                        String osVersion,
                        String jvmName,
                        String jvmVersion,
                        String jvmProfile,
                        String connectionInterface,
                        String connectionIp,
                        String availableProcessors,
                        String totalMemory,
                        String osArch,
                        String osgiFramework,
                        String osgiFrameworkVersion)
Creates an EsfDeviceProfile using the values of the supplied parameters.

Parameters:
uptime - The length of time the unit has been powered on.
displayName - A readable display name for the device.
modelName - The device model name.
modelId - The device model ID.
partNumber - The part number of the device.
serialNumber - The serial number of the device.
firmwareVersion - The version of firmware running on the device.
biosVersion - The version of the BIOS on the device.
os - The name of the operating system
osVersion - The version of the operating system
jvmName - The name of the JVM
jvmVersion - The version of the JVM
jvmProfile - The profile of the JVM
connectionInterface - The name of the interface used to connect to the cloud
connectionIp - The IP address of the interface used to connect to the cloud
availableProcessors - The number of available processors for the JVM
totalMemory - The total memory available for the JVM
osArch - The architecture of the JVM (32 or 64)
osgiFramework - The OSGI Framework in use
osgiFrameworkVersion - The version of the OSGI Framework in use

EsfDeviceProfile

public EsfDeviceProfile(String uptime,
                        String displayName,
                        String modelName,
                        String modelId,
                        String partNumber,
                        String serialNumber,
                        String firmwareVersion,
                        String biosVersion,
                        String os,
                        String osVersion,
                        String jvmName,
                        String jvmVersion,
                        String jvmProfile,
                        String connectionInterface,
                        String connectionIp,
                        Double latitude,
                        Double longitude,
                        Double altitude,
                        String availableProcessors,
                        String totalMemory,
                        String osArch,
                        String osgiFramework,
                        String osgiFrameworkVersion)
Creates an EsfDeviceProfile using the values of the supplied parameters. This constructor also contains values for the GPS location of the device.

Parameters:
uptime - The length of time the unit has been powered on.
displayName - A readable display name for the device.
modelName - The device model name.
modelId - The device model ID.
partNumber - The part number of the device.
serialNumber - The serial number of the device.
firmwareVersion - The version of firmware running on the device.
biosVersion - The version of the BIOS on the device.
os - The name of the operating system
osVersion - The version of the operating system
jvmName - The name of the JVM
jvmVersion - The version of the JVM
jvmProfile - The profile of the JVM
connectionInterface - The name of the interface used to connect to the cloud
connectionIp - The IP address of the interface used to connect to the cloud
latitude - The latitude of the device's location
longitude - The longitude of the device's location
altitude - The altitude of the device's location
Method Detail

getUptime

public String getUptime()
Returns The length of time the unit has been powered on.

Returns:
A String representing the length of time the device has been powered on.

getDisplayName

public String getDisplayName()
Returns the readable display name for the device.

Returns:
A String representing the readable display name for the device.

getModelName

public String getModelName()
Returns the device model name

Returns:
A String representing the device model name

getModelId

public String getModelId()
Returns the device model ID.

Returns:
A String representing the device model ID.

getPartNumber

public String getPartNumber()
Returns the part number of the device.

Returns:
A String representing the part number of the device.

getSerialNumber

public String getSerialNumber()
Returns the serial number of the device.

Returns:
A String representing the serial number of the device.

getFirmwareVersion

public String getFirmwareVersion()
Returns the version of firmware running on the device.

Returns:
A String representing the version of firmware running on the device.

getBiosVersion

public String getBiosVersion()
Returns the version of the BIOS on the device.

Returns:
A String representing the version of the BIOS on the device.

getOs

public String getOs()
Returns the name of the operating system.

Returns:
A String representing the name of the operating system.

getOsVersion

public String getOsVersion()
Returns the version of the operating system.

Returns:
A String representing the version of the operating system.

getJvmName

public String getJvmName()
Returns the name of the JVM.

Returns:
A String representing the name of the JVM.

getJvmVersion

public String getJvmVersion()
Returns the version of the JVM.

Returns:
A String representing the version of the JVM.

getJvmProfile

public String getJvmProfile()
Returns the profile of the JVM.

Returns:
A String representing the profile of the JVM.

getConnectionInterface

public String getConnectionInterface()
Returns the name of the interface used to connect to the cloud.

Returns:
A String representing the name of the interface used to connect to the cloud.

getConnectionIp

public String getConnectionIp()
Returns the IP address of the interface used to connect to the cloud.

Returns:
A String representing the IP address of the interface used to connect to the cloud.

getLatitude

public Double getLatitude()
Returns the latitude of the device's location.

Returns:
A String representing the latitude of the device's location.

getLongitude

public Double getLongitude()
Returns the longitude of the device's location.

Returns:
A String representing the longitude of the device's location.

getAltitude

public Double getAltitude()
Returns the altitude of the device's location.

Returns:
A String representing thealtitude of the device's location.

setUptime

public void setUptime(String uptime)
Sets the length of time the unit has been powered on.

Parameters:
uptime - A String representing the length of time the unit has been powered on.

setDisplayName

public void setDisplayName(String displayName)
Sets the readable display name for the device

Parameters:
displayName - A String representing the readable display name for the device

setModelName

public void setModelName(String modelName)
Sets the device model name.

Parameters:
modelName - A String representing the device model name.

setModelId

public void setModelId(String modelId)
Sets the device model ID.

Parameters:
modelId - A String representing the device model ID.

setPartNumber

public void setPartNumber(String partNumber)
Sets the part number of the device.

Parameters:
partNumber - A String representing the part number of the device.

setSerialNumber

public void setSerialNumber(String serialNumber)
Sets the serial number of the device.

Parameters:
serialNumber - A String representing the serial number of the device.

setFirmwareVersion

public void setFirmwareVersion(String firmwareVersion)
Sets the version of firmware running on the device.

Parameters:
firmwareVersion - A String representing the version of firmware running on the device.

setBiosVersion

public void setBiosVersion(String biosVersion)
Sets the version of the BIOS on the device.

Parameters:
biosVersion - A String representing the version of the BIOS on the device.

setOs

public void setOs(String os)
Sets the name of the operating system.

Parameters:
os - A String representing the name of the operating system.

setOsVersion

public void setOsVersion(String osVersion)
Sets the version of the operating system.

Parameters:
osVersion - A String representing the version of the operating system.

setJvmName

public void setJvmName(String jvmName)
Sets the name of the JVM.

Parameters:
jvmName - A String representing the name of the JVM.

setJvmVersion

public void setJvmVersion(String jvmVersion)
Sets the version of the JVM.

Parameters:
jvmVersion - A String representing the version of the JVM.

setJvmProfile

public void setJvmProfile(String jvmProfile)
Sets the profile of the JVM.

Parameters:
jvmProfile - A String representing the profile of the JVM.

setConnectionInterface

public void setConnectionInterface(String connectionInterface)
Sets the name of the interface used to connect to the cloud.

Parameters:
connectionInterface - A String representing the name of the interface used to connect to the cloud.

setConnectionIp

public void setConnectionIp(String connectionIp)
Sets the IP address of the interface used to connect to the cloud.

Parameters:
connectionIp - A String representing the IP address of the interface used to connect to the cloud.

setLatitude

public void setLatitude(Double latitude)
Sets the latitude of the device's location.

Parameters:
latitude - A String representing the latitude of the device's location.

setLongitude

public void setLongitude(Double longitude)
Sets the longitude of the device's location.

Parameters:
longitude - A String representing the longitude of the device's location.

setAltitude

public void setAltitude(Double altitude)
Sets the altitude of the device's location.

Parameters:
altitude - A String representing the altitude of the device's location.

getAvailableProcessors

public String getAvailableProcessors()

setAvailableProcessors

public void setAvailableProcessors(String availableProcessors)

getTotalMemory

public String getTotalMemory()

setTotalMemory

public void setTotalMemory(String totalMemory)

getOsArch

public String getOsArch()

setOsArch

public void setOsArch(String osArch)

getOsgiFramework

public String getOsgiFramework()

setOsgiFramework

public void setOsgiFramework(String osgiFramework)

getOsgiFrameworkVersion

public String getOsgiFrameworkVersion()

setOsgiFrameworkVersion

public void setOsgiFrameworkVersion(String osgiFrameworkVersion)


Copyright © 2013. All Rights Reserved.