Class TntpDemandsReader

    • Constructor Detail

      • TntpDemandsReader

        protected TntpDemandsReader​(TntpDemandsReaderSettings settings,
                                    MacroscopicNetwork referenceNetwork,
                                    Zoning referenceZoning,
                                    Demands demandsToPopulate)
        Constructor
        Parameters:
        settings - to use
        referenceNetwork - to use
        referenceZoning - to use
        demandsToPopulate - to use
    • Method Detail

      • read

        public Demands read()
        parse the network based on the configuration of the implementing class to yield a PLANit network
        Specified by:
        read in interface ConverterReader<Demands>
        Returns:
        parsed network
      • getReferenceZoning

        public Zoning getReferenceZoning()
        Description copied from interface: DemandsReader
        each demands reader is expected to ensure that its demand relates to a zoning this reference zoning can be obtained (after reading is complete). the converter uses this to avoid the user having to manually transfer this zoning to the writer which also requires this same zoning consistency This is what this method enables
        Specified by:
        getReferenceZoning in interface DemandsReader
        Returns:
        referenceZoning to supply demands writer with (after invoking ConverterReader.read()