Class PlanitIntermodalReaderFactory


  • public class PlanitIntermodalReaderFactory
    extends Object
    Factory class for creating zoning reader in the native PLANit format
    Author:
    markr
    • Constructor Detail

      • PlanitIntermodalReaderFactory

        public PlanitIntermodalReaderFactory()
    • Method Detail

      • create

        public static PlanitIntermodalReader create()
                                             throws PlanItException
        Factory method based on all defaults. IT is expected that the user will set the necessary settings via the exposed settings
        Returns:
        created reader
        Throws:
        PlanItException - thrown if error
      • create

        public static PlanitIntermodalReader create​(org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork,
                                                    org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning,
                                                    MacroscopicNetwork network,
                                                    Zoning zoning)
                                             throws PlanItException
        constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model
        Parameters:
        xmlRawNetwork - to extract from
        xmlRawZoning - to extract from
        network - to extract references from (if any)
        zoning - to populate
        Returns:
        created reader
        Throws:
        PlanItException - thrown if error