Class DefaultLogixNGInitializationManager
- java.lang.Object
-
- jmri.jmrit.logixng.implementation.DefaultLogixNGInitializationManager
-
- All Implemented Interfaces:
LogixNG_InitializationManager
public class DefaultLogixNGInitializationManager extends java.lang.Object implements LogixNG_InitializationManager
Class providing the basic logic of the LogixNG_InitializationManager interface.
-
-
Constructor Summary
Constructors Constructor Description DefaultLogixNGInitializationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(LogixNG logixNG)
Adds a LogixNG to the end of list.void
delete(int index)
Deletes a LogixNG from the list.void
delete(LogixNG logixNG)
Deletes a LogixNG from the list.java.util.List<LogixNG>
getList()
Returns an unmodifiable list of the initialization LogixNGsvoid
moveDown(int index)
Moves the LogixNG down (lower priority)void
moveUp(int index)
Moves the LogixNG up (higher priority)void
printTree(java.util.Locale locale, java.io.PrintWriter writer, java.lang.String indent)
Print the tree to a stream.
-
-
-
Constructor Detail
-
DefaultLogixNGInitializationManager
public DefaultLogixNGInitializationManager()
-
-
Method Detail
-
add
public void add(LogixNG logixNG)
Adds a LogixNG to the end of list.- Specified by:
add
in interfaceLogixNG_InitializationManager
- Parameters:
logixNG
- the LogixNG
-
delete
public void delete(LogixNG logixNG)
Deletes a LogixNG from the list.- Specified by:
delete
in interfaceLogixNG_InitializationManager
- Parameters:
logixNG
- the LogixNG
-
delete
public void delete(int index)
Deletes a LogixNG from the list.- Specified by:
delete
in interfaceLogixNG_InitializationManager
- Parameters:
index
- the index of the LogixNG to delete
-
moveUp
public void moveUp(int index)
Moves the LogixNG up (higher priority)- Specified by:
moveUp
in interfaceLogixNG_InitializationManager
- Parameters:
index
- the index of the LogixNG to move up
-
moveDown
public void moveDown(int index)
Moves the LogixNG down (lower priority)- Specified by:
moveDown
in interfaceLogixNG_InitializationManager
- Parameters:
index
- the index of the LogixNG to move down
-
getList
public java.util.List<LogixNG> getList()
Returns an unmodifiable list of the initialization LogixNGs- Specified by:
getList
in interfaceLogixNG_InitializationManager
- Returns:
- the list
-
printTree
public void printTree(java.util.Locale locale, java.io.PrintWriter writer, java.lang.String indent)
Print the tree to a stream.- Specified by:
printTree
in interfaceLogixNG_InitializationManager
- Parameters:
locale
- The locale to be usedwriter
- the stream to print the tree toindent
- the indentation of each level
-
-