Package jmri.jmrix.can.cbus
Class CbusPreferences
java.lang.Object
jmri.beans.UnboundBean
jmri.beans.Bean
jmri.beans.PreferencesBean
jmri.jmrix.can.cbus.CbusPreferences
- All Implemented Interfaces:
BeanInterface,PropertyChangeFirer,PropertyChangeProvider
Preferences for the MERG CBUS connections.
-
Field Summary
Fields inherited from class jmri.beans.PreferencesBean
DIRTY, RESTART_REQUIREDFields inherited from class jmri.beans.Bean
propertyChangeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet if should add new command stations heard on network to CBUS Node Manager tablebooleanGet if should add new nodes heard on network to CBUS Node Manager tablebooleanGet if should listen on network for new node number requestsintGet delay between bootloader data writesintGet minimum number of CbusNode XML backups to retainlongGet Background delay between CBUS Node Manager data fetch from nodesintGet the position of the node table splitintGet the programming track modebooleanGet Save Restore CBUS Event TablebooleanGet search CBUS node backup directory on startup for node xml filesbooleanGet Search for Command stations on CBUS Node Table StartupbooleanGet Search for Nodes on CBUS Node Table StartupbooleanGet the addressed programmer statebooleanGet the global programmer state(package private) booleanvoidvoidsetAddCommandStations(boolean newVal) Set if should add new command stations heard on network to CBUS Node Manager tablevoidsetAddNodes(boolean newVal) Set if should add new nodes heard on network to CBUS Node Manager tablevoidsetAddressedModePossible(boolean state) Set global (service mode) programmer availabilityvoidsetAllocateNNListener(boolean newVal) Set if should listen on network for new node number requestsvoidsetBootWriteDelay(int newVal) Set delay between bootloader data writesvoidsetGlobalProgrammerAvailable(boolean state) Set global (service mode) programmer availabilityvoidsetMinimumNumBackupsToKeep(int newVal) Set minimum number of CbusNode XML backups to retainvoidsetNodeBackgroundFetchDelay(long newVal) Set Background delay between CBUS Node Manager data fetch from nodesvoidsetNodeTableSplit(int pixels) Set the position of the node table split from the top of thw windowvoidsetProgrammersAvailable(boolean global, boolean addressed) Set the programmer typevoidsetProgTrackMode(int mode) Set programming track modevoidsetSaveRestoreEventTable(boolean newVal) Set Save Restore CBUS Event TablevoidsetSearchForNodesBackupXmlOnStartup(boolean newVal) Set search CBUS node backup directory on startup for node xml filesvoidsetStartupSearchForCs(boolean newVal) Set Search for Command stations on CBUS Node Table StartupvoidsetStartupSearchForNodes(boolean newVal) Set Search for Nodes on CBUS Node Table StartupMethods inherited from class jmri.beans.PreferencesBean
firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getProfile, isDirty, isRestartRequired, setIsDirty, setRestartRequiredMethods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setProperty
-
Constructor Details
-
CbusPreferences
public CbusPreferences()
-
-
Method Details
-
savePreferences
-
isPreferencesValid
boolean isPreferencesValid() -
getAddCommandStations
Get if should add new command stations heard on network to CBUS Node Manager table- Returns:
- true if adding command stations, else false
-
setAddCommandStations
Set if should add new command stations heard on network to CBUS Node Manager table- Parameters:
newVal- true if adding command stations, else false
-
getAddNodes
Get if should add new nodes heard on network to CBUS Node Manager table- Returns:
- true if adding nodes, else false
-
setAddNodes
Set if should add new nodes heard on network to CBUS Node Manager table- Parameters:
newVal- true if adding nodes, else false
-
getAllocateNNListener
Get if should listen on network for new node number requests- Returns:
- true if should listen, else false
-
setAllocateNNListener
Set if should listen on network for new node number requests- Parameters:
newVal- true if should listen, else false
-
getNodeBackgroundFetchDelay
Get Background delay between CBUS Node Manager data fetch from nodes- Returns:
- the delay
-
setNodeBackgroundFetchDelay
Set Background delay between CBUS Node Manager data fetch from nodes- Parameters:
newVal- in ms can be 0 but defaults to 100ms
-
getStartupSearchForCs
Get Search for Command stations on CBUS Node Table Startup- Returns:
- true to send CBUS search for CS, else false
-
setStartupSearchForCs
Set Search for Command stations on CBUS Node Table Startup- Parameters:
newVal- true to send CBUS search for CS, else false
-
getStartupSearchForNodes
Get Search for Nodes on CBUS Node Table Startup- Returns:
- true to send CBUS search for nodes, else false
-
setStartupSearchForNodes
Set Search for Nodes on CBUS Node Table Startup- Parameters:
newVal- true to send CBUS search for nodes, else false
-
getSaveRestoreEventTable
Get Save Restore CBUS Event TableIf enabled loads CBUS event table data from xml on table startup, and saves data to xml on shutdown.
- Returns:
- true to save and restore, else false
-
setSaveRestoreEventTable
Set Save Restore CBUS Event Table- Parameters:
newVal- true to save and restore, else false
-
getSearchForNodesBackupXmlOnStartup
Get search CBUS node backup directory on startup for node xml files- Returns:
- true to search, else false
-
setSearchForNodesBackupXmlOnStartup
Set search CBUS node backup directory on startup for node xml files- Parameters:
newVal- true to lookup node xml files, else false
-
getMinimumNumBackupsToKeep
Get minimum number of CbusNode XML backups to retain- Returns:
- number of backups, defaults to 10
-
setMinimumNumBackupsToKeep
Set minimum number of CbusNode XML backups to retain- Parameters:
newVal- the new number of backups
-
getBootWriteDelay
Get delay between bootloader data writes- Returns:
- delay, in ms, defaults to CbusNode.BOOT_PROG_TIMEOUT_FAST
-
setBootWriteDelay
Set delay between bootloader data writes- Parameters:
newVal- the delay in ms
-
isGlobalProgrammerAvailable
Get the global programmer state- Returns:
- global programmer state
-
isAddressedModePossible
Get the addressed programmer state- Returns:
- addressed programmer state
-
setGlobalProgrammerAvailable
Set global (service mode) programmer availability- Parameters:
state- true if available
-
setAddressedModePossible
Set global (service mode) programmer availability- Parameters:
state- true if available
-
setProgrammersAvailable
Set the programmer type- Parameters:
global- true if global (service mode) programmer is availableaddressed- thru if addressed (ops mode) programmer is available
-
getProgTrackMode
Get the programming track mode- Returns:
- the mode
-
setProgTrackMode
Set programming track mode- Parameters:
mode- to be set
-
getNodeTableSplit
Get the position of the node table split- Returns:
- position in pixels
-
setNodeTableSplit
Set the position of the node table split from the top of thw window- Parameters:
pixels- new position
-