Package jmri.jmrit.logixng
Interface LogixNG_Manager
- 
- All Superinterfaces:
- Manager<LogixNG>,- PropertyChangeProvider,- SilenceablePropertyChangeProvider,- VetoableChangeProvider
 - All Known Implementing Classes:
- DefaultLogixNGManager
 
 public interface LogixNG_Manager extends Manager<LogixNG> Manager for LogixNG
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface jmri.ManagerManager.ManagerDataEvent<E extends NamedBean>, Manager.ManagerDataListener<E extends NamedBean>, Manager.NameValidity
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringERROR_HANDLING_MODULE_NAMEThis is the name of the error handling module.static java.lang.StringPROPERTY_SETUPThis property is fired when thesetupAllLogixNGs()method is completed.- 
Fields inherited from interface jmri.ManagerANALOGIOS, AUDIO, BLOCKBOSS, BLOCKS, CONDITIONALS, CTCDATA, ENTRYEXIT, IDTAGS, LAYOUTBLOCKS, LIGHTS, LOGIXNG_ANALOG_ACTIONS, LOGIXNG_ANALOG_EXPRESSIONS, LOGIXNG_CONDITIONALNGS, LOGIXNG_DIGITAL_ACTIONS, LOGIXNG_DIGITAL_BOOLEAN_ACTIONS, LOGIXNG_DIGITAL_EXPRESSIONS, LOGIXNG_GLOBAL_VARIABLES, LOGIXNG_MODULES, LOGIXNG_STRING_ACTIONS, LOGIXNG_STRING_EXPRESSIONS, LOGIXNG_TABLES, LOGIXNGS, LOGIXS, MEMORIES, METERFRAMES, METERS, OBLOCKS, PANELFILES, PROPERTY_BEANS, PROPERTY_CAN_DELETE, PROPERTY_DISPLAY_LIST_NAME, PROPERTY_DO_DELETE, PROPERTY_DO_NOT_DELETE, PROPERTY_LENGTH, REPORTERS, ROUTES, SECTIONS, SENSORGROUPS, SENSORS, SIGNALGROUPS, SIGNALHEADS, SIGNALMASTLOGICS, SIGNALMASTS, STRINGIOS, TIMEBASE, TRANSITS, TURNOUTS, WARRANTS
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidactivateAllLogixNGs()Activate all LogixNGs, starts LogixNG processing by connecting all inputs that are included the ConditionalNGs in this LogixNG.voidactivateAllLogixNGs(boolean runDelayed, boolean runOnSeparateThread)Activate all LogixNGs, starts LogixNG processing by connecting all inputs that are included the ConditionalNGs in this LogixNG.LogixNGcreateLogixNG(java.lang.String userName)For use with User GUI, to allow the auto generation of systemNames, where the user can optionally supply a username.LogixNGcreateLogixNG(java.lang.String userName, boolean inline)For use with User GUI, to allow the auto generation of systemNames, where the user can optionally supply a username.LogixNGcreateLogixNG(java.lang.String systemName, java.lang.String userName)Create a new LogixNG if the LogixNG does not exist.LogixNGcreateLogixNG(java.lang.String systemName, java.lang.String userName, boolean inline)Create a new LogixNG if the LogixNG does not exist.voiddeActivateAllLogixNGs()DeActivate all LogixNGs, stops LogixNG processing by disconnecting all inputs that are included the ConditionalNGs in this LogixNG.voiddeleteLogixNG(LogixNG x)Delete LogixNG by removing it from the manager.voidexecuteModule(Module module, java.lang.Object parameter)Executes a LogixNG Module.voidexecuteModule(Module module, java.util.Map<java.lang.String,java.lang.Object> parameters)Executes a LogixNG Module.java.lang.StringgetAutoSystemName()Create a new system name for a LogixNG.LogixNGgetBySystemName(java.lang.String name)Locate an existing instance based on a system name.LogixNGgetByUserName(java.lang.String name)Locate an existing instance based on a user name.ClipboardgetClipboard()Get the clipboardFemaleSocketgetErrorHandlingModuleSocket()Get the female socket of the error handling module.LogixNGgetLogixNG(java.lang.String name)Locate via user name, then system name if needed.Manager<? extends MaleSocket>getManager(java.lang.String className)Get manager by class namebooleanisActive()Is LogixNGs active?booleanisErrorHandlingModuleEnabled()Is the error handling module enabled?booleanisStartLogixNGsOnLoad()Should the LogixNGs not be started when the configuration file is loaded?default voidprintTree(java.io.PrintWriter writer, java.lang.String indent, MutableInt lineNumber)Print the tree to a stream.default voidprintTree(java.util.Locale locale, java.io.PrintWriter writer, java.lang.String indent, MutableInt lineNumber)Print the tree to a stream.voidprintTree(Base.PrintTreeSettings settings, java.io.PrintWriter writer, java.lang.String indent, MutableInt lineNumber)Print the tree to a stream.voidprintTree(Base.PrintTreeSettings settings, java.util.Locale locale, java.io.PrintWriter writer, java.lang.String indent, MutableInt lineNumber)Print the tree to a stream.voidregisterManager(Manager<? extends MaleSocket> manager)Register a manager for later retrieval by getManager()voidregisterSetupTask(java.lang.Runnable task)Register a task to be run when setup LogixNGsvoidsetLoadDisabled(boolean value)Should the LogixNGs be disabled when the configuration file is loaded?voidsetupAllLogixNGs()Setup all LogixNGs.voidstartLogixNGsOnLoad(boolean value)Should the LogixNGs be started when the configuration file is loaded?static Manager.NameValidityvalidSystemNameFormat(java.lang.String subSystemNamePrefix, java.lang.String systemName)Test if parameter is a properly formatted system name.- 
Methods inherited from interface jmri.ManageraddDataListener, deleteBean, deregister, dispose, getBeanTypeHandled, getBeanTypeHandled, getEntryToolTip, getKnownBeanProperties, getMemo, getNamedBean, getNamedBeanClass, getNamedBeanSet, getObjectCount, getSubSystemNamePrefix, getSystemNamePrefix, getSystemPrefix, getXMLOrder, isValidSystemNameFormat, makeSystemName, makeSystemName, makeSystemName, register, removeDataListener, setDataListenerMute, typeLetter, validateBadCharsInSystemNameFormat, validateIntegerSystemNameFormat, validateNmraAccessorySystemNameFormat, validateSystemNameFormat, validateSystemNameFormat, validateSystemNameFormatOnlyNumeric, validateSystemNamePrefix, validateTrimmedMin1NumberSystemNameFormat, validateTrimmedSystemNameFormat, validateUppercaseTrimmedSystemNameFormat, validSystemNameFormat
 - 
Methods inherited from interface jmri.beans.PropertyChangeProvideraddPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 - 
Methods inherited from interface jmri.beans.SilenceablePropertyChangeProvidersetPropertyChangesSilenced
 - 
Methods inherited from interface jmri.beans.VetoableChangeProvideraddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener
 
- 
 
- 
- 
- 
Field Detail- 
PROPERTY_SETUPstatic final java.lang.String PROPERTY_SETUP This property is fired when thesetupAllLogixNGs()method is completed.- See Also:
- Constant Field Values
 
 - 
ERROR_HANDLING_MODULE_NAMEstatic final java.lang.String ERROR_HANDLING_MODULE_NAME This is the name of the error handling module.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
createLogixNGLogixNG createLogixNG(java.lang.String systemName, java.lang.String userName) throws java.lang.IllegalArgumentException Create a new LogixNG if the LogixNG does not exist.- Parameters:
- systemName- the system name
- userName- the user name
- Returns:
- a new LogixNG or null if unable to create
- Throws:
- java.lang.IllegalArgumentException- when needed
 
 - 
createLogixNGLogixNG createLogixNG(java.lang.String systemName, java.lang.String userName, boolean inline) throws java.lang.IllegalArgumentException Create a new LogixNG if the LogixNG does not exist.- Parameters:
- systemName- the system name
- userName- the user name
- inline- true if this LogixNG is an inline LogixNG
- Returns:
- a new LogixNG or null if unable to create
- Throws:
- java.lang.IllegalArgumentException- when needed
 
 - 
