Package org.matsim.pt.utils
Class TransitScheduleValidator
- java.lang.Object
-
- org.matsim.pt.utils.TransitScheduleValidator
-
public abstract class TransitScheduleValidator extends Object
An abstract class offering a number of static methods to validate several aspects of transit schedules.- Author:
- mrieser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransitScheduleValidator.ValidationResult
-
Method Summary
-
-
-
Method Detail
-
validateNetworkRoutes
public static TransitScheduleValidator.ValidationResult validateNetworkRoutes(TransitSchedule schedule, Network network)
Checks that the links specified for a network route really builds a complete route that can be driven along.- Parameters:
schedule
-network
-- Returns:
-
validateStopsOnNetworkRoute
public static TransitScheduleValidator.ValidationResult validateStopsOnNetworkRoute(TransitSchedule schedule, Network network)
Checks that all the listed stops in a route appear in that order when driving along the network route- Parameters:
schedule
-network
-- Returns:
-
validateUsedStopsHaveLinkId
public static TransitScheduleValidator.ValidationResult validateUsedStopsHaveLinkId(TransitSchedule schedule)
-
validateAllStopsExist
public static TransitScheduleValidator.ValidationResult validateAllStopsExist(TransitSchedule schedule)
-
validateOffsets
public static TransitScheduleValidator.ValidationResult validateOffsets(TransitSchedule schedule)
-
validateTransfers
public static TransitScheduleValidator.ValidationResult validateTransfers(TransitSchedule schedule)
-
validateAll
public static TransitScheduleValidator.ValidationResult validateAll(TransitSchedule schedule, Network network)
-
printResult
public static void printResult(TransitScheduleValidator.ValidationResult result)
-
main
public static void main(String[] args) throws IOException, SAXException, ParserConfigurationException
- Parameters:
args
- [0] path to transitSchedule.xml, [1] path to network.xml (optional)- Throws:
IOException
SAXException
ParserConfigurationException
-
-