synapsi.data
Class DataClient


java.lang.Object

  |

  +--synapsi.data.DataInfo

        |

        +--synapsi.data.DataClient


public class DataClient
extends DataInfo

Class containg the client information

See Also:
Serialized Form

Constructor Summary
protected DataClient(java.lang.String ip)
          Construct the client object with specified IP
 
Method Summary
 DataVersion getDataVersion()
          Get clients DataVersion object
 DataGroup getGroup()
          Get the dataGroup object where this client belongs to.
 java.lang.String getId()
          Get the client's Unique id(=IP) string
 java.lang.String getIp()
          Get client's IP(=unique ID)
 boolean getOnLineStatus()
          Get the client's status.
 void printData()
          Print method for test purposes mainly.
protected  void setGroup(DataGroup data)
          Makes this client object part of one DataGroup object.
protected  void setOnLineStatus(boolean b)
           
protected  void setVersion(DataVersion data)
          Updates clients DataVersion object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataClient


protected DataClient(java.lang.String ip)
Construct the client object with specified IP
Parameters:
ip - The IP-address for this client
Method Detail

setGroup


protected void setGroup(DataGroup data)
Makes this client object part of one DataGroup object. Method removes this client from it's old group if such exists
Parameters:
data - Group this is client is about to join.

getGroup


public DataGroup getGroup()
Get the dataGroup object where this client belongs to.
Returns:
the Group that this client belongs to

getId


public java.lang.String getId()
Get the client's Unique id(=IP) string
Returns:
the unique id(=IP) string

getIp


public java.lang.String getIp()
Get client's IP(=unique ID)

getOnLineStatus


public boolean getOnLineStatus()
Get the client's status.
Returns:
true indicates online

setOnLineStatus


protected void setOnLineStatus(boolean b)

getDataVersion


public DataVersion getDataVersion()
Get clients DataVersion object
Returns:
clients current DataVersion

setVersion


protected void setVersion(DataVersion data)
Updates clients DataVersion object
Parameters:
data - Version this client is about to have

printData


public void printData()
Print method for test purposes mainly.