|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.service.fap.Pipe
A pipe consists of a pair of channels: A writable sink channel and a readable source channel. A pipe is unidirectional.
Field Summary | |
protected Id |
_pid
|
protected SinkChannel |
_sink
|
protected SourceChannel |
_source
|
protected int |
_type
|
Constructor Summary | |
Pipe(Id pid,
int type)
Constructs a pipe with specified ID and pull/push type. |
|
Pipe(Id pid,
int type,
SourceChannel source,
SinkChannel sink)
Constructs a pipe with additional pair of source/sink channels. |
Method Summary | |
void |
attachSinkChannel(SinkChannel sink)
Attach a sink channel to this pipe. |
void |
attachSourceChannel(SourceChannel source)
Attach the source channel to this pipe. |
Id |
getId()
Return the ID of this object. |
java.lang.String |
getInputPort()
Return the name of the input port for this pipe. |
java.lang.String |
getOutputPort()
Return the name of the output port for this pipe. |
SinkChannel |
getSinkChannel()
Return the sink channel of this pipe. |
SourceChannel |
getSourceChannel()
Return the source channel of this pipe. |
int |
getType()
Return whether this is a push or pull pipe. |
abstract java.lang.Object |
pullData(java.lang.Object query)
Pull data from this pipe. |
abstract void |
pushData(java.lang.Object data)
Push data through this pipe. |
void |
setId(Id id)
Set the ID of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Id _pid
protected int _type
protected SourceChannel _source
protected SinkChannel _sink
Constructor Detail |
public Pipe(Id pid, int type)
public Pipe(Id pid, int type, SourceChannel source, SinkChannel sink)
Method Detail |
public void setId(Id id)
Identifiable
setId
in interface Identifiable
public Id getId()
Identifiable
getId
in interface Identifiable
public int getType()
public void attachSourceChannel(SourceChannel source) throws FapException
FapException
public SourceChannel getSourceChannel()
public java.lang.String getInputPort() throws FapException
FapException
public void attachSinkChannel(SinkChannel sink) throws FapException
FapException
public SinkChannel getSinkChannel()
public java.lang.String getOutputPort() throws FapException
FapException
public abstract void pushData(java.lang.Object data) throws FapException
FapException
public abstract java.lang.Object pullData(java.lang.Object query) throws FapException
FapException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |