aboutsummaryrefslogtreecommitdiffstats
path: root/Java/com/phidgets/event/TagLossEvent.java
diff options
context:
space:
mode:
Diffstat (limited to 'Java/com/phidgets/event/TagLossEvent.java')
-rw-r--r--Java/com/phidgets/event/TagLossEvent.java18
1 files changed, 17 insertions, 1 deletions
diff --git a/Java/com/phidgets/event/TagLossEvent.java b/Java/com/phidgets/event/TagLossEvent.java
index ccca4fe..8dcd723 100644
--- a/Java/com/phidgets/event/TagLossEvent.java
+++ b/Java/com/phidgets/event/TagLossEvent.java
@@ -15,6 +15,7 @@ public class TagLossEvent
{
Phidget source;
String value;
+ int protocol;
/**
* Class constructor. This is called internally by the phidget library when creating this event.
@@ -26,6 +27,12 @@ public class TagLossEvent
this.source = source;
this.value = value;
}
+ public TagLossEvent(Phidget source, String value, int protocol)
+ {
+ this.source = source;
+ this.value = value;
+ this.protocol = protocol;
+ }
/**
* Returns the source Phidget of this event. This is a reference to the Phidget object from which this
@@ -39,7 +46,7 @@ public class TagLossEvent
}
/**
- * Returns the Tag that was lost. This is a 10 digit hex number as a string.
+ * Returns the Tag that was lost.
*
* @return the lost tag
*/
@@ -48,6 +55,15 @@ public class TagLossEvent
}
/**
+ * Returns the protocol of the Tag that was lost.
+ *
+ * @return the lost tag protocol
+ */
+ public int getProtocol() {
+ return protocol;
+ }
+
+ /**
* Returns a string containing information about the event.
*
* @return an informative event string