Package jmri.jmrix.openlcb
Class OlcbEventNameStore
java.lang.Object
jmri.jmrix.openlcb.OlcbEventNameStore
- All Implemented Interfaces:
EventNameStore
JMRI's implementation of part of the OpenLcb EventNameStore interface.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate a new name to/from EventID associationvoidDe-register the Shutdown task.getEventID(String name) getEventName(EventID eventID) Get all the EventIDs availablebooleanhasEventID(String name) booleanhasEventName(EventID eventID) protected voidvoidvoid
-
Field Details
-
dirty
-
-
Constructor Details
-
OlcbEventNameStore
public OlcbEventNameStore()
-
-
Method Details
-
getEventName
- Specified by:
getEventNamein interfaceEventNameStore- Parameters:
eventID- The EventID being searched for- Returns:
- The name associated with that EventID or the event ID in dotted hex
-
hasEventName
- Parameters:
eventID- The EventID being searched for- Returns:
- true if there is an associated name
-
getEventID
- Specified by:
getEventIDin interfaceEventNameStore- Parameters:
name- The event name being searched for- Returns:
- The EventID associated with that name or an event ID constructed from the input
-
hasEventID
- Parameters:
name- The event name being searched for- Returns:
- true if an EventID is associated with that name
-
addMatch
Create a new name to/from EventID association- Parameters:
eventID- associated EventIDname- associated name
-
getMatches
Get all the EventIDs available- Returns:
- Set of all available EventIDs
-
readDetails
-
initShutdownTask
-
deregisterShutdownTask
De-register the Shutdown task. -
writeEventNameDetails
- Throws:
IOException
-