createLogixNGLogixNG createLogixNG(java.lang.String userName) throws java.lang.IllegalArgumentException For use with User GUI, to allow the auto generation of systemNames, where the user can optionally supply a username.- Parameters:
- userName- the user name
- Returns:
- a new LogixNG or null if unable to create
- Throws:
- java.lang.IllegalArgumentException- when needed
 
 - 
createLogixNGLogixNG createLogixNG(java.lang.String userName, boolean inline) throws java.lang.IllegalArgumentException For use with User GUI, to allow the auto generation of systemNames, where the user can optionally supply a username.- Parameters:
- userName- the user name
- inline- true if this LogixNG is an inline LogixNG
- Returns:
- a new LogixNG or null if unable to create
- Throws:
- java.lang.IllegalArgumentException- when needed
 
 - 
getLogixNGLogixNG getLogixNG(java.lang.String name) Locate via user name, then system name if needed. Does not create a new one if nothing found- Parameters:
- name- User name or system name to match
- Returns:
- null if no match found
 
 - 
getByUserNameLogixNG getByUserName(java.lang.String name) Locate an existing instance based on a user name.- Specified by:
- getByUserNamein interface- Manager<LogixNG>
- Parameters:
- name- System Name of the required NamedBean
- Returns:
- requested NamedBean object or null if none exists
 
 - 
getBySystemNameLogixNG getBySystemName(java.lang.String name) Locate an existing instance based on a system name.- Specified by:
- getBySystemNamein interface- Manager<LogixNG>
- Parameters:
- name- System Name of the required NamedBean
- Returns:
- requested NamedBean object or null if none exists
 
 - 
getAutoSystemNamejava.lang.String getAutoSystemName() Create a new system name for a LogixNG.- Returns:
- a new system name
 
 - 
setLoadDisabledvoid setLoadDisabled(boolean value) Should the LogixNGs be disabled when the configuration file is loaded?- Parameters:
- value- true if they should be disabled, false otherwise.
 
 - 
startLogixNGsOnLoadvoid startLogixNGsOnLoad(boolean value) Should the LogixNGs be started when the configuration file is loaded?- Parameters:
- value- true if they should be started, false otherwise.
 
 - 
isStartLogixNGsOnLoadboolean isStartLogixNGsOnLoad() Should the LogixNGs not be started when the configuration file is loaded?- Returns:
- true if they should be started, false otherwise.
 
 - 
setupAllLogixNGsvoid setupAllLogixNGs() Setup all LogixNGs. This method is called after a configuration file is loaded.
 - 
activateAllLogixNGsvoid activateAllLogixNGs() Activate all LogixNGs, starts LogixNG processing by connecting all inputs that are included the ConditionalNGs in this LogixNG.A LogixNG must be activated before it will calculate any of its ConditionalNGs. 
 - 
activateAllLogixNGsvoid activateAllLogixNGs(boolean runDelayed, boolean runOnSeparateThread) Activate all LogixNGs, starts LogixNG processing by connecting all inputs that are included the ConditionalNGs in this LogixNG.A LogixNG must be activated before it will calculate any of its ConditionalNGs. - Parameters:
- runDelayed- true if execute() should run on LogixNG thread delayed, false otherwise.
- runOnSeparateThread- true if the activation should run on a separate thread, false otherwise
 
 - 
deActivateAllLogixNGsvoid deActivateAllLogixNGs() DeActivate all LogixNGs, stops LogixNG processing by disconnecting all inputs that are included the ConditionalNGs in this LogixNG.A LogixNG must be activated before it will calculate any of its ConditionalNGs. 
 - 
