|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fosstrak.hal.Observation
public class Observation
The Observation class provides a set of methods and fields
that represent a result of an identification process. Every
Observation object is uniquely defined by its timestamp, which
specifies when a certain observation has been made.
| Field Summary | |
|---|---|
boolean |
successful
Flag the indicates whether the identify operation has been performed successfully or not. |
| Constructor Summary | |
|---|---|
Observation()
creates an empty Observation. |
|
Observation(java.lang.String halName,
java.lang.String readPointName,
long timestamp,
java.lang.String[] ids,
TagDescriptor[] tagDescriptors,
boolean successful)
creates an Observation with the given parameters. |
|
| Method Summary | |
|---|---|
boolean |
containsId(java.lang.String id)
Checks if the observation contains a specific ID. |
java.lang.String |
getHalName()
Returns the name of the HAL. |
java.lang.String[] |
getIds()
Gets the identified tags. |
java.lang.String |
getReadPointName()
Gets the name of the read point involved in the identification. |
boolean |
getSuccessful()
gets the successful flag. |
TagDescriptor[] |
getTagDescriptors()
Gets the tag descriptor of the detected tags. |
long |
getTimestamp()
Gets the timestamp. |
void |
setHalName(java.lang.String halName)
Sets the HAL controller instance name. |
void |
setIds(java.lang.String[] ids)
Sets the IDs of the identified tags. |
void |
setReadPointName(java.lang.String readPointName)
Sets the name of the read point involved in the identification. |
void |
setSuccessful(boolean successful)
sets the successful flag. |
void |
setTagDescriptors(TagDescriptor[] tagDescriptors)
Sets The tag descriptors of the detected tags. |
void |
setTimestamp(long timestamp)
Sets The timestamp. |
java.lang.String |
toString()
Returns a String containing all the observation information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean successful
| Constructor Detail |
|---|
public Observation()
public Observation(java.lang.String halName,
java.lang.String readPointName,
long timestamp,
java.lang.String[] ids,
TagDescriptor[] tagDescriptors,
boolean successful)
| Method Detail |
|---|
public java.lang.String getHalName()
public void setHalName(java.lang.String halName)
halName - the HAL controller instance name to setpublic java.lang.String getReadPointName()
public void setReadPointName(java.lang.String readPointName)
readPointName - The name of read point to setpublic long getTimestamp()
public void setTimestamp(long timestamp)
timestamp - The timestamppublic java.lang.String[] getIds()
public void setIds(java.lang.String[] ids)
ids - the tag IDspublic TagDescriptor[] getTagDescriptors()
public void setTagDescriptors(TagDescriptor[] tagDescriptors)
tagDescriptors - the tag descriptord of the detected tagspublic boolean getSuccessful()
public void setSuccessful(boolean successful)
public boolean containsId(java.lang.String id)
id - the
true it the ID has been found, false
otherwisepublic java.lang.String toString()
String containing all the observation information.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||