|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.services.proximity.NFCModule
public class NFCModule
NFCModule is a virtual NFC-device which implement the same interface as the ProximityService. The function updateNFCdata() needs to be changed depending on the NFC hardware being used.
| Constructor Summary | |
|---|---|
NFCModule()
|
|
| Method Summary | |
|---|---|
java.lang.String |
allProximityHistory()
This method returns a list of all objects currently in proximity. |
java.lang.String |
isCloseToObject(java.lang.String objectID)
This method tells wether a specified object is in proximity or not. |
java.lang.String |
listCloseObjects()
This method returns a list of all objects currently in proximity. |
java.lang.String |
objectProximityHistory(java.lang.String objectID)
This method returns a list of all objects currently in proximity. |
void |
recordHistory(boolean status)
Tells NFCModule wether to record timestamps on all objects or not. |
void |
recordObjectHistory(java.lang.String objectID,
boolean status)
Tells NFCModule wether to record timestamps on the object specified or not. |
void |
updateNFCdata()
This function is responsible for updating the NFCDeviceInfo array with real data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NFCModule()
| Method Detail |
|---|
public java.lang.String isCloseToObject(java.lang.String objectID)
objectID - textstring identifying the object of interest
public java.lang.String listCloseObjects()
<objects_in_proximity>
<object id"objectID" inproximity="true | false" recstatus="true|false">
...
</objects_in_proximity>
One object element is listed for each object currently in proximity. objectID
is preferably the same as the deviceID of the Palcom or non Palcom nodes.
public java.lang.String allProximityHistory()
<object_history>
<object id"objectID" inproximity="true | false" recstatus="true|false"/>
<timestamp>time-and-date-text-string</timestamp>
...
</object>
...
</object_history>
There is one object element for each object that has been in proximity and one
timestamp element for each time one of the objects was in proximity.
public java.lang.String objectProximityHistory(java.lang.String objectID)
<object_history/>
<object id"objectID" inproximity="true | false" recstatus="true|false"/>
<timestamp>time-and-date-text-string</timestamp/>
...
</object>
</object_history/>
Same as allProximityHistory() but with only one object element.
objectID - textstring identifying the object of interest
public void recordObjectHistory(java.lang.String objectID,
boolean status)
objectID - textstring identifying the object of intereststatus - textstring specifying wether to record or not. Can be
"True" or "False". The method treats the parameter as case insensitive.public void recordHistory(boolean status)
status - textstring specifying wether to record or not. Can be
"True" or "False". The method treats the parameter as case insensitive.public void updateNFCdata()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||