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 protected
DemandsConverter(DemandsReader reader, DemandsWriter writer)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DemandsReader
getReader()
get the readerDemandsWriter
getWriter()
get the writerprotected void
write(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:
write
in classConverter<Demands>
- Parameters:
demands
- demands to write- Throws:
PlanItException
- thrown when error
-
getReader
public DemandsReader getReader()
get the reader- Overrides:
getReader
in classConverterBase
- Returns:
- the reader
-
getWriter
public DemandsWriter getWriter()
get the writer- Overrides:
getWriter
in classConverterBase
- Returns:
- the writer
-
-