Package org.jcsp.net
Class StandardNetChannelEndFactory
java.lang.Object
org.jcsp.net.StandardNetChannelEndFactory
- All Implemented Interfaces:
NetBufferedChannelEndFactory
,NetChannelEndFactory
,NetLabelledBufferedChannelEndFactory
,NetLabelledChannelEndFactory
- Direct Known Subclasses:
UnacknowledgedNetChannelEndFactory
public class StandardNetChannelEndFactory
extends Object
implements NetChannelEndFactory, NetLabelledChannelEndFactory, NetBufferedChannelEndFactory, NetLabelledBufferedChannelEndFactory
A standard implementation of the JCSP.NET
Networked channel factory interaces.
- Author:
- Quickstone Technologies Limited
-
Constructor Summary
ConstructorsConstructorDescriptionStandardNetChannelEndFactory
(Profile profile) Creates a factory that creates links using a given profile rather than the default one. -
Method Summary
Modifier and TypeMethodDescriptionConstructs aNetSharedChannelOutput
object.Constructs aNetSharedChannelInput
object.createNet2Any
(String label) Constructs aNetSharedChannelInput
which has a VCN assigned with the specified label.createNet2Any
(String label, ChannelDataStore buffer) Constructs a bufferedNetSharedChannelInput
which has a VCN assigned with the specified label.createNet2Any
(ChannelDataStore buffer) Constructs aNetSharedChannelInput
object.Constructs aNetAltingChannelInput
object.createNet2One
(String label) Constructs aNetAltingChannelInput
which has a VCN assigned with the specified label.createNet2One
(String label, ChannelDataStore buffer) Constructs a bufferedNetAltingChannelInput
which has a VCN assigned with the specified label.createNet2One
(ChannelDataStore buffer) Constructs aNetAltingChannelInput
object.Constructs aNetChannelOutput
object.static StandardNetChannelEndFactory
-
Constructor Details
-
StandardNetChannelEndFactory
public StandardNetChannelEndFactory() -
StandardNetChannelEndFactory
Creates a factory that creates links using a given profile rather than the default one.
-
-
Method Details
-
getDefaultInstance
-
createNet2One
Description copied from interface:NetChannelEndFactory
Constructs a
NetAltingChannelInput
object.- Specified by:
createNet2One
in interfaceNetChannelEndFactory
- Returns:
- the constructed
NetAltingChannelInput
object. - See Also:
-
createNet2One
Description copied from interface:NetLabelledChannelEndFactory
Constructs aNetAltingChannelInput
which has a VCN assigned with the specified label.- Specified by:
createNet2One
in interfaceNetLabelledChannelEndFactory
- Parameters:
label
- the label to apply to the channel's VCN.- Returns:
- the constructed
NetAltingChannelInput
object. - See Also:
-
createNet2One
Description copied from interface:NetBufferedChannelEndFactory
Constructs aNetAltingChannelInput
object.- Specified by:
createNet2One
in interfaceNetBufferedChannelEndFactory
- Parameters:
buffer
- theChannelDataStore
to use as a buffer.- Returns:
- the constructed
NetAltingChannelInput
object. - See Also:
-
createNet2One
Description copied from interface:NetLabelledBufferedChannelEndFactory
Constructs a bufferedNetAltingChannelInput
which has a VCN assigned with the specified label.- Specified by:
createNet2One
in interfaceNetLabelledBufferedChannelEndFactory
- Parameters:
label
- the label to apply to the channel's VCN.buffer
- theChannelDataStore
to use.- Returns:
- the constructed
NetAltingChannelInput
object. - See Also:
-
createNet2Any
Description copied from interface:NetChannelEndFactory
Constructs a
NetSharedChannelInput
object.- Specified by:
createNet2Any
in interfaceNetChannelEndFactory
- Returns:
- the constructed
NetSharedChannelInput
object. - See Also:
-
createNet2Any
Description copied from interface:NetLabelledChannelEndFactory
Constructs aNetSharedChannelInput
which has a VCN assigned with the specified label.- Specified by:
createNet2Any
in interfaceNetLabelledChannelEndFactory
- Parameters:
label
- the label to apply to the channel's VCN.- Returns:
- the constructed
NetSharedChannelInput
object. - See Also:
-
createNet2Any
Description copied from interface:NetBufferedChannelEndFactory
Constructs aNetSharedChannelInput
object.- Specified by:
createNet2Any
in interfaceNetBufferedChannelEndFactory
- Parameters:
buffer
- theChannelDataStore
to use as a buffer.- Returns:
- the constructed
NetSharedChannelInput
object. - See Also:
-
createNet2Any
Description copied from interface:NetLabelledBufferedChannelEndFactory
Constructs a bufferedNetSharedChannelInput
which has a VCN assigned with the specified label.- Specified by:
createNet2Any
in interfaceNetLabelledBufferedChannelEndFactory
- Parameters:
label
- the label to apply to the channel's VCN.buffer
- theChannelDataStore
to use.- Returns:
- the constructed
NetSharedChannelInput
object. - See Also:
-
createOne2Net
Description copied from interface:NetChannelEndFactory
Constructs a
NetChannelOutput
object.- Specified by:
createOne2Net
in interfaceNetChannelEndFactory
- Returns:
- the constructed
NetChannelOutput
object. - See Also:
-
createAny2Net
Description copied from interface:NetChannelEndFactory
Constructs a
NetSharedChannelOutput
object.- Specified by:
createAny2Net
in interfaceNetChannelEndFactory
- Returns:
- the constructed
NetSharedChannelOutput
object. - See Also:
-