@Override protected void setDoctype(final String doctype) { super.setDoctype(doctype); // Currently the only matrices-type is v1 if (MATRICES_V1.equals(doctype)) { this.delegate = new MatricesReaderMatsimV1(this.matrices); log.info("using matrices_v1-reader."); } else { throw new IllegalArgumentException("Doctype \"" + doctype + "\" not known."); } }
@Override protected void setDoctype(final String doctype) { super.setDoctype(doctype); // Currently the only events-type is v1 if (EVENTS_V1.equals(doctype)) { this.delegate = new EventsReaderXMLv1(this.events); log.info("using events_v1-reader."); } else { throw new IllegalArgumentException("Doctype \"" + doctype + "\" not known."); } } }
@Override protected void setDoctype(final String doctype) { super.setDoctype(doctype); // Currently the only counts-type is v1 if (COUNTS_V1.equals(doctype)) { this.delegate = new CountsReaderMatsimV1( coordinateTransformation , this.counts); log.info("using counts_v1-reader."); } else { throw new IllegalArgumentException("Doctype \"" + doctype + "\" not known."); } }
@Override protected void setDoctype(final String doctype) { super.setDoctype(doctype); // Currently the only facilities-type is v1 if (FACILITIES_V1.equals(doctype)) { this.delegate = new FacilitiesReaderMatsimV1(this.externalInputCRS, this.targetCRS, this.facilities); ((FacilitiesReaderMatsimV1)this.delegate).putAttributeConverters(this.attributeConverters); log.info("using facilities_v1-reader."); } else { throw new IllegalArgumentException("Doctype \"" + doctype + "\" not known."); } }
@Override protected void setDoctype(final String doctype) { super.setDoctype(doctype); // Currently the only config-type is v1 if (CONFIG_V1.equals(doctype)) { this.delegate = new ConfigReaderMatsimV1(this.config); log.info("using config_v1-reader."); } else if ( CONFIG_V2.equals( doctype ) ) { this.delegate = new ConfigReaderMatsimV2( this.config ); log.info( "using config_v2-reader" ); } else { throw new IllegalArgumentException("Doctype \"" + doctype + "\" not known."); } }
@Override protected void setDoctype(String doctype) { super.setDoctype(doctype); if ("transitSchedule_v2.dtd".equals(doctype)) { this.delegate = new TransitScheduleReaderV2(externalInputCRS, targetCRS, this.scenario); } else if ("transitSchedule_v1.dtd".equals(doctype)) { this.delegate = new TransitScheduleReaderV1( externalInputCRS != null ? TransformationFactory.getCoordinateTransformation(externalInputCRS, targetCRS) : new IdentityTransformation(), this.scenario); } else { throw new IllegalArgumentException("Unsupported doctype: " + doctype); } }
@Override protected void setDoctype(final String doctype) { super.setDoctype(doctype); switch ( doctype ) { case NETWORK_V1: this.delegate = new NetworkReaderMatsimV1( inputCRS != null ? TransformationFactory.getCoordinateTransformation(inputCRS, targetCRS) : new IdentityTransformation(), this.network); log.info("using network_v1-reader."); break; case NETWORK_V2: this.delegate = new NetworkReaderMatsimV2(inputCRS, targetCRS, this.network); ((NetworkReaderMatsimV2) delegate).putAttributeConverters( converters ); log.info("using network_v2-reader."); break; default: throw new IllegalArgumentException("Doctype \"" + doctype + "\" not known."); } }
@Override protected void setDoctype(final String doctype) { super.setDoctype(doctype);
setDoctype(shortSystemId);