1 package org.matsim.core.population.routes.heavycompressed;
30 if (this.network==null) {
31 throw new RuntimeException(
"need to set Network in Population in order to be able to create compressed routes") ;
33 if (this.compressionData == null) {
35 this.compressionData = createCompressionData(this.network, subsequentLinks);
40 static CompressionData createCompressionData(
Network network,
Link[] subsequentLinks) {
43 links[link.getId().index()] = link;
45 return new CompressionData(links, subsequentLinks);
53 record CompressionData(
Link[] links,
Link[] subsequentLinks) {
static< T > int getNumberOfIds(final Class< T > type)
Link [] getSubsequentLinks()
CompressionData compressionData
String getCreatedRouteType()
HeavyCompressedNetworkRouteFactory(Network network, String preferredMode)
final String preferredMode
NetworkRoute createRoute(final Id< Link > startLinkId, final Id< Link > endLinkId)
Map< Id< Link >, ? extends Link > getLinks()