Package jmri.jmrix.marklin.swing
Class MarklinSendBootAction
java.lang.Object
javax.swing.AbstractAction
jmri.jmrix.marklin.swing.MarklinSendBootAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Action to send MCAN BOOT message to Märklin devices.
This action sends a CAN BOOT command (0x1B) to reset the Gleisbox/trackbox and initiate it to start passing commands to locos and accessories on the rails. Without this command on startup, the hardware does not respond to subsequent commands. This is part of the software/bootloader command range used for firmware updates and device initialization.
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
ConstructorsConstructorDescriptionMarklinSendBootAction(String name, MarklinSystemConnectionMemo memo) Create an action to send MCAN BOOT message.Create an action with default name. -
Method Summary
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
MarklinSendBootAction
Create an action to send MCAN BOOT message.- Parameters:
name- the name for this action; will appear on menu items, buttons, etc.memo- the system connection memo for this action
-
MarklinSendBootAction
Create an action with default name.- Parameters:
memo- the system connection memo for this action
-
-
Method Details
-
actionPerformed
-