Package org.goplanit.converter.demands
Class DemandsConverter
- java.lang.Object
-
- org.goplanit.converter.ConverterBase
-
- org.goplanit.converter.Converter<Demands>
-
- org.goplanit.converter.demands.DemandsConverter
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDemandsConverter(DemandsReader reader, DemandsWriter writer)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DemandsReadergetReader()get the readerDemandsWritergetWriter()get the writerprotected voidwrite(Demands demands)make sure the demands have access to the reference zoning by taking it from the reader and placing it on the writer (if not already available)
-
-
-
Constructor Detail
-
DemandsConverter
protected DemandsConverter(DemandsReader reader, DemandsWriter writer)
constructor- Parameters:
reader- to use for parsingwriter- to use for persisting
-
-
Method Detail
-
write
protected void write(Demands demands) throws PlanItException
make sure the demands have access to the reference zoning by taking it from the reader and placing it on the writer (if not already available)- Overrides:
writein classConverter<Demands>- Parameters:
demands- demands to write- Throws:
PlanItException- thrown when error
-
getReader
public DemandsReader getReader()
get the reader- Overrides:
getReaderin classConverterBase- Returns:
- the reader
-
getWriter
public DemandsWriter getWriter()
get the writer- Overrides:
getWriterin classConverterBase- Returns:
- the writer
-
-