versus
Class VersusTransformer
java.lang.Object
|
+--solar.service.dan.GraphNode
|
+--solar.service.dan.Filter
|
+--solar.service.dan.Operator
|
+--versus.VersusTransformer
- All Implemented Interfaces:
- DanConstants, Identifiable
- public class VersusTransformer
- extends Operator
A transformer converts badge and sensor ID numbers in Versus events
into symbolic values.
The published events contains following fields:
- name (object name)
- zone (current location if it is an IR event, or
radio\ if it is RF event.)
- button (whether button is pressed)
- battery (whether battery is still good)
- motion (whether the badge is moving)
- tcount (a rotating event counter for a badge)
- timestamp (when the event is received)
- Version:
- $Id: VersusTransformer.java,v 1.4 2003/09/19 00:38:32 glchen Exp $
- Author:
- Guanling Chen
Field Summary |
private java.util.Hashtable |
_badges
|
private java.util.Hashtable |
_floorplan
|
Method Summary |
void |
handleEvent(Event evt)
Convert tag and sensor ID numbers to symbolic values. |
java.lang.Object |
handleQuery(Request query)
Handle the query being actively pulled by downstream operators. |
void |
init(serp.util.Options opts)
Init the operator's floorplan and badge mapping tables
specified in an XML file. |
static void |
main(java.lang.String[] args)
Method used for standalone test, not used when in Solar
Operator mode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_floorplan
private java.util.Hashtable _floorplan
_badges
private java.util.Hashtable _badges
VersusTransformer
public VersusTransformer()
init
public void init(serp.util.Options opts)
throws java.lang.Exception
- Init the operator's floorplan and badge mapping tables
specified in an XML file.
- Overrides:
init
in class GraphNode
java.lang.Exception
handleEvent
public void handleEvent(Event evt)
throws java.lang.Exception
- Convert tag and sensor ID numbers to symbolic values.
- Specified by:
handleEvent
in class GraphNode
java.lang.Exception
handleQuery
public java.lang.Object handleQuery(Request query)
throws java.lang.Exception
- Description copied from class:
GraphNode
- Handle the query being actively pulled by downstream operators.
- Specified by:
handleQuery
in class GraphNode
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Method used for standalone test, not used when in Solar
Operator mode.
java.lang.Exception