Examples of addStop()


Examples of trams.data.Route.addStop()

      //Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        //session.beginTransaction();
       
        Route theRoute = new Route();
        theRoute.setRouteNumber("155");
        theRoute.addStop("Rathaus Pankow", Route.OUTWARDSTOPS);
        theRoute.addStop("Pankow Kirche", Route.OUTWARDSTOPS);
        theRoute.addStop("S + U Pankow", Route.OUTWARDSTOPS);
        theRoute.addStop("S + U Pankow", Route.RETURNSTOPS);
        theRoute.addStop("Pankow Kirche", Route.RETURNSTOPS);
        theRoute.addStop("Rathaus Pankow", Route.RETURNSTOPS);
View Full Code Here

Examples of trams.data.Route.addStop()

        //session.beginTransaction();
       
        Route theRoute = new Route();
        theRoute.setRouteNumber("155");
        theRoute.addStop("Rathaus Pankow", Route.OUTWARDSTOPS);
        theRoute.addStop("Pankow Kirche", Route.OUTWARDSTOPS);
        theRoute.addStop("S + U Pankow", Route.OUTWARDSTOPS);
        theRoute.addStop("S + U Pankow", Route.RETURNSTOPS);
        theRoute.addStop("Pankow Kirche", Route.RETURNSTOPS);
        theRoute.addStop("Rathaus Pankow", Route.RETURNSTOPS);
        List<RouteSchedule> theRouteSchedulesList = new ArrayList<RouteSchedule>();
View Full Code Here

Examples of trams.data.Route.addStop()

       
        Route theRoute = new Route();
        theRoute.setRouteNumber("155");
        theRoute.addStop("Rathaus Pankow", Route.OUTWARDSTOPS);
        theRoute.addStop("Pankow Kirche", Route.OUTWARDSTOPS);
        theRoute.addStop("S + U Pankow", Route.OUTWARDSTOPS);
        theRoute.addStop("S + U Pankow", Route.RETURNSTOPS);
        theRoute.addStop("Pankow Kirche", Route.RETURNSTOPS);
        theRoute.addStop("Rathaus Pankow", Route.RETURNSTOPS);
        List<RouteSchedule> theRouteSchedulesList = new ArrayList<RouteSchedule>();
        theRouteSchedulesList.add(createAndStoreRouteSchedule("155", 1, 0));
View Full Code Here

Examples of trams.data.Route.addStop()

        Route theRoute = new Route();
        theRoute.setRouteNumber("155");
        theRoute.addStop("Rathaus Pankow", Route.OUTWARDSTOPS);
        theRoute.addStop("Pankow Kirche", Route.OUTWARDSTOPS);
        theRoute.addStop("S + U Pankow", Route.OUTWARDSTOPS);
        theRoute.addStop("S + U Pankow", Route.RETURNSTOPS);
        theRoute.addStop("Pankow Kirche", Route.RETURNSTOPS);
        theRoute.addStop("Rathaus Pankow", Route.RETURNSTOPS);
        List<RouteSchedule> theRouteSchedulesList = new ArrayList<RouteSchedule>();
        theRouteSchedulesList.add(createAndStoreRouteSchedule("155", 1, 0));
        theRoute.setRouteSchedules(theRouteSchedulesList);
View Full Code Here

Examples of trams.data.Route.addStop()

        theRoute.setRouteNumber("155");
        theRoute.addStop("Rathaus Pankow", Route.OUTWARDSTOPS);
        theRoute.addStop("Pankow Kirche", Route.OUTWARDSTOPS);
        theRoute.addStop("S + U Pankow", Route.OUTWARDSTOPS);
        theRoute.addStop("S + U Pankow", Route.RETURNSTOPS);
        theRoute.addStop("Pankow Kirche", Route.RETURNSTOPS);
        theRoute.addStop("Rathaus Pankow", Route.RETURNSTOPS);
        List<RouteSchedule> theRouteSchedulesList = new ArrayList<RouteSchedule>();
        theRouteSchedulesList.add(createAndStoreRouteSchedule("155", 1, 0));
        theRoute.setRouteSchedules(theRouteSchedulesList);
        theRoute.addAllocation(theRouteSchedulesList.get(0).toString(), createAndStoreVehicle("CV58 2XD", Calendar.getInstance(), DEPRECIATION_FACTOR, "image.png", "Mercedes", 40, 60, 200.99));
