solar.service.fap
Interface DataSource

All Known Subinterfaces:
Filter
All Known Implementing Classes:
NodeHandler

public interface DataSource

A data source is the starting point of a pipe.

Version:
$Id: DataSource.java,v 1.7 2003/07/30 19:44:07 glchen Exp $
Author:
Guanling Chen

Method Summary
 void attachOutputPipe(Pipe pipe, OutputPort outport)
          Attach an output pipe to this data source at a specific port.
 Pipe[] getOutputPipes()
          Return all the output pipes in an array.
 OutputPort[] getOutputPorts()
          Return all the output ports in an array.
 java.lang.Object pullData(java.lang.Object query, OutputPort outport)
          Pull data from this data source at a specific port.
 

Method Detail

attachOutputPipe

public void attachOutputPipe(Pipe pipe,
                             OutputPort outport)
                      throws FapException
Attach an output pipe to this data source at a specific port.

FapException

getOutputPipes

public Pipe[] getOutputPipes()
Return all the output pipes in an array.


getOutputPorts

public OutputPort[] getOutputPorts()
Return all the output ports in an array.


pullData

public java.lang.Object pullData(java.lang.Object query,
                                 OutputPort outport)
                          throws FapException
Pull data from this data source at a specific port.

FapException