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
Constructors Constructor Description StandardNetChannelEndFactory()
StandardNetChannelEndFactory(Profile profile)
Creates a factory that creates links using a given profile rather than the default one.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetSharedChannelOutput
createAny2Net(NetChannelLocation loc)
Constructs aNetSharedChannelOutput
object.NetSharedChannelInput
createNet2Any()
Constructs aNetSharedChannelInput
object.NetSharedChannelInput
createNet2Any(String label)
Constructs aNetSharedChannelInput
which has a VCN assigned with the specified label.NetSharedChannelInput
createNet2Any(String label, ChannelDataStore buffer)
Constructs a bufferedNetSharedChannelInput
which has a VCN assigned with the specified label.NetSharedChannelInput
createNet2Any(ChannelDataStore buffer)
Constructs aNetSharedChannelInput
object.NetAltingChannelInput
createNet2One()
Constructs aNetAltingChannelInput
object.NetAltingChannelInput
createNet2One(String label)
Constructs aNetAltingChannelInput
which has a VCN assigned with the specified label.NetAltingChannelInput
createNet2One(String label, ChannelDataStore buffer)
Constructs a bufferedNetAltingChannelInput
which has a VCN assigned with the specified label.NetAltingChannelInput
createNet2One(ChannelDataStore buffer)
Constructs aNetAltingChannelInput
object.NetChannelOutput
createOne2Net(NetChannelLocation loc)
Constructs aNetChannelOutput
object.static StandardNetChannelEndFactory
getDefaultInstance()
-
-
-
Constructor Detail
-
StandardNetChannelEndFactory
public StandardNetChannelEndFactory()
-
StandardNetChannelEndFactory
public StandardNetChannelEndFactory(Profile profile)
Creates a factory that creates links using a given profile rather than the default one.
-
-
Method Detail
-
getDefaultInstance
public static StandardNetChannelEndFactory getDefaultInstance()
-
createNet2One
public NetAltingChannelInput createNet2One()
Description copied from interface:NetChannelEndFactory
Constructs a
NetAltingChannelInput
object.- Specified by:
createNet2One
in interfaceNetChannelEndFactory
- Returns:
- the constructed
NetAltingChannelInput
object. - See Also:
NetChannelEndFactory.createNet2One()
-
createNet2One
public NetAltingChannelInput createNet2One(String label)
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:
NetLabelledChannelEndFactory.createNet2One(String)
-
createNet2One
public NetAltingChannelInput createNet2One(ChannelDataStore buffer)
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:
NetBufferedChannelEndFactory.createNet2One(ChannelDataStore)
-
createNet2One
public NetAltingChannelInput createNet2One(String label, ChannelDataStore buffer)
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:
NetLabelledBufferedChannelEndFactory.createNet2One(String, ChannelDataStore)
-
createNet2Any
public NetSharedChannelInput createNet2Any()
Description copied from interface:NetChannelEndFactory
Constructs a
NetSharedChannelInput
object.- Specified by:
createNet2Any
in interfaceNetChannelEndFactory
- Returns:
- the constructed
NetSharedChannelInput
object. - See Also:
NetChannelEndFactory.createNet2Any()
-
createNet2Any
public NetSharedChannelInput createNet2Any(String label)
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:
NetLabelledChannelEndFactory.createNet2Any(String)
-
createNet2Any
public NetSharedChannelInput createNet2Any(ChannelDataStore buffer)
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:
NetBufferedChannelEndFactory.createNet2Any(ChannelDataStore)
-
createNet2Any
public NetSharedChannelInput createNet2Any(String label, ChannelDataStore buffer)
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:
NetLabelledBufferedChannelEndFactory.createNet2Any(String, ChannelDataStore)
-
createOne2Net
public NetChannelOutput createOne2Net(NetChannelLocation loc)
Description copied from interface:NetChannelEndFactory
Constructs a
NetChannelOutput
object.- Specified by:
createOne2Net
in interfaceNetChannelEndFactory
- Returns:
- the constructed
NetChannelOutput
object. - See Also:
NetChannelEndFactory.createOne2Net(NetChannelLocation)
-
createAny2Net
public NetSharedChannelOutput createAny2Net(NetChannelLocation loc)
Description copied from interface:NetChannelEndFactory
Constructs a
NetSharedChannelOutput
object.- Specified by:
createAny2Net
in interfaceNetChannelEndFactory
- Returns:
- the constructed
NetSharedChannelOutput
object. - See Also:
NetChannelEndFactory.createAny2Net(NetChannelLocation)
-
-