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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static StandardNetChannelEndFactoryprivate final Profile -
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 aNetSharedChannelOutputobject.Constructs aNetSharedChannelInputobject.createNet2Any(String label) Constructs aNetSharedChannelInputwhich has a VCN assigned with the specified label.createNet2Any(String label, ChannelDataStore buffer) Constructs a bufferedNetSharedChannelInputwhich has a VCN assigned with the specified label.createNet2Any(ChannelDataStore buffer) Constructs aNetSharedChannelInputobject.Constructs aNetAltingChannelInputobject.createNet2One(String label) Constructs aNetAltingChannelInputwhich has a VCN assigned with the specified label.createNet2One(String label, ChannelDataStore buffer) Constructs a bufferedNetAltingChannelInputwhich has a VCN assigned with the specified label.createNet2One(ChannelDataStore buffer) Constructs aNetAltingChannelInputobject.Constructs aNetChannelOutputobject.static StandardNetChannelEndFactory
-
Field Details
-
instance
-
linkProfile
-
-
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:NetChannelEndFactoryConstructs a
NetAltingChannelInputobject.- Specified by:
createNet2Onein interfaceNetChannelEndFactory- Returns:
- the constructed
NetAltingChannelInputobject. - See Also:
-
createNet2One
Description copied from interface:NetLabelledChannelEndFactoryConstructs aNetAltingChannelInputwhich has a VCN assigned with the specified label.- Specified by:
createNet2Onein interfaceNetLabelledChannelEndFactory- Parameters:
label- the label to apply to the channel's VCN.- Returns:
- the constructed
NetAltingChannelInputobject. - See Also:
-
createNet2One
Description copied from interface:NetBufferedChannelEndFactoryConstructs aNetAltingChannelInputobject.- Specified by:
createNet2Onein interfaceNetBufferedChannelEndFactory- Parameters:
buffer- theChannelDataStoreto use as a buffer.- Returns:
- the constructed
NetAltingChannelInputobject. - See Also:
-
createNet2One
Description copied from interface:NetLabelledBufferedChannelEndFactoryConstructs a bufferedNetAltingChannelInputwhich has a VCN assigned with the specified label.- Specified by:
createNet2Onein interfaceNetLabelledBufferedChannelEndFactory- Parameters:
label- the label to apply to the channel's VCN.buffer- theChannelDataStoreto use.- Returns:
- the constructed
NetAltingChannelInputobject. - See Also:
-
createNet2Any
Description copied from interface:NetChannelEndFactoryConstructs a
NetSharedChannelInputobject.- Specified by:
createNet2Anyin interfaceNetChannelEndFactory- Returns:
- the constructed
NetSharedChannelInputobject. - See Also:
-
createNet2Any
Description copied from interface:NetLabelledChannelEndFactoryConstructs aNetSharedChannelInputwhich has a VCN assigned with the specified label.- Specified by:
createNet2Anyin interfaceNetLabelledChannelEndFactory- Parameters:
label- the label to apply to the channel's VCN.- Returns:
- the constructed
NetSharedChannelInputobject. - See Also:
-
createNet2Any
Description copied from interface:NetBufferedChannelEndFactoryConstructs aNetSharedChannelInputobject.- Specified by:
createNet2Anyin interfaceNetBufferedChannelEndFactory- Parameters:
buffer- theChannelDataStoreto use as a buffer.- Returns:
- the constructed
NetSharedChannelInputobject. - See Also:
-
createNet2Any
Description copied from interface:NetLabelledBufferedChannelEndFactoryConstructs a bufferedNetSharedChannelInputwhich has a VCN assigned with the specified label.- Specified by:
createNet2Anyin interfaceNetLabelledBufferedChannelEndFactory- Parameters:
label- the label to apply to the channel's VCN.buffer- theChannelDataStoreto use.- Returns:
- the constructed
NetSharedChannelInputobject. - See Also:
-
createOne2Net
Description copied from interface:NetChannelEndFactoryConstructs a
NetChannelOutputobject.- Specified by:
createOne2Netin interfaceNetChannelEndFactory- Returns:
- the constructed
NetChannelOutputobject. - See Also:
-
createAny2Net
Description copied from interface:NetChannelEndFactoryConstructs a
NetSharedChannelOutputobject.- Specified by:
createAny2Netin interfaceNetChannelEndFactory- Returns:
- the constructed
NetSharedChannelOutputobject. - See Also:
-