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:

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
           
 
Fields inherited from class solar.service.dan.GraphNode
_gid
 
Fields inherited from interface solar.service.dan.DanConstants
DAN_INPORT, DAN_OUTPORT
 
Constructor Summary
VersusTransformer()
           
 
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 solar.service.dan.GraphNode
getId, getInputPorts, getOutputPorts, handleEvent, handleQuery, init, publish, publish, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_floorplan

private java.util.Hashtable _floorplan

_badges

private java.util.Hashtable _badges
Constructor Detail

VersusTransformer

public VersusTransformer()
Method Detail

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