Class PlanitNetworkReader

  • All Implemented Interfaces:
    NetworkReader

    public class PlanitNetworkReader
    extends PlanitXmlReader<org.planit.xml.generated.XMLElementMacroscopicNetwork>
    implements NetworkReader
    Implementation of the network reader for the PLANit XML native format
    Author:
    gman, markr
    • Field Detail

      • NETWORK_XSD_FILE

        public static final String NETWORK_XSD_FILE
        Default XSD files used to validate input XML files against TODO: replace with online schema
        See Also:
        Constant Field Values
    • Constructor Detail

      • PlanitNetworkReader

        public PlanitNetworkReader​(org.planit.xml.generated.XMLElementMacroscopicNetwork externalXmlRawNetwork,
                                   InfrastructureNetwork network)
                            throws PlanItException
        constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model
        Parameters:
        externalXmlRawNetwork - to extract from
        network - to populate
        Throws:
        PlanItException - thrown if error