View Full Code Here

Examples of trams.data.Route.addStop()

        theRoute.addStop("Rathaus Pankow", Route.OUTWARDSTOPS);
        theRoute.addStop("Pankow Kirche", Route.OUTWARDSTOPS);
        theRoute.addStop("S + U Pankow", Route.OUTWARDSTOPS);
        theRoute.addStop("S + U Pankow", Route.RETURNSTOPS);
        theRoute.addStop("Pankow Kirche", Route.RETURNSTOPS);
        theRoute.addStop("Rathaus Pankow", Route.RETURNSTOPS);
        List<RouteSchedule> theRouteSchedulesList = new ArrayList<RouteSchedule>();
        theRouteSchedulesList.add(createAndStoreRouteSchedule("155", 1, 0));
        theRoute.setRouteSchedules(theRouteSchedulesList);
        theRoute.addAllocation(theRouteSchedulesList.get(0).toString(), createAndStoreVehicle("CV58 2XD", Calendar.getInstance(), DEPRECIATION_FACTOR, "image.png", "Mercedes", 40, 60, 200.99));
        ServicePattern sp = new ServicePattern("Mon-Fri","2,3,4,5,6","Rathaus Pankow","S + U Pankow",Calendar.getInstance(),Calendar.getInstance(),FREQUENCY,3);
View Full Code Here

Examples of trams.data.Route.addStop()

                //Now get the outward stops.
                NodeList outwardStopNodes = routeElement.getElementsByTagName("outstop");
                for ( int j = 0; j < outwardStopNodes.getLength(); j++ ) {
                    //Add each stop to the route object.
                    Element stopElement = (Element) outwardStopNodes.item(j);
                    route.addStop(stopElement.getAttribute("name"), Route.OUTWARDSTOPS);
                }
                //Now get the inward stops.
                NodeList inwardStopNodes = routeElement.getElementsByTagName("instop");
                for ( int j = 0; j < inwardStopNodes.getLength(); j++ ) {
                    //Add each stop to the route object.
View Full Code Here

Examples of trams.data.Route.addStop()

                //Now get the inward stops.
                NodeList inwardStopNodes = routeElement.getElementsByTagName("instop");
                for ( int j = 0; j < inwardStopNodes.getLength(); j++ ) {
                    //Add each stop to the route object.
                    Element stopElement = (Element) inwardStopNodes.item(j);
                    route.addStop(stopElement.getAttribute("name"), Route.RETURNSTOPS);
                }
                //Now go through and get the timetable elements.
                NodeList timetableNodes = routeElement.getElementsByTagName("timetable");
                for ( int j = 0; j < timetableNodes.getLength(); j++ ) {
                    Element timetableElement = (Element) timetableNodes.item(j);
View Full Code Here

Examples of trams.data.Service.addStop()

    private void createAndStoreService() {
        Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        session.beginTransaction();

        Service theService = new Service();
        theService.addStop(new Stop("Rathaus Pankow", Calendar.getInstance()));
        theService.addStop(new Stop("Pankow Kirche", Calendar.getInstance()));
        theService.addStop(new Stop("S + U Pankow", Calendar.getInstance()));
        session.save(theService);

        session.getTransaction().commit();
View Full Code Here

Examples of trams.data.Service.addStop()

        Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        session.beginTransaction();

        Service theService = new Service();
        theService.addStop(new Stop("Rathaus Pankow", Calendar.getInstance()));
        theService.addStop(new Stop("Pankow Kirche", Calendar.getInstance()));
        theService.addStop(new Stop("S + U Pankow", Calendar.getInstance()));
        session.save(theService);

        session.getTransaction().commit();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.