Class AbstractIdTag

java.lang.Object
jmri.implementation.AbstractNamedBean
jmri.implementation.AbstractIdTag
All Implemented Interfaces:
Comparable<NamedBean>, PropertyChangeProvider, IdTag, NamedBean, Reportable
Direct Known Subclasses:
DefaultIdTag

public abstract class AbstractIdTag extends AbstractNamedBean implements IdTag, Reportable
Abstract implementation of IdTag containing code common to all concrete implementations. This implementation implements Reportable.
Since:
2.11.4
  • Field Details

  • Constructor Details

  • Method Details

    • getTagID

      Description copied from interface: IdTag
      Retrieve a string representation of this tag ID

      This is the system name without the identifier

      Specified by:
      getTagID in interface IdTag
      Returns:
      the tag ID
    • getWhereLastSeen

      Description copied from interface: IdTag
      Return the Reporter that last saw this tag, or null if not yet seen
      Specified by:
      getWhereLastSeen in interface IdTag
      Returns:
      Reporter object where last seen, or null
    • getWhenLastSeen

      Description copied from interface: IdTag
      Return the Date/Time when this tag was last seen, or null if not yet seen
      Specified by:
      getWhenLastSeen in interface IdTag
      Returns:
      Date object when last seen, or null
    • toReportString

      The IDTag version of toReportString returns a string consisting of the user name (if defined) or Tag ID followed by the associated list of property values.
      Specified by:
      toReportString in interface Reportable
      Returns:
      a report string representing the Object.
    • getBeanType

      Description copied from interface: NamedBean
      For instances in the code where we are dealing with just a bean and a message needs to be passed to the user or in a log.
      Specified by:
      getBeanType in interface NamedBean
      Returns:
      a string of the bean type, eg Turnout, Sensor etc