Package org.jcsp.net.dynamic
Class MigratableChannelEnd
java.lang.Object
org.jcsp.net.dynamic.MigratableChannelEnd
Static factory for creating migratable channel ends.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static MigratableChannelEndFactory
Standard factory for anonymous channel ends.private static NamedMigratableChannelEndFactory
Factory for named channel ends. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Creates a newMigratableChannelEnd
object. -
Method Summary
Modifier and TypeMethodDescriptionstatic MigratableAltingChannelInput
Creates an anonymous migratable channel input.static MigratableAltingChannelInput
createNet2One
(String name) Creates a named migratable channel input using the default namespace.static MigratableAltingChannelInput
createNet2One
(String name, NameAccessLevel nameAccessLevel) Creates a named migratable channel input within the given namespace.static MigratableChannelOutput
createOne2Net
(String name) Creates a migratable channel output to a named channel within the default namespace.static MigratableChannelOutput
createOne2Net
(String name, NameAccessLevel nameAccessLevel) Creates a migratable channel output to a named channel within a given namespace.static MigratableChannelOutput
Creates a migratable channel output to a given location.
-
Field Details
-
FACTORY
Standard factory for anonymous channel ends. -
NAMED_FACTORY
Factory for named channel ends.
-
-
Constructor Details
-
MigratableChannelEnd
private MigratableChannelEnd()Creates a newMigratableChannelEnd
object. This is private to prevent any instances from being created. This class contains only static methods.
-
-
Method Details
-
createNet2One
Creates an anonymous migratable channel input.- Returns:
- the created channel end.
-
createOne2Net
Creates a migratable channel output to a given location.- Parameters:
loc
- location of the input end of the channel.- Returns:
- the created channel end.
-
createNet2One
Creates a named migratable channel input using the default namespace.- Parameters:
name
- the name of the channel to register with the CNS.- Returns:
- the created channel end.
-
createNet2One
public static MigratableAltingChannelInput createNet2One(String name, NameAccessLevel nameAccessLevel) Creates a named migratable channel input within the given namespace.- Parameters:
name
- the name of the channel to register with the CNS.nameAccessLevel
- the namespace to register the name within.- Returns:
- the created channel end.
-
createOne2Net
Creates a migratable channel output to a named channel within the default namespace.- Parameters:
name
- the name of the channel as registered with the CNS.- Returns:
- the created channel end.
-
createOne2Net
Creates a migratable channel output to a named channel within a given namespace.- Parameters:
name
- the name of the channel as registered with the CNS.nameAccessLevel
- the namespace the name is registered within.- Returns:
- the created channel end.
-