Next: Source
Up: Role Type
Previous: Reader
Sink
Semantics
The role type Sink corresponds to the requirement that the associated player in a Pipe connection be a stream of data that gets appended to the end of a sequential file or that gets used as input to a filter component. The player type WriteNext in UniCon captures the semantics of the stream being written to a sequential file. In this case, the stream is actually written as a series of data blocks whose format is specified in the RecordFormat property in the SeqFile component. The player type StreamIn in UniCon captures the semantics of the data stream being used as input by a Filter component. The responsibility of the WriteNext player is to act as a stream of data being written to the end of a sequential file in a Pipe connection. The responsibility of the StreamIn player is to act as a stream of data being extracted from a pipe in a Pipe connection.
In a Pipe connection there must be exactly one stream of data being extracted from the pipe or written to the file (i.e., one Sink role/player association).
Connector Types In
A role of type Sink can legally be defined in a connector of the following type:
Player Type
Associations
A role of type Sink can legally be associated with the following player types in a Pipe connection:
Property Defaults
The following are the default values of the properties for the Sink role:
- General.StreamIn,
Filter.StreamIn,
General.WriteNext,
SeqFile.WriteNext
Next: Source
Up: Role Type
Previous: Reader
Comments?
Mail the current maintainer of this page.
Author:
Gregory Zelesnik
Last Modified: May 12, 1996