solar.service.fap
Class LocalSourceChannel

java.lang.Object
  |
  +--solar.service.fap.LocalSourceChannel
All Implemented Interfaces:
SourceChannel

public class LocalSourceChannel
extends java.lang.Object
implements SourceChannel

The data source of this channel is on the local site.

Version:
$Id: LocalSourceChannel.java,v 1.5 2003/07/30 19:44:08 glchen Exp $
Author:
Guanling Chen

Field Summary
protected  OutputPort _outport
           
protected  DataSource _source
           
 
Constructor Summary
LocalSourceChannel()
          Constructs an empty source channel.
LocalSourceChannel(DataSource source, OutputPort outport)
          Constructs a source channel wit specified data source attached.
 
Method Summary
 void attachDataSource(DataSource source, OutputPort outport)
          Attach a data source to this pipe.
 DataSource getDataSource()
          Return the data source of this pipe.
 OutputPort getOutputPort()
          Return the output port of connected data source.
 boolean isRemote()
          Return whether the source is on remote site.
 java.lang.Object pullData(java.lang.Object query)
          Pull the data from upstream filter (data source).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_source

protected DataSource _source

_outport

protected OutputPort _outport
Constructor Detail

LocalSourceChannel

public LocalSourceChannel()
Constructs an empty source channel.


LocalSourceChannel

public LocalSourceChannel(DataSource source,
                          OutputPort outport)
Constructs a source channel wit specified data source attached.

Method Detail

isRemote

public boolean isRemote()
Description copied from interface: SourceChannel
Return whether the source is on remote site.

Specified by:
isRemote in interface SourceChannel

attachDataSource

public void attachDataSource(DataSource source,
                             OutputPort outport)
                      throws FapException
Description copied from interface: SourceChannel
Attach a data source to this pipe.

Specified by:
attachDataSource in interface SourceChannel
FapException

getDataSource

public DataSource getDataSource()
                         throws FapException
Description copied from interface: SourceChannel
Return the data source of this pipe.

Specified by:
getDataSource in interface SourceChannel
FapException

getOutputPort

public OutputPort getOutputPort()
                         throws FapException
Description copied from interface: SourceChannel
Return the output port of connected data source.

Specified by:
getOutputPort in interface SourceChannel
FapException

pullData

public java.lang.Object pullData(java.lang.Object query)
                          throws FapException
Description copied from interface: SourceChannel
Pull the data from upstream filter (data source).

Specified by:
pullData in interface SourceChannel
FapException