Class PlanitDemandsWriter

    • Constructor Detail

      • PlanitDemandsWriter

        protected PlanitDemandsWriter​(PlanitDemandsWriterSettings settings,
                                      org.goplanit.xml.generated.XMLElementMacroscopicDemand xmlRawDemands)
        Constructor
        Parameters:
        settings - to use
        xmlRawDemands - to populate and persist
      • PlanitDemandsWriter

        protected PlanitDemandsWriter​(PlanitDemandsWriterSettings settings,
                                      Zoning referenceZoning,
                                      org.goplanit.xml.generated.XMLElementMacroscopicDemand xmlRawDemands)
        Constructor
        Parameters:
        settings - to use
        referenceZoning - to use
        xmlRawDemands - to populate and persist
    • Method Detail

      • reset

        public void reset()
        reset the reader to allow for marking unnecessary resources for garbage collection
        Specified by:
        reset in interface ConverterEntity
      • setReferenceZoning

        public void setReferenceZoning​(Zoning referenceZoning)
        each demands writer is expected to ensure that its demand relate to a zoning this reference zoning can be set. To avoid the user having to do this manualy when using a converter, the converter will do this for the user. This in turn requires a mechanism on each demands writer to provide the reference zoning to the demands writer. This is what this method does.
        Specified by:
        setReferenceZoning in interface DemandsWriter
        Parameters:
        referenceZoning - to supply demands writer with (before invoking ConverterWriter.write(Object)