Class MatsimZoningWriter

    • Field Detail

      • DOCTYPE

        public static final String DOCTYPE
        the doc type of MATSIM public transport schedule. For now we persist in v1 (v2 does exist but is not documented (yet) in Matsim manual)
        See Also:
        Constant Field Values
    • Constructor Detail

      • MatsimZoningWriter

        protected MatsimZoningWriter​(MatsimZoningWriterSettings zoningWriterSettings,
                                     MatsimNetworkWriterSettings networkWriterSettings)
        constructor
        Parameters:
        zoningWriterSettings - to use
        networkWriterSettings - the network was configured by when persisting
    • Method Detail

      • writeXmlTransitScheduleFile

        protected void writeXmlTransitScheduleFile​(Zoning zoning)
                                            throws PlanItException
        Starting point for persisting the matsim transit schedule file
        Parameters:
        zoning - to persist
        Throws:
        PlanItException - thrown if error
      • write

        public void write​(Zoning zoning)
                   throws PlanItException
        extract public transport information from planit zoning and use it to persist as much of the matsim public transport xml's as possible
        Specified by:
        write in interface ConverterWriter<Zoning>
        Parameters:
        zoning - to use for matsim pt persistence
        Throws:
        PlanItException - thrown if error
      • reset

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