Package jmri
Interface BasicRosterEntry
- All Known Implementing Classes:
RosterEntry
public interface BasicRosterEntry
BasicRosterEntry represents a single element in a locomotive roster, including
information on how to locate it from decoder information.
This interface is to allow access to the Basic details of a Roster entry.
Primarily this only deals as a method to provide other packages with access to the information rather than being able set or create items. However access to set and get Attributes is allowed so that attributes like running duration can be recorded, with the store option also available.
This interface should probably be called RosterEntry, but this would result in another class with the same name; refactoring of that class would be a big job and would potentially cause issue with users scripts etc.
For Full read/write and creation of RosterEntries use the @link jmri.jmrit.roster.RosterEntry
All properties, including the "Attributes", are bound.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteAttribute(String key) getAttribute(String key) String[]getId()intbooleanbooleanisOpen()voidputAttribute(String key, String value) voidvoidsetOpen(boolean boo) org.jdom2.Elementstore()Create an XML element to represent this Entry.toString()
-
Method Details
-
getId
-
getDccAddress
-
isLongAddress
boolean isLongAddress() -
getDccLocoAddress
-
getShuntingFunction
-
setOpen
-
isOpen
boolean isOpen() -
putAttribute
-
getAttribute
-
deleteAttribute
-
getAttributeList
-
getMaxSpeedPCT
int getMaxSpeedPCT() -
store
org.jdom2.Element store()Create an XML element to represent this Entry. This member has to remain synchronized with the detailed schema in xml/schema/locomotive-config.xsd.- Returns:
- Contents in a JDOM Element
-
titleString
-
toString
-
addPropertyChangeListener
-
removePropertyChangeListener
-