Package jmri.jmrit.automat
Class AutomatSummary
java.lang.Object
jmri.jmrit.automat.AutomatSummary
A singlet providing access to information about existing Automat instances.
It might not always be a singlet, however, so for now we're going through an explicit instance() reference.
This can be invoked from various threads, so switches to the Swing thread to notify its own listeners.
-
Method Summary
Modifier and TypeMethodDescriptionvoidget(int i) Provide a convenience method to look up a managed object by its name.intstatic AutomatSummaryinstance()intlength()voidAn AbstractAutomaton instance uses this method to notify interested parties that it's gone around its handle loop again.(package private) voidvoidA newly-created AbstractAutomaton instance uses this method to notify interested parties of its existence.voidJust before exiting, an AbstractAutomaton instance uses this method to notify interested parties of its departure.void
-
Method Details
-
instance
-
removePropertyChangeListener
-
addPropertyChangeListener
-
register
A newly-created AbstractAutomaton instance uses this method to notify interested parties of its existence.- Parameters:
a- the automaton to register
-
remove
Just before exiting, an AbstractAutomaton instance uses this method to notify interested parties of its departure.- Parameters:
a- the automaton to remove
-
getAutomats
-
length
-
get
-
get
Provide a convenience method to look up a managed object by its name.- Parameters:
name- Name of the automat to be located- Returns:
- null if name not found
- Since:
- 1.7.3
-
indexOf
-
loop
An AbstractAutomaton instance uses this method to notify interested parties that it's gone around its handle loop again.- Parameters:
a- the looping automaton
-
notify
-