isActiveboolean isActive() Is LogixNGs active?- Returns:
- true if LogixNGs are active, false otherwise
 
 - 
deleteLogixNGvoid deleteLogixNG(LogixNG x) Delete LogixNG by removing it from the manager. The LogixNG must first be deactivated so it stops processing.- Parameters:
- x- the LogixNG to delete
 
 - 
printTreedefault void printTree(java.io.PrintWriter writer, java.lang.String indent, MutableInt lineNumber) Print the tree to a stream.- Parameters:
- writer- the stream to print the tree to
- indent- the indentation of each level
- lineNumber- the line number
 
 - 
printTreevoid printTree(Base.PrintTreeSettings settings, java.io.PrintWriter writer, java.lang.String indent, MutableInt lineNumber) Print the tree to a stream.- Parameters:
- settings- settings for what to print
- writer- the stream to print the tree to
- indent- the indentation of each level
- lineNumber- the line number
 
 - 
printTreedefault void printTree(java.util.Locale locale, java.io.PrintWriter writer, java.lang.String indent, MutableInt lineNumber) Print the tree to a stream.- Parameters:
- locale- The locale to be used
- writer- the stream to print the tree to
- indent- the indentation of each level
- lineNumber- the line number
 
 - 
printTreevoid printTree(Base.PrintTreeSettings settings, java.util.Locale locale, java.io.PrintWriter writer, java.lang.String indent, MutableInt lineNumber) Print the tree to a stream.- Parameters:
- settings- settings for what to print
- locale- The locale to be used
- writer- the stream to print the tree to
- indent- the indentation of each level
- lineNumber- the line number
 
 - 
validSystemNameFormatstatic Manager.NameValidity validSystemNameFormat(java.lang.String subSystemNamePrefix, java.lang.String systemName) Test if parameter is a properly formatted system name.This method should only be used by the managers of the LogixNG system. - Parameters:
- subSystemNamePrefix- the sub system prefix
- systemName- the system name
- Returns:
- enum indicating current validity, which might be just as a prefix
 
 - 
getClipboardClipboard getClipboard() Get the clipboard- Returns:
- the clipboard
 
 - 
registerManagervoid registerManager(Manager<? extends MaleSocket> manager) Register a manager for later retrieval by getManager()- Parameters:
- manager- the manager
 
 - 
getManagerManager<? extends MaleSocket> getManager(java.lang.String className) Get manager by class name- Parameters:
- className- the class name of the manager
- Returns:
- the manager
 
 - 
registerSetupTaskvoid registerSetupTask(java.lang.Runnable task) Register a task to be run when setup LogixNGs- Parameters:
- task- the task
 
 - 
executeModulevoid executeModule(Module module, java.lang.Object parameter) throws java.lang.IllegalArgumentException Executes a LogixNG Module. Note that the module must be a Digital Action Module.- Parameters:
- module- The module to be executed
- parameter- The parameter. The module must have exactly one parameter.
- Throws:
- java.lang.IllegalArgumentException- If module is null or if module is not a DigitalActionModule.
 
 - 
executeModulevoid executeModule(Module module, java.util.Map<java.lang.String,java.lang.Object> parameters) throws java.lang.IllegalArgumentException Executes a LogixNG Module. Note that the module must be a Digital Action Module.- Parameters:
- module- The module to be executed
- parameters- The parameters
- Throws:
- java.lang.IllegalArgumentException- If module or parameters is null or if module is not a DigitalActionModule.
 
 - 
getErrorHandlingModuleSocketFemaleSocket getErrorHandlingModuleSocket() Get the female socket of the error handling module.- Returns:
- the socket.
 
 - 
isErrorHandlingModuleEnabledboolean isErrorHandlingModuleEnabled() Is the error handling module enabled? It's enabled if it exists and the root socket is connected.- Returns:
- true if it's in use, false otherwise.
 
 
- 
 
-