001package jmri.jmrit.withrottle;
002
003import jmri.InstanceManagerAutoDefault;
004
005/**
006 * @author Brett Hoffman Copyright (C) 2010
007 */
008public class WiThrottleManager implements InstanceManagerAutoDefault {
009
010    private TrackPowerController trackPowerController = null;
011    private TurnoutController turnoutController = null;
012    private RouteController routeController = null;
013    private ConsistController consistController = null;
014    private FastClockController fastClockController = null;
015
016    public WiThrottleManager() {
017    }
018
019    public TrackPowerController getTrackPowerController() {
020        if (trackPowerController == null) {
021            trackPowerController = new TrackPowerController();
022        }
023        return trackPowerController;
024    }
025
026    public TurnoutController getTurnoutController() {
027        if (turnoutController == null) {
028            turnoutController = new TurnoutController();
029        }
030        return turnoutController;
031    }
032
033    public RouteController getRouteController() {
034        if (routeController == null) {
035            routeController = new RouteController();
036        }
037        return routeController;
038    }
039
040    public ConsistController getConsistController() {
041        if (consistController == null) {
042            consistController = new ConsistController();
043        }
044        return consistController;
045    }
046    
047    public FastClockController getFastClockController() {
048        if (fastClockController == null) {
049            fastClockController = new FastClockController();
050        }
051        return fastClockController;
052    }
053
054}