|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.automat.AutomatSummary
public class 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 it's own listeners.
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener p)
|
AbstractAutomaton |
get(int i)
|
AbstractAutomaton |
get(String name)
Provide a convenience method to look up a managed object by it's name. |
int |
indexOf(AbstractAutomaton a)
|
static AutomatSummary |
instance()
|
int |
length()
|
void |
loop(AbstractAutomaton a)
An AbstractAutomaton instance uses this method to notify interested parties that it's gone around it's handle loop again. |
void |
register(AbstractAutomaton a)
A newly-created AbstractAutomaton instance uses this method to notify interested parties of it's existance. |
void |
remove(AbstractAutomaton a)
Just before exiting, an AbstractAutomaton instance uses this method to notify interested parties of it's departure. |
void |
removePropertyChangeListener(PropertyChangeListener p)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AutomatSummary instance()
public void removePropertyChangeListener(PropertyChangeListener p)
public void addPropertyChangeListener(PropertyChangeListener p)
public void register(AbstractAutomaton a)
public void remove(AbstractAutomaton a)
public int length()
public AbstractAutomaton get(int i)
public AbstractAutomaton get(String name)
name - Name of the automat to be located
public int indexOf(AbstractAutomaton a)
public void loop(AbstractAutomaton a)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||