Class DemandsPopulator


  • public class DemandsPopulator
    extends Object
    This class contains methods to populate the Demands object using input values from the XML demands input file.
    Author:
    gman6028
    • Constructor Detail

      • DemandsPopulator

        public DemandsPopulator()
    • Method Detail

      • createAndRegisterDemandMatrix

        public static void createAndRegisterDemandMatrix​(Demands demands,
                                                         List<org.planit.xml.generated.XMLElementOdMatrix> oddemands,
                                                         Zoning.Zones zones,
                                                         InputBuilderListener inputBuilderListener)
                                                  throws Exception
        Creates a ODDemandMatrix object from a List of Odmatrix objects read in from the XML input file and registers it in the Demands object
        Parameters:
        demands - the PlanIt Demands object to be populated
        oddemands - List of generated XMLElementOdMatrix objects with data from the XML input file
        zones - zones in the current network
        inputBuilderListener - InputBuilderListener containing zones by external Id
        Throws:
        Exception - thrown if there is an error during processing