Package org.jcsp.net
Class UnacknowledgedNetChannelEndFactory
- java.lang.Object
-
- org.jcsp.net.StandardNetChannelEndFactory
-
- 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.
-
-
Constructor Summary
Constructors Constructor Description UnacknowledgedNetChannelEndFactory()Creates a new factory object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetSharedChannelOutputcreateAny2Net(NetChannelLocation loc)Creates an unacknowledged output channel end suitable for use by multiple writers.NetChannelOutputcreateOne2Net(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
-
-
-
-
Method Detail
-
createOne2Net
public NetChannelOutput createOne2Net(NetChannelLocation loc)
Creates an unacknowledged output channel end suitable for use by a single writer.- Specified by:
createOne2Netin interfaceNetChannelEndFactory- Overrides:
createOne2Netin classStandardNetChannelEndFactory- Parameters:
loc- address of the input channel end to connect to.- Returns:
- the constructed
NetChannelOutputobject. - 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:
createAny2Netin interfaceNetChannelEndFactory- Overrides:
createAny2Netin classStandardNetChannelEndFactory- Parameters:
loc- address of the input channel end to connect to.- Returns:
- the constructed
NetSharedChannelOutputobject. - See Also:
NetChannelEndFactory.createAny2Net(NetChannelLocation)
-
-