Package jmri.managers

Class AbstractMeterManager

All Implemented Interfaces:
PropertyChangeListener, VetoableChangeListener, EventListener, PropertyChangeFirer, PropertyChangeProvider, SilenceablePropertyChangeProvider, VetoableChangeFirer, VetoableChangeProvider, Manager<Meter>, MeterManager
Direct Known Subclasses:
InternalMeterManager, OlcbMeterManager

public class AbstractMeterManager extends AbstractManager<Meter> implements MeterManager
Default implementation of a MeterManager.
  • Constructor Details

  • Method Details

    • getXMLOrder

      public int getXMLOrder()
      Determine the order that types should be written when storing panel files. Uses one of the constants defined in this class.

      Yes, that's an overly-centralized methodology, but it works for now.

      Specified by:
      getXMLOrder in interface Manager<Meter>
      Returns:
      write order for this Manager; larger is later.
    • typeLetter

      public char typeLetter()
      Specified by:
      typeLetter in interface Manager<Meter>
      Returns:
      The type letter for a specific implementation
    • getBeanTypeHandled

      @Nonnull public String getBeanTypeHandled(boolean plural)
      Get bean type handled.
      Specified by:
      getBeanTypeHandled in interface Manager<Meter>
      Parameters:
      plural - true to return plural form of the type; false to return singular form
      Returns:
      a string for the type of object handled by this manager
    • getNamedBeanClass

      Get the class of NamedBean supported by this Manager. This should be the generic class used in the Manager's class declaration.
      Specified by:
      getNamedBeanClass in interface Manager<Meter>
      Returns:
      the class supported by this Manager.