ist.palcom.services.proximity
Class NFCDeviceInfo

java.lang.Object
  extended by ist.palcom.services.proximity.NFCDeviceInfo

public class NFCDeviceInfo
extends java.lang.Object

NFCDeviceInfo holds information on wheter a particular device is/was in proximity. a string of timestamps is saved in XML-format for each time setTimestamp() is called This class can be extended to include more information on devices.


Method Summary
 java.lang.String getObjectID()
          Returns the objectID of this object.
 boolean getRecordingStatus()
          Tells wether recording is turned on or off for this object.
 java.lang.String getTimestamps()
          Returns an XML string with all timestamps for this object.
 boolean isInProximity()
          Tells wether this object is in proximity or not
 void setInProximity(boolean value)
           
 void setRecordingStatus(boolean status)
          Turns on or off the recording of timestamps for all objects.
 void setTimestamp(java.lang.String timestamp)
          Sets a new timestamp on this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTimestamps

public java.lang.String getTimestamps()
Returns an XML string with all timestamps for this object.

Returns:
A XML string containing all timestamps for this object

setTimestamp

public void setTimestamp(java.lang.String timestamp)
Sets a new timestamp on this object.

Parameters:
timestamp - containing a timestamp in arbitrary format.

setInProximity

public void setInProximity(boolean value)

isInProximity

public boolean isInProximity()
Tells wether this object is in proximity or not

Returns:
true or false depending on the proximity status of the object

getObjectID

public java.lang.String getObjectID()
Returns the objectID of this object.

Returns:
textstring cotatining the objectID of this object

setRecordingStatus

public void setRecordingStatus(boolean status)
Turns on or off the recording of timestamps for all objects.

Parameters:
status - true or false depending on wether to turn on or off recordning of all objects

getRecordingStatus

public boolean getRecordingStatus()
Tells wether recording is turned on or off for this object.

Returns:
true or false depending on wether recording i on or off