ist.palcom.simulated.mstone
Class DiabetesTest

java.lang.Object
  extended by ist.palcom.simulated.mstone.DiabetesTest
All Implemented Interfaces:
Persistent, Taggable, java.lang.Cloneable

public class DiabetesTest
extends java.lang.Object
implements Taggable

A simple DiabetesTest used with the MStone device contain one value; test, and is taggable


Constructor Summary
DiabetesTest()
           
DiabetesTest(java.lang.String test)
           
 
Method Summary
 java.lang.Object clone()
           
 int getid()
           
 java.lang.String getTest()
           
 byte[] persist()
          Called to persist an object.
 void resurrect(byte[] data)
          Called to resurrect a persistent object.
 void setid(int id)
          Handle object id, i.e. makes objects unique
 void setTest(java.lang.String test)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiabetesTest

public DiabetesTest()

DiabetesTest

public DiabetesTest(java.lang.String test)
Method Detail

getid

public int getid()
Specified by:
getid in interface Taggable

setid

public void setid(int id)
Description copied from interface: Taggable
Handle object id, i.e. makes objects unique

Specified by:
setid in interface Taggable

clone

public java.lang.Object clone()
Specified by:
clone in interface Taggable
Overrides:
clone in class java.lang.Object

getTest

public java.lang.String getTest()

setTest

public void setTest(java.lang.String test)

persist

public byte[] persist()
               throws java.io.IOException
Description copied from interface: Persistent
Called to persist an object.

Specified by:
persist in interface Persistent
Returns:
the seralized byte array
Throws:
java.io.IOException

resurrect

public void resurrect(byte[] data)
               throws java.io.IOException
Description copied from interface: Persistent
Called to resurrect a persistent object.

Specified by:
resurrect in interface Persistent
Parameters:
data - the seralized byte array
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object