Class KernelManager
- java.lang.Object
-
- jmri.beans.PropertyChangeSupport
-
- jmri.jmrit.operations.rollingstock.RollingStockGroupManager
-
- jmri.jmrit.operations.rollingstock.cars.KernelManager
-
- All Implemented Interfaces:
PropertyChangeFirer
,PropertyChangeProvider
,InstanceManagerAutoDefault
public class KernelManager extends RollingStockGroupManager implements InstanceManagerAutoDefault
Manages Kernels.
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.operations.rollingstock.RollingStockGroupManager
_groupHashTable, LISTLENGTH_CHANGED_PROPERTY, NONE
-
Fields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description KernelManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteKernel(java.lang.String name)
Delete a Kernel by nameKernel
getKernelByName(java.lang.String name)
Get a Kernel by namevoid
load(org.jdom2.Element root)
Kernel
newKernel(java.lang.String name)
Create a new Kernelvoid
replaceKernelName(java.lang.String oldName, java.lang.String newName)
protected void
setDirtyAndFirePropertyChange(java.lang.String p, java.lang.Object old, java.lang.Object n)
void
store(org.jdom2.Element root)
Create an XML element to represent this Entry.-
Methods inherited from class jmri.jmrit.operations.rollingstock.RollingStockGroupManager
getComboBox, getMaxNameLength, getNameList, updateComboBox
-
Methods inherited from class jmri.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
-
-
-
Constructor Detail
-
KernelManager
public KernelManager()
-
-
Method Detail
-
newKernel
public Kernel newKernel(java.lang.String name)
Create a new Kernel- Parameters:
name
- string name for this Kernel- Returns:
- Kernel
-
deleteKernel
public void deleteKernel(java.lang.String name)
Delete a Kernel by name- Parameters:
name
- string name for the Kernel
-
getKernelByName
public Kernel getKernelByName(java.lang.String name)
Get a Kernel by name- Parameters:
name
- string name for the Kernel- Returns:
- named Kernel
-
replaceKernelName
public void replaceKernelName(java.lang.String oldName, java.lang.String newName)
-
load
public void load(org.jdom2.Element root)
-
store
public void store(org.jdom2.Element root)
Create an XML element to represent this Entry. This member has to remain synchronized with the detailed DTD in operations-cars.dtd.- Parameters:
root
- The common Element for operations-cars.dtd.
-
setDirtyAndFirePropertyChange
protected void setDirtyAndFirePropertyChange(java.lang.String p, java.lang.Object old, java.lang.Object n)
-
-