Package org.jcsp.lang

Class StandardChannelFactory

java.lang.Object
org.jcsp.lang.StandardChannelFactory
All Implemented Interfaces:
BufferedChannelArrayFactory, BufferedChannelFactory, ChannelArrayFactory, ChannelFactory

public class StandardChannelFactory extends Object implements ChannelFactory, ChannelArrayFactory, BufferedChannelFactory, BufferedChannelArrayFactory

This class acts as a Factory for creating channels. It can create non-buffered and buffered channels and also arrays of non-buffered and buffered channels.

The Channel objects created by this Factory are formed of separate objects for the read and write ends. Therefore the ChannelInput object cannot be cast into the ChannelOutput object and vice-versa.

The current implementation uses an instance of the RiskyChannelFactory to construct the underlying raw channels.

Author:
Quickstone Technologies Limited