Class DefaultLogixNGInitializationManager
java.lang.Object
jmri.jmrit.logixng.implementation.DefaultLogixNGInitializationManager
- All Implemented Interfaces:
LogixNG_InitializationManager
public class DefaultLogixNGInitializationManager
extends Object
implements LogixNG_InitializationManager
Class providing the basic logic of the LogixNG_InitializationManager interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a LogixNG to the end of list.voiddelete(int index) Deletes a LogixNG from the list.voidDeletes a LogixNG from the list.getList()Returns an unmodifiable list of the initialization LogixNGsvoidmoveDown(int index) Moves the LogixNG down (lower priority)voidmoveUp(int index) Moves the LogixNG up (higher priority)voidprintTree(Locale locale, PrintWriter writer, String indent) Print the tree to a stream.
-
Constructor Details
-
DefaultLogixNGInitializationManager
public DefaultLogixNGInitializationManager()
-
-
Method Details
-
add
Adds a LogixNG to the end of list.- Specified by:
addin interfaceLogixNG_InitializationManager- Parameters:
logixNG- the LogixNG
-
delete
Deletes a LogixNG from the list.- Specified by:
deletein interfaceLogixNG_InitializationManager- Parameters:
logixNG- the LogixNG
-
delete
Deletes a LogixNG from the list.- Specified by:
deletein interfaceLogixNG_InitializationManager- Parameters:
index- the index of the LogixNG to delete
-
moveUp
Moves the LogixNG up (higher priority)- Specified by:
moveUpin interfaceLogixNG_InitializationManager- Parameters:
index- the index of the LogixNG to move up
-
moveDown
Moves the LogixNG down (lower priority)- Specified by:
moveDownin interfaceLogixNG_InitializationManager- Parameters:
index- the index of the LogixNG to move down
-
getList
Returns an unmodifiable list of the initialization LogixNGs- Specified by:
getListin interfaceLogixNG_InitializationManager- Returns:
- the list
-
printTree
Print the tree to a stream.- Specified by:
printTreein interfaceLogixNG_InitializationManager- Parameters:
locale- The locale to be usedwriter- the stream to print the tree toindent- the indentation of each level
-