Class AbstractIdTag

    • Constructor Detail

      • AbstractIdTag

        public AbstractIdTag​(java.lang.String systemName)
      • AbstractIdTag

        public AbstractIdTag​(java.lang.String systemName,
                             java.lang.String userName)
    • Method Detail

      • getTagID

        @Nonnull
        public java.lang.String 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

        public Reporter 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

        public java.util.Date 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

        public java.lang.String 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

        @Nonnull
        public java.lang.String 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