Class Converter<T>

  • Type Parameters:
    T - planit entity to convert
    Direct Known Subclasses:
    NetworkConverter, ZoningConverter

    public abstract class Converter<T>
    extends ConverterBase
    Convert PLANit entities parsed by a reader from one format and persisted with a writer to another
    Author:
    markr
    • Constructor Detail

      • Converter

        protected Converter​(ConverterReader<T> reader,
                            ConverterWriter<T> writer)
        constructor
        Parameters:
        reader - to use for parsing
        writer - to use for persisting
    • Method Detail

      • convert

        public void convert()
                     throws PlanItException
        Convert the reader's parsed content by passing it on to the writer. It is assumed both reader and writer are fully configured when this method is called
        Specified by:
        convert in class ConverterBase
        Throws:
        PlanItException - thrown if error