Class LinkFactory
java.lang.Object
org.jcsp.net.LinkFactory
This class does not need to be used by normal JCSP users.
The Builder inner class needs to be sub-classed
by JCSP.NET protocol implementations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn abstract inner class which should be implemented by comunication protocol implementations.private static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HashtableThis Hashtable stores ProtocolID's as it keys and map these to Builders for those Protocols.private static LinkFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static LinkFactory(package private) ProtocolID[]Used to find out the communication protocols currently installed in theLinkFactoryinstance.(package private) booleaninstallBuilder(LinkFactory.Builder builder) (package private) LinkmakeLink(NodeAddressID targetAddress) (package private) Link(package private) booleanremoveBuilder(ProtocolID protocolID, LinkFactory.Builder builder)
-
Field Details
-
instance
-
builders
This Hashtable stores ProtocolID's as it keys and map these to Builders for those Protocols.
-
-
Constructor Details
-
LinkFactory
private LinkFactory()
-
-
Method Details
-
getInstance
-
makeLink
-
makeLink
-
installBuilder
-
removeBuilder
-
getTxProtocols
ProtocolID[] getTxProtocols()Used to find out the communication protocols currently installed in theLinkFactoryinstance. Returns an array ofProtocolIDobjects which identify the protocols.- Returns:
- an array of
ProtocolIDobjects which identify the currently installed protocols.
-