aboutsummaryrefslogtreecommitdiffstats
path: root/Java/com/phidgets/event
diff options
context:
space:
mode:
Diffstat (limited to 'Java/com/phidgets/event')
-rw-r--r--Java/com/phidgets/event/TagGainEvent.java18
-rw-r--r--Java/com/phidgets/event/TagLossEvent.java18
2 files changed, 34 insertions, 2 deletions
diff --git a/Java/com/phidgets/event/TagGainEvent.java b/Java/com/phidgets/event/TagGainEvent.java
index 6cb7a74..8639ae4 100644
--- a/Java/com/phidgets/event/TagGainEvent.java
+++ b/Java/com/phidgets/event/TagGainEvent.java
@@ -15,6 +15,7 @@ public class TagGainEvent
{
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 TagGainEvent
this.source = source;
this.value = value;
}
+ public TagGainEvent(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 TagGainEvent
}
/**
- * Returns the gained tag. The tag is a 10 digit hex number represented as a string.
+ * Returns the gained tag.
*
* @return the gained tag
*/
@@ -48,6 +55,15 @@ public class TagGainEvent
}
/**
+ * 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
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
tr> 2011-01-23timer.c: skip intermediate timer intervalsmzuther2-16/+46 2011-01-05fix for a bug introduced in the DE-LD021 drivermichael1-3/+3 2011-01-04indentationmichael2-3/+3 2011-01-04support for Sure Electronics DE-LD021 by Natanael Olaizmichael1-10/+8 2011-01-02driver for EFN LED modules by Tilman Glötznermichael9-21/+469 2010-11-28commented, corrected and beautified both timer and timer group codemzuther11-197/+511 2010-11-27finished commenting the timer codemzuther2-46/+138 2010-11-20started commenting the timer codemzuther5-52/+170 2010-11-19Added brightness support for GLCD2USBharbaum5-28/+8014