CSP for Java
(JCSP) 1.1-rc4

org.jcsp.net
Class UnacknowledgedNetChannelEndFactory

java.lang.Object
  extended by org.jcsp.net.StandardNetChannelEndFactory
      extended by org.jcsp.net.UnacknowledgedNetChannelEndFactory
All Implemented Interfaces:
NetBufferedChannelEndFactory, NetChannelEndFactory, NetLabelledBufferedChannelEndFactory, NetLabelledChannelEndFactory

public class UnacknowledgedNetChannelEndFactory
extends StandardNetChannelEndFactory

Extends the standard network channel factory to give unacknowledged channel output ends. Use these with caution as the lack of synchronization between sender and receiver can lead to potential problems.

Author:
Quickstone Technologies Limited

Constructor Summary
UnacknowledgedNetChannelEndFactory()
          Creates a new factory object.
 
Method Summary
 NetSharedChannelOutput createAny2Net(NetChannelLocation loc)
          Creates an unacknowledged output channel end suitable for use by multiple writers.
 NetChannelOutput createOne2Net(NetChannelLocation loc)
          Creates an unacknowledged output channel end suitable for use by a single writer.
 
Methods inherited from class org.jcsp.net.StandardNetChannelEndFactory
createNet2Any, createNet2Any, createNet2Any, createNet2Any, createNet2One, createNet2One, createNet2One, createNet2One, getDefaultInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnacknowledgedNetChannelEndFactory

public UnacknowledgedNetChannelEndFactory()
Creates a new factory object.

Method Detail

createOne2Net

public NetChannelOutput createOne2Net(NetChannelLocation loc)
Creates an unacknowledged output channel end suitable for use by a single writer.

Specified by:
createOne2Net in interface NetChannelEndFactory
Overrides:
createOne2Net in class StandardNetChannelEndFactory
Parameters:
loc - address of the input channel end to connect to.
Returns:
the constructed NetChannelOutput object.
See Also:
NetChannelEndFactory.createOne2Net(NetChannelLocation)

createAny2Net

public NetSharedChannelOutput createAny2Net(NetChannelLocation loc)
Creates an unacknowledged output channel end suitable for use by multiple writers.

Specified by:
createAny2Net in interface NetChannelEndFactory
Overrides:
createAny2Net in class StandardNetChannelEndFactory
Parameters:
loc - address of the input channel end to connect to.
Returns:
the constructed NetSharedChannelOutput object.
See Also:
NetChannelEndFactory.createAny2Net(NetChannelLocation)

CSP for Java
(JCSP) 1.1-rc4

Submit a bug or feature to jcsp-team@kent.ac.uk
Version 1.1-rc4 of the JCSP API Specification (Copyright 1997-2008 P.D.Austin and P.H.Welch - All Rights Reserved)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.