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 voidadd(LogixNG logixNG)Adds a LogixNG to the end of list.voiddelete(int index)Deletes a LogixNG from the list.voiddelete(LogixNG logixNG)Deletes a LogixNG from the list.java.util.List<LogixNG>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(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:
addin interfaceLogixNG_InitializationManager- Parameters:
logixNG- the LogixNG
-
delete
public void delete(LogixNG logixNG)
Deletes a LogixNG from the list.- Specified by:
deletein interfaceLogixNG_InitializationManager- Parameters:
logixNG- the LogixNG
-
delete
public void delete(int index)
Deletes a LogixNG from the list.- Specified by:
deletein 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:
moveUpin 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:
moveDownin 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:
getListin 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:
printTreein interfaceLogixNG_InitializationManager- Parameters:
locale- The locale to be usedwriter- the stream to print the tree toindent- the indentation of each level
-
-