campus.syslog
Class CategoryOperator

java.lang.Object
  |
  +--solar.service.dan.GraphNode
        |
        +--solar.service.dan.Filter
              |
              +--solar.service.dan.Operator
                    |
                    +--campus.syslog.CategoryOperator
All Implemented Interfaces:
DanConstants, Identifiable

public class CategoryOperator
extends Operator

An operator which added category of building and publishes it.

Version:
$Id: CategoryOperator.java,v 1.2 2003/09/19 00:38:23 glchen Exp $
Author:
Yurong Xu

Field Summary
private  CatalogBuildingMapping mapping
           
 
Fields inherited from class solar.service.dan.GraphNode
_gid
 
Fields inherited from interface solar.service.dan.DanConstants
DAN_INPORT, DAN_OUTPORT
 
Constructor Summary
CategoryOperator()
           
 
Method Summary
 void handleEvent(Event evt)
          Convert aPname ->building -> category of building and public it.
 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 data specified in an data file.
static void main(java.lang.String[] args)
          Method used for test, not used when in 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

mapping

private CatalogBuildingMapping mapping
Constructor Detail

CategoryOperator

public CategoryOperator()
Method Detail

init

public void init(serp.util.Options opts)
          throws java.lang.Exception
Init the operator's data specified in an data file.

Overrides:
init in class GraphNode
java.lang.Exception

handleEvent

public void handleEvent(Event evt)
                 throws java.lang.Exception
Convert aPname ->building -> category of building and public it.

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 test, not used when in Operator mode.

java.lang.Exception