Interface MainControllerInterface

All Known Implementing Classes:
MainController

public interface MainControllerInterface
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addNodeListListener(org.bidib.wizard.api.model.listener.NodeListListener nodeListListener)
     
    void
    addNodeSelectionListListener(org.bidib.wizard.api.model.listener.NodeSelectionListener l)
     
    void
    Switch all boosters off.
    void
    allBoosterOn(boolean boosterAndCommandStation, org.bidib.wizard.model.status.CommandStationStatus requestedCommandStationState)
    Switch all boosters on.
    void
    Clear the nodes.
    void
    Close the connection.
    void
    Listen for incoming netBidib connections.
    void
    mapPortType(org.bidib.wizard.common.script.node.types.TargetType portType)
    Switch the port type.
    void
    Open the connection.
    void
    removeNodeListListener(org.bidib.wizard.api.model.listener.NodeListListener nodeListListener)
     
    void
    removeNodeSelectionListener(org.bidib.wizard.api.model.listener.NodeSelectionListener l)
     
    void
    replacePortConfig(org.bidib.wizard.common.script.node.types.TargetType portType, Map<Byte,org.bidib.jbidibc.messages.port.PortConfigValue<?>> portConfig)
    Replace the port config.
    void
    resetNode(org.bidib.wizard.api.model.NodeInterface node)
    Reset the node.
    void
    Save the pending changes of the current selected node.
    void
    Stop the main controller and perform the shutdown.
    void
    transferAccessoryToNode(org.bidib.wizard.api.model.NodeInterface node, org.bidib.wizard.api.model.Accessory accessory)
     
  • Method Details

    • savePendingChanges

      void savePendingChanges()
      Save the pending changes of the current selected node.
    • stop

      void stop()
      Stop the main controller and perform the shutdown.
    • openConnection

      void openConnection()
      Open the connection.
    • closeConnection

      void closeConnection()
      Close the connection.
    • listenNetBidib

      void listenNetBidib()
      Listen for incoming netBidib connections.
    • clearNodes

      void clearNodes()
      Clear the nodes.
    • addNodeListListener

      void addNodeListListener(org.bidib.wizard.api.model.listener.NodeListListener nodeListListener)
    • removeNodeListListener

      void removeNodeListListener(org.bidib.wizard.api.model.listener.NodeListListener nodeListListener)
    • addNodeSelectionListListener

      void addNodeSelectionListListener(org.bidib.wizard.api.model.listener.NodeSelectionListener l)
    • removeNodeSelectionListener

      void removeNodeSelectionListener(org.bidib.wizard.api.model.listener.NodeSelectionListener l)
    • allBoosterOff

      void allBoosterOff()
      Switch all boosters off.
    • allBoosterOn

      void allBoosterOn(boolean boosterAndCommandStation, org.bidib.wizard.model.status.CommandStationStatus requestedCommandStationState)
      Switch all boosters on.
      Parameters:
      boosterAndCommandStation - switch all booster and command station on
      requestedCommandStationState - the requested command station state
    • resetNode

      void resetNode(org.bidib.wizard.api.model.NodeInterface node)
      Reset the node.
      Parameters:
      node - the node
    • transferAccessoryToNode

      void transferAccessoryToNode(org.bidib.wizard.api.model.NodeInterface node, org.bidib.wizard.api.model.Accessory accessory)
    • replacePortConfig

      void replacePortConfig(org.bidib.wizard.common.script.node.types.TargetType portType, Map<Byte,org.bidib.jbidibc.messages.port.PortConfigValue<?>> portConfig)
      Replace the port config.
      Parameters:
      portType - the port type
      portConfig - the new port config
    • mapPortType

      void mapPortType(org.bidib.wizard.common.script.node.types.TargetType portType)
      Switch the port type.
      Parameters:
      portType - the port type