Class PlanitServiceNetworkReader

    • Field Detail

      • SERVICE_NETWORK_XSD_FILE

        public static final String SERVICE_NETWORK_XSD_FILE
        Default XSD files used to validate input XML files against, TODO: move to properties file
        See Also:
        Constant Field Values
    • Constructor Detail

      • PlanitServiceNetworkReader

        protected PlanitServiceNetworkReader​(org.goplanit.xml.generated.XMLElementServiceNetwork populatedXmlRawServiceNetwork,
                                             ServiceNetwork serviceNetwork)
                                      throws PlanItException
        Constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model
        Parameters:
        populatedXmlRawServiceNetwork - to extract from
        serviceNetwork - to populate
        Throws:
        PlanItException - thrown if error
      • PlanitServiceNetworkReader

        protected PlanitServiceNetworkReader​(String networkPathDirectory,
                                             String xmlFileExtension,
                                             ServiceNetwork serviceNetwork)
                                      throws PlanItException
        Constructor
        Parameters:
        networkPathDirectory - to use
        xmlFileExtension - to use
        serviceNetwork - to populate
        Throws:
        PlanItException - thrown if error