Package jmri

Interface IdTag

All Superinterfaces:
Comparable<NamedBean>, NamedBean, PropertyChangeProvider
All Known Subinterfaces:
AddressedIdTag, RailCom
All Known Implementing Classes:
AbstractIdTag, DefaultIdTag, DefaultRailCom, TranspondingTag

public interface IdTag
extends NamedBean
IdTag is a pre-parsed representation of an identification message from the layout. One use of an IdTag is a device that might be attached to any specific piece of rolling stock to uniquely identify it.

Examples include

  • RFID-tag.
  • Digitrax Transponding Decoders
  • RailCom tags

Each IdTag contains the following information:

  • A System Name
  • A User Name (which may be null)
  • A TagID
  • A reference to the last reporter to see the tag, which may be null
  • The date and time the last reporter saw the tag, which may be null
  • A list of key/value pairs holding properties

The system name is of the form IDxxxx where xxxx is the same value as the TagID.

The list of key value pairs is maintained by the reporters parsing and updating the list. This information may vary between implementations.

This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.