Package ch.fork.AdHocRailway.domain.turnouts

Examples of ch.fork.AdHocRailway.domain.turnouts.SRCPTurnoutControlAdapter


    public void update() {
        routesSRCPRoutesMap.clear();
        SRCPRoutesRoutesMap.clear();
        routeControl.removeRouteChangeListener(this);
        SRCPTurnoutControlAdapter turnoutControl = SRCPTurnoutControlAdapter
                .getInstance();
        routeControl.setRoutingDelay(Preferences.getInstance().getIntValue(
                PreferencesKeys.ROUTING_DELAY));

        for (Route route : persistence.getAllRoutes()) {
            SRCPRoute sRoute = new SRCPRoute();
            for (RouteItem routeItem : route.getRouteItems()) {

                SRCPRouteItem sRouteItem = new SRCPRouteItem();
                SRCPTurnout sTurnout = turnoutControl.getSRCPTurnout(routeItem
                        .getTurnout());
                sRouteItem.setTurnout(sTurnout);
                if (routeItem.getRoutedState().toUpperCase().equals("LEFT")) {
                    sRouteItem.setRoutedState(SRCPTurnoutState.LEFT);
                } else if (routeItem.getRoutedState().toUpperCase()
View Full Code Here

TOP

Related Classes of ch.fork.AdHocRailway.domain.turnouts.SRCPTurnoutControlAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.