org.minetti.astrodevice.server.hibernate.object
Class DeviceSpecificationImpl

java.lang.Object
  extended by org.minetti.astrodevice.server.hibernate.object.DeviceSpecificationImpl
All Implemented Interfaces:
Serializable, DeviceSpecification

@Entity
public final class DeviceSpecificationImpl
extends Object
implements DeviceSpecification, Serializable

Object representing the specifications on a device.

Author:
Jean-Philippe MINETTI
See Also:
Serialized Form

Nested Class Summary
protected  class DeviceSpecificationImpl.DeviceSignatureImpl
          Signature used for recognize the device.
 
Field Summary
protected  String bus
          Bus name where the device is connected (never NULL).
protected  String productDescription
          Product description of device (never NULL).
protected  String productId
          Unique identifier identifying the device product (never NULL).
protected  String productVersion
          Product version of device (can be NULL).
protected  HashMap<String,Object> properties
          Map containing all properties of the device (never NULL).
protected  String serialNumber
          Serial number of device or other data identifying the devices of the same product (can be NULL).
 
Constructor Summary
DeviceSpecificationImpl()
          Constructor.
DeviceSpecificationImpl(DeviceSpecification deviceSpecification)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 Long getId()
           
 String getName()
           
 String getPluginClassName()
           
 org.minetti.astrodevice.common.device.DeviceSignature getSignature()
           
 int hashCode()
           
 void setName(String name)
           
 void setPluginClassName(String pluginClassName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

bus

protected String bus
Bus name where the device is connected (never NULL).


productId

protected String productId
Unique identifier identifying the device product (never NULL).


productDescription

protected String productDescription
Product description of device (never NULL).


productVersion

protected String productVersion
Product version of device (can be NULL).


serialNumber

protected String serialNumber
Serial number of device or other data identifying the devices of the same product (can be NULL).


properties

protected HashMap<String,Object> properties
Map containing all properties of the device (never NULL).

Constructor Detail

DeviceSpecificationImpl

public DeviceSpecificationImpl()
Constructor.


DeviceSpecificationImpl

public DeviceSpecificationImpl(DeviceSpecification deviceSpecification)
Constructor.

Parameters:
deviceSpecification - Object representing the specifications on a device.
Method Detail

getId

public final Long getId()
Specified by:
getId in interface DeviceSpecification

getName

public final String getName()
Specified by:
getName in interface DeviceSpecification

setName

public final void setName(String name)
Specified by:
setName in interface DeviceSpecification

getPluginClassName

public final String getPluginClassName()
Specified by:
getPluginClassName in interface DeviceSpecification

setPluginClassName

public final void setPluginClassName(String pluginClassName)
Specified by:
setPluginClassName in interface DeviceSpecification

getSignature

public final org.minetti.astrodevice.common.device.DeviceSignature getSignature()
Specified by:
getSignature in interface DeviceSpecification

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2012 astroDevice. All Rights Reserved.