|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IdTag
IdTag represents a tag that might be attached to a specific piece of rolling stock to uniquely identify it.
An example would be an RFID-tag.
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.
| Field Summary | |
|---|---|
static int |
SEEN
Constant representing a "seen" state, indicating that the tag has been seen. |
static int |
UNSEEN
Constant representing an "unseen" state, indicating that the ID tag has not yet been seen. |
| Fields inherited from interface jmri.NamedBean |
|---|
INCONSISTENT, UNKNOWN |
| Method Summary | |
|---|---|
String |
getTagID()
Retrieve a string representation of this tag ID This is the system name without the identifier |
Date |
getWhenLastSeen()
Return the Date/Time when this tag was last seen, or null if not yet seen |
Reporter |
getWhereLastSeen()
Return the Reporter that last saw this tag, or null if not yet seen |
void |
load(org.jdom.Element e)
Load contents of IdTag object from an XML element |
void |
setWhereLastSeen(Reporter reporter)
Set the Reporter that last saw this tag. |
org.jdom.Element |
store(boolean storeState)
Store the contents of this IdTag object as an XML element |
| Field Detail |
|---|
static final int UNSEEN
static final int SEEN
To determine where this object was last seen, use:
To determine when this object was last seen, use:
| Method Detail |
|---|
String getTagID()
This is the system name without the identifier
void setWhereLastSeen(Reporter reporter)
Also sets the Date/Time when last seen
reporter - Reporter object where last seengetWhereLastSeen(),
getWhenLastSeen()Reporter getWhereLastSeen()
Date getWhenLastSeen()
org.jdom.Element store(boolean storeState)
storeState - Determine if the state of this IdTag should be stored
void load(org.jdom.Element e)
e - Element containing IdTag details
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||