Package org.jcsp.net

Class LinkFactory

java.lang.Object
org.jcsp.net.LinkFactory

public class LinkFactory extends Object

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.

  • Field Details

    • instance

      private static LinkFactory instance
    • builders

      private Hashtable 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

      static LinkFactory getInstance()
    • makeLink

      Link makeLink(NodeID target, Profile linkProfile)
    • makeLink

      Link makeLink(NodeAddressID targetAddress)
    • installBuilder

      boolean installBuilder(LinkFactory.Builder builder)
    • removeBuilder

      boolean removeBuilder(ProtocolID protocolID, LinkFactory.Builder builder)
    • getTxProtocols

      ProtocolID[] getTxProtocols()
      Used to find out the communication protocols currently installed in the LinkFactory instance. Returns an array of ProtocolID objects which identify the protocols.
      Returns:
      an array of ProtocolID objects which identify the currently installed protocols.