Examples of addAllocation()


Examples of trams.data.Route.addAllocation()

        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);
        theRoute.addTimetable("myTimetable", createAndStoreTimetable("myTimetable", Calendar.getInstance(), Calendar.getInstance(), sp));
       
        //session.save(theRoute);
        //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.