solar.service.dan
Class Source

java.lang.Object
  |
  +--solar.service.dan.GraphNode
        |
        +--solar.service.dan.Source
All Implemented Interfaces:
DanConstants, Identifiable
Direct Known Subclasses:
ClockSource, SnmpSource, SyslogSource, VersusSource

public abstract class Source
extends GraphNode

An abstract class for all Solar sources.

Version:
$Id: Source.java,v 1.1 2003/09/19 00:38:30 glchen Exp $
Author:
Guanling Chen

Field Summary
 
Fields inherited from class solar.service.dan.GraphNode
_gid
 
Fields inherited from interface solar.service.dan.DanConstants
DAN_INPORT, DAN_OUTPORT
 
Constructor Summary
Source()
           
 
Method Summary
 java.util.List getInputPorts()
          Return a list of input ports of this node.
 void handleEvent(Event evt)
          Handle the event being actively pushed/published to this operator.
abstract  void run()
          The execution body of this source.
 
Methods inherited from class solar.service.dan.GraphNode
getId, getOutputPorts, handleEvent, handleQuery, handleQuery, init, init, publish, publish, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Source

public Source()
Method Detail

run

public abstract void run()
                  throws java.lang.Exception
The execution body of this source.

java.lang.Exception

getInputPorts

public java.util.List getInputPorts()
Description copied from class: GraphNode
Return a list of input ports of this node.

Overrides:
getInputPorts 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