|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.InstanceManager
public class InstanceManager
Provides static members for locating various interface implementations. These are the base of how JMRI objects are located.
The implementations of these interfaces are specific to the layout hardware, etc. During initialization, objects of the right type are created and registered with the ImplementationManager class, so they can later be retrieved by non-system-specific code.
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 | |
|---|---|
protected static InstanceManager |
root
The "root" object is the instance manager that's answering requests for other instances. |
| Constructor Summary | |
|---|---|
InstanceManager()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static InstanceManager root
| Constructor Detail |
|---|
public InstanceManager()
| Method Detail |
|---|
public static <T> void store(T val,
Class<T> type)
public static <T> List<Object> getList(Class<T> type)
public static <T> void reset(Class<T> type)
public static <T> void deregister(T val,
Class<T> type)
public static <T> T getDefault(Class<T> type)
public static <T> void setDefault(Class<T> type,
T val)
public static String contentsToString()
public static PowerManager powerManagerInstance()
public static void setPowerManager(PowerManager p)
public static ProgrammerManager programmerManagerInstance()
public static void setProgrammerManager(ProgrammerManager p)
public static SensorManager sensorManagerInstance()
public static TurnoutManager turnoutManagerInstance()
public static LightManager lightManagerInstance()
public static ConfigureManager configureManagerInstance()
public static ThrottleManager throttleManagerInstance()
public static SignalHeadManager signalHeadManagerInstance()
public static SignalMastManager signalMastManagerInstance()
public static void setSignalMastManager(SignalMastManager p)
public static SignalSystemManager signalSystemManagerInstance()
public static void setSignalSystemManager(SignalSystemManager p)
public static SignalGroupManager signalGroupManagerInstance()
public static void setSignalGroupManager(SignalGroupManager p)
public static BlockManager blockManagerInstance()
public static OBlockManager oBlockManagerInstance()
public static WarrantManager warrantManagerInstance()
public static SectionManager sectionManagerInstance()
public static TransitManager transitManagerInstance()
public static SignalMastLogicManager signalMastLogicManagerInstance()
public static RouteManager routeManagerInstance()
public static LayoutBlockManager layoutBlockManagerInstance()
public static ConditionalManager conditionalManagerInstance()
public static LogixManager logixManagerInstance()
public static ShutDownManager shutDownManagerInstance()
public static TabbedPreferences tabbedPreferencesInstance()
public static Timebase timebaseInstance()
public static ClockControl clockControlInstance()
public static void addClockControl(ClockControl cc)
public static ConsistManager consistManagerInstance()
public static CommandStation commandStationInstance()
public static ReporterManager reporterManagerInstance()
public static CatalogTreeManager catalogTreeManagerInstance()
public static MemoryManager memoryManagerInstance()
public static AudioManager audioManagerInstance()
public static RosterIconFactory rosterIconFactoryInstance()
protected void init()
public static void setSensorManager(SensorManager p)
protected void addSensorManager(SensorManager p)
public static void setTurnoutManager(TurnoutManager p)
protected void addTurnoutManager(TurnoutManager p)
public static void setLightManager(LightManager p)
protected void addLightManager(LightManager p)
public static void setConfigureManager(ConfigureManager p)
protected void addConfigureManager(ConfigureManager p)
public static void setThrottleManager(ThrottleManager p)
public static void setSignalHeadManager(SignalHeadManager p)
protected void addSignalHeadManager(SignalHeadManager p)
@Deprecated public static void setRouteManager(RouteManager p)
public static void setLayoutBlockManager(LayoutBlockManager p)
protected void addLayoutBlockManager(LayoutBlockManager p)
public static void setConditionalManager(ConditionalManager p)
protected void addConditionalManager(ConditionalManager p)
public static void setLogixManager(LogixManager p)
protected void addLogixManager(LogixManager p)
public static void setShutDownManager(ShutDownManager p)
protected void addShutDownManager(ShutDownManager p)
public static void setTabbedPreferences(TabbedPreferences p)
protected void addTabbedPreferences(TabbedPreferences p)
public static void setConsistManager(ConsistManager p)
protected void addConsistManager(ConsistManager p)
public static void setCommandStation(CommandStation p)
public static void setReporterManager(ReporterManager p)
protected void addReporterManager(ReporterManager p)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||