Interface MainControllerInterface
-
- All Known Implementing Classes:
MainController
public interface MainControllerInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddNodeListListener(org.bidib.wizard.api.model.listener.NodeListListener nodeListListener)voidaddNodeSelectionListListener(org.bidib.wizard.api.model.listener.NodeSelectionListener l)voidallBoosterOff()Switch all boosters off.voidallBoosterOn(boolean boosterAndCommandStation, org.bidib.wizard.model.status.CommandStationStatus requestedCommandStationState)Switch all boosters on.voidclearNodes()Clear the nodes.voidcloseConnection()Close the connection.voidlistenNetBidib()Listen for incoming netBidib connections.voidmapPortType(org.bidib.wizard.common.script.node.types.TargetType portType)Switch the port type.voidopenConnection()Open 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.voidstop()voidtransferAccessoryToNode(org.bidib.wizard.api.model.NodeInterface node, org.bidib.wizard.api.model.Accessory accessory)
-
-
-
Method Detail
-
stop
void stop()
-
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
-
-