Package org.planit.io.intermodal
Class PlanitInterModalReader
- java.lang.Object
- 
- org.planit.io.xml.util.PlanitXmlReader<org.planit.xml.generated.XMLElementMacroscopicIntermodal>
- 
- org.planit.io.intermodal.PlanitInterModalReader
 
 
- 
 public class PlanitInterModalReader extends PlanitXmlReader<org.planit.xml.generated.XMLElementMacroscopicIntermodal> Class to parse intermodal components from native XML format. Since the transfers occur at transfer zones which are closely related to regular (OD) zones, the intermodal memory model is closely related to theZoningclass- Author:
- markr
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected PlanitInterModalReaderSettingssettingssettings for the zoning readerprotected Zoningzoningthe zoning to populate
 - 
Constructor SummaryConstructors Constructor Description PlanitInterModalReader(String pathDirectory, String xmlFileExtension, Zoning zoning)constructorPlanitInterModalReader(org.planit.xml.generated.XMLElementMacroscopicIntermodal xmlElementMacroscopicIntermodal, Zoning zoning)constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description PlanitInterModalReaderSettingsgetSettings()settings for this readerZoningread(InfrastructureNetwork network, Map<String,Node> nodesByXmlIds)read the zoning from diskprotected voidsetZoning(Zoning zoning)set the oning to populate- 
Methods inherited from class org.planit.io.xml.util.PlanitXmlReaderclearXmlContent, getXmlRootElement, initialiseAndParseXmlRootElement
 
- 
 
- 
- 
- 
Field Detail- 
settingsprotected final PlanitInterModalReaderSettings settings settings for the zoning reader
 - 
zoningprotected Zoning zoning the zoning to populate
 
- 
 - 
Constructor Detail- 
PlanitInterModalReaderpublic PlanitInterModalReader(String pathDirectory, String xmlFileExtension, Zoning zoning) throws PlanItException constructor- Parameters:
- pathDirectory- to use
- xmlFileExtension- to use
- zoning- to populate
- Throws:
- PlanItException- thrown if error
 
 - 
PlanitInterModalReaderpublic PlanitInterModalReader(org.planit.xml.generated.XMLElementMacroscopicIntermodal xmlElementMacroscopicIntermodal, Zoning zoning) throws PlanItExceptionconstructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model- Parameters:
- xmlElementMacroscopicIntermodal- to extract from
- zoning- to populate
- Throws:
- PlanItException- thrown if error
 
 
- 
 - 
Method Detail- 
setZoningprotected void setZoning(Zoning zoning) set the oning to populate- Parameters:
- zoning- to populate
 
 - 
readpublic Zoning read(InfrastructureNetwork network, Map<String,Node> nodesByXmlIds) throws PlanItException read the zoning from disk- Parameters:
- network- this zoning is compatible with
- nodesByXmlIds- to identify mapping between zones and network
- Returns:
- zoning parsed
- Throws:
- PlanItException- thrown if error
 
 - 
getSettingspublic PlanitInterModalReaderSettings getSettings() settings for this reader- Returns:
- settings
 
 
- 
 
-