solar.test
Class MutateOperator

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

public class MutateOperator
extends Operator

This operator mutates the received events by adding random attributes.

Version:
$Id: MutateOperator.java,v 1.6 2003/09/19 00:38:31 glchen Exp $
Author:
Guanling Chen

Field Summary
(package private)  java.util.Random _ran
           
(package private)  java.lang.String[] array
           
 
Fields inherited from class solar.service.dan.GraphNode
_gid
 
Fields inherited from interface solar.service.dan.DanConstants
DAN_INPORT, DAN_OUTPORT
 
Constructor Summary
MutateOperator()
           
 
Method Summary
 void handleEvent(Event evt)
          Handle the event being actively pushed/published to this operator.
 java.lang.Object handleQuery(Request query)
          Handle the query being actively pulled by downstream operators.
 void init(serp.util.Options opts)
          Customized initialization derived from graph spec.
 
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

array

java.lang.String[] array

_ran

java.util.Random _ran
Constructor Detail

MutateOperator

public MutateOperator()
Method Detail

init

public void init(serp.util.Options opts)
Description copied from class: GraphNode
Customized initialization derived from graph spec.

Overrides:
init in class GraphNode

handleEvent

public void handleEvent(Event evt)
                 throws java.lang.Exception
Description copied from class: GraphNode
Handle the event being actively pushed/published to this operator.

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