com.biocomfort.TO
Class IeeeAddressTO

java.lang.Object
  extended by com.biocomfort.TO.IeeeAddressTO
All Implemented Interfaces:
TO, java.io.Serializable, java.lang.Cloneable

public class IeeeAddressTO
extends java.lang.Object
implements TO, java.io.Serializable, java.lang.Cloneable

The IeeeAddressTO is a data class to store the IEEE mac address of a medical device. It is part of the class MedicalDeviceTO but initially not instantiated. To store the IEEE mac address for a medical device create a new instance of this class and assign it to the MedicalDeviceTO object.

See Also:
MedicalDeviceTO.setIeeeAddress(IeeeAddressTO), MedicalDeviceTO.getIeeeAddress(), Serialized Form

Constructor Summary
IeeeAddressTO()
          Constructs a IeeeAddressTO object with initializing the IEEE mac address with '00.00.00.00.00.00.00.00'.
IeeeAddressTO(short[] value)
          Constructs a IeeeAddressTO object with specifying the IEEE mac address by the given short array of length 8.
 
Method Summary
 java.lang.Object clone()
          Returns a deep clone of this IeeeAddressTO object.
 java.lang.String formatIeeeAddress()
          Converts this IeeeAddressTO object to a String of the form: HH HH HH HH HH HH HH HH.
 short[] getIeeeAddress()
          Returns a short array of length 8 representing the IEEE mac address of the medical device to whose MedicalDeviceTO object this IEEE mac address data object is assign to.
 void setIeeeAddress(short[] value)
          Sets the IEEE mac address specified by the given short array.
 java.lang.String toString()
          Converts this IeeeAddressTO object to a String of the form: IeeeAddressTO (ieeeAddress:hh.hh.hh.hh.hh.hh.hh.hh).
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IeeeAddressTO

public IeeeAddressTO()
Constructs a IeeeAddressTO object with initializing the IEEE mac address with '00.00.00.00.00.00.00.00'.


IeeeAddressTO

public IeeeAddressTO(short[] value)
Constructs a IeeeAddressTO object with specifying the IEEE mac address by the given short array of length 8.

Parameters:
value - short array of length 8 representing the IEEE mac address
Method Detail

getIeeeAddress

public short[] getIeeeAddress()
Returns a short array of length 8 representing the IEEE mac address of the medical device to whose MedicalDeviceTO object this IEEE mac address data object is assign to.

Returns:
short array of length 8 representing the IEEE mac address

setIeeeAddress

public void setIeeeAddress(short[] value)
Sets the IEEE mac address specified by the given short array. The short array must have a length of 8.

Parameters:
value - short array of length 8 representing the new IEEE mac address

toString

public java.lang.String toString()
Converts this IeeeAddressTO object to a String of the form:
 IeeeAddressTO (ieeeAddress:hh.hh.hh.hh.hh.hh.hh.hh).
 
where:

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this IEEE mac address data object

formatIeeeAddress

public java.lang.String formatIeeeAddress()
Converts this IeeeAddressTO object to a String of the form:
 HH HH HH HH HH HH HH HH.
 
where:

Returns:
a string representation of this IEEE mac address data object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns a deep clone of this IeeeAddressTO object.

Overrides:
clone in class java.lang.Object
Returns:
a deep clone of this instance
Throws:
java.lang.CloneNotSupportedException