|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jSyncManager.JSerial.TestSuite.DataObject
A class to represent a piece of data to be passed between hosts. This class is designed to be a demonstration of one of the potential uses for the SerialInterface class. In this demonstration, an object of the Data Object class is passed back and forth between two or more hosts, with each host adding itself to the pass list with a date/timestame, and by incrementing a counter.
Constructor Summary | |
DataObject(int passLimit)
The DataObject constructor. |
Method Summary | |
int |
getCounter()
This method returns the current value of the counter. |
StampObject |
getLastTimeStamp()
A method for retrieving the last Date/Timestamp object. |
int |
getPassLimit()
This method returns the limit to the number of times this object should be passed. |
void |
updateObject(java.lang.String hostName)
A method for preparing this object for sending to the next host. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataObject(int passLimit)
passLimit
- the maximum number of times to pass this object between hosts.Method Detail |
public int getCounter()
public StampObject getLastTimeStamp()
public int getPassLimit()
public void updateObject(java.lang.String hostName) throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
- thrown if we've gone beyond the maximum pass limit.
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |