Class FilteredChannel
java.lang.Object
org.jcsp.util.filter.FilteredChannel
Static factory for creating filtered channels.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static FilteredChannelFactoryDefault factory for creating the channels. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivate constructor to prevent any instances of this static factory from being created. -
Method Summary
Modifier and TypeMethodDescriptionstatic FilteredAny2AnyChannelCreates a new Any2Any filtered channel.static FilteredAny2AnyChannel[]createAny2Any(int n) Constructs and returns an array ofAny2AnyChannelobjects.static FilteredAny2AnyChannelcreateAny2Any(ChannelDataStore buffer) Creates a new Any2Any filtered channel with a given buffering behaviour.static FilteredAny2AnyChannel[]createAny2Any(ChannelDataStore buffer, int n) Constructs and returns an array ofAny2AnyChannelobjects with a given buffer.static FilteredAny2OneChannelCreates a new Any2One filtered channel.static FilteredAny2OneChannel[]createAny2One(int n) Constructs and returns an array ofAny2OneChannelobjects.static FilteredAny2OneChannelcreateAny2One(ChannelDataStore buffer) Creates a new Any2One filtered channel with a given buffering behaviour.static FilteredAny2OneChannel[]createAny2One(ChannelDataStore buffer, int n) Constructs and returns an array ofAny2OneChannelobjects with a given buffer.static FilteredOne2AnyChannelCreates a new One2Any filtered channel.static FilteredOne2AnyChannel[]createOne2Any(int n) Constructs and returns an array ofOne2AnyChannelobjects.static FilteredOne2AnyChannelcreateOne2Any(ChannelDataStore buffer) Creates a new One2Any filtered channel with a given buffering behaviour.static FilteredOne2AnyChannel[]createOne2Any(ChannelDataStore buffer, int n) Constructs and returns an array ofOne2AnyChannelobjects with a given buffer.static FilteredOne2OneChannelCreates a new One2One filtered channel.static FilteredOne2OneChannel[]createOne2One(int n) Constructs and returns an array ofOne2OneChannelobjects.static FilteredOne2OneChannelcreateOne2One(ChannelDataStore buffer) Creates a new One2One filtered channel with a given buffering behaviour.static FilteredOne2OneChannel[]createOne2One(ChannelDataStore buffer, int n) Constructs and returns an array ofOne2OneChannelobjects using a given buffer.
-
Field Details
-
factory
Default factory for creating the channels.
-
-
Constructor Details
-
FilteredChannel
private FilteredChannel()Private constructor to prevent any instances of this static factory from being created.
-
-
Method Details
-
createOne2One
Creates a new One2One filtered channel.- Returns:
- the created channel.
-
createAny2One
Creates a new Any2One filtered channel.- Returns:
- the created channel.
-
createOne2Any
Creates a new One2Any filtered channel.- Returns:
- the created channel.
-
createAny2Any
Creates a new Any2Any filtered channel.- Returns:
- the created channel.
-
createOne2One
Constructs and returns an array ofOne2OneChannelobjects.- Parameters:
n- the size of the array of channels.- Returns:
- the array of channels.
- See Also:
-
createAny2One
Constructs and returns an array ofAny2OneChannelobjects.- Parameters:
n- the size of the array of channels.- Returns:
- the array of channels.
- See Also:
-
createOne2Any
Constructs and returns an array ofOne2AnyChannelobjects.- Parameters:
n- the size of the array of channels.- Returns:
- the array of channels.
- See Also:
-
createAny2Any
Constructs and returns an array ofAny2AnyChannelobjects.- Parameters:
n- the size of the array of channels.- Returns:
- the array of channels.
- See Also:
-
createOne2One
Creates a new One2One filtered channel with a given buffering behaviour.- Parameters:
buffer- the buffer implementation to use.- Returns:
- the created channel.
-
createAny2One
Creates a new Any2One filtered channel with a given buffering behaviour.- Parameters:
buffer- the buffer implementation to use.- Returns:
- the created channel.
-
createOne2Any
Creates a new One2Any filtered channel with a given buffering behaviour.- Parameters:
buffer- the buffer implementation to use.- Returns:
- the created channel.
-
createAny2Any
Creates a new Any2Any filtered channel with a given buffering behaviour.- Parameters:
buffer- the buffer implementation to use.- Returns:
- the created channel.
-
createOne2One
Constructs and returns an array ofOne2OneChannelobjects using a given buffer.- Parameters:
buffer- the buffer implementation to use.n- the size of the array of channels.- Returns:
- the array of channels.
- See Also:
-
createAny2One
Constructs and returns an array ofAny2OneChannelobjects with a given buffer.- Parameters:
buffer- the buffer implementation to use.n- the size of the array of channels.- Returns:
- the array of channels.
- See Also:
-
createOne2Any
Constructs and returns an array ofOne2AnyChannelobjects with a given buffer.- Parameters:
buffer- the buffer implementation to use.n- the size of the array of channels.- Returns:
- the array of channels.
- See Also:
-
createAny2Any
Constructs and returns an array ofAny2AnyChannelobjects with a given buffer.- Parameters:
buffer- the buffer implementation to use.n- the size of the array of channels.- Returns:
- the array of channels.
- See Also:
-