Class ConnectionConfig

All Implemented Interfaces:
ConnectionConfig

Definition of objects to handle configuring a LocoBuffer layout connection via a LocoNet MS100Adapter object.
  • Constructor Details

    • ConnectionConfig

      Ctor for an object being created during load process; Swing init is deferred.
      Parameters:
      p - the SerialPortAdapter to associate with this connection
    • ConnectionConfig

      Ctor for a connection configuration with no preexisting adapter. setInstance() will fill the adapter member.
  • Method Details

    • name

      public String name()
      Provide this adapter name, if it's available on this system.
      Returns:
      null if this is a macOS system that can't run MS100
    • setInstance

      protected void setInstance()
      Load the adapter with an appropriate object unless it's already been set.
      Specified by:
      setInstance in class AbstractSerialConnectionConfig