Interface MainControllerInterface
- All Known Implementing Classes:
MainController
public interface MainControllerInterface
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddNodeListListener(org.bidib.wizard.api.model.listener.NodeListListener nodeListListener) voidaddNodeSelectionListListener(org.bidib.wizard.api.model.listener.NodeSelectionListener l) voidSwitch all boosters off.voidallBoosterOn(boolean boosterAndCommandStation, org.bidib.wizard.model.status.CommandStationStatus requestedCommandStationState) Switch all boosters on.voidClear the nodes.voidClose the connection.voidListen for incoming netBidib connections.voidmapPortType(org.bidib.wizard.common.script.node.types.TargetType portType) Switch the port type.voidOpen the connection.voidremoveNodeListListener(org.bidib.wizard.api.model.listener.NodeListListener nodeListListener) voidremoveNodeSelectionListener(org.bidib.wizard.api.model.listener.NodeSelectionListener l) voidreplacePortConfig(org.bidib.wizard.common.script.node.types.TargetType portType, Map<Byte, org.bidib.jbidibc.messages.port.PortConfigValue<?>> portConfig) Replace the port config.voidresetNode(org.bidib.wizard.api.model.NodeInterface node) Reset the node.voidSave the pending changes of the current selected node.voidstop()Stop the main controller and perform the shutdown.voidtransferAccessoryToNode(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 onrequestedCommandStationState- 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 typeportConfig- 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
-