Package de.dermoba.srcp.model.routes

Examples of de.dermoba.srcp.model.routes.SRCPRouteItem


        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()
                        .equals("RIGHT")) {

                    sRouteItem.setRoutedState(SRCPTurnoutState.RIGHT);
                } else if (routeItem.getRoutedState().toUpperCase()
                        .equals("STRAIGHT")) {

                    sRouteItem.setRoutedState(SRCPTurnoutState.STRAIGHT);
                } else {

                    sRouteItem.setRoutedState(SRCPTurnoutState.UNDEF);
                }
                sRoute.addRouteItem(sRouteItem);
            }
            routesSRCPRoutesMap.put(route, sRoute);
            SRCPRoutesRoutesMap.put(sRoute, route);
View Full Code Here

TOP

Related Classes of de.dermoba.srcp.model.routes.SRCPRouteItem

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.