MATSIM
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams Class Reference
Inheritance diagram for org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams:
Inheritance graph
[legend]

Public Member Functions

 TeleportedModeParams (final String mode)
 
 TeleportedModeParams ()
 
void checkConsistency (Config config)
 
Map< String, String > getComments ()
 
final Double getTeleportedModeFreespeedLimit ()
 
TeleportedModeParams setTeleportedModeFreespeedLimit (Double teleportedModeFreespeedLimit)
 
String getMode ()
 
TeleportedModeParams setMode (String mode)
 
Double getTeleportedModeSpeed ()
 
TeleportedModeParams setTeleportedModeSpeed (Double teleportedModeSpeed)
 
Double getTeleportedModeFreespeedFactor ()
 
TeleportedModeParams setTeleportedModeFreespeedFactor (Double teleportedModeFreespeedFactor)
 
TeleportedModeParams setBeelineDistanceFactor (Double val)
 
Double getBeelineDistanceFactor ()
 
final void addParam (final String param_name, final String value)
 
void handleAddUnknownParam (final String paramName, final String value)
 
final String getValue (final String param_name)
 
String handleGetUnknownValue (final String paramName)
 
final String toString ()
 
final Map< String, String > getParams ()
 
final String getName ()
 
ConfigGroup createParameterSet (final String type)
 
void addParameterSet (final ConfigGroup set)
 
boolean removeParameterSet (final ConfigGroup set)
 
final Collection<? extends ConfigGroupgetParameterSets (final String type)
 
final Map< String, ? extends Collection<? extends ConfigGroup > > getParameterSets ()
 
final boolean isLocked ()
 
void setLocked ()
 
final void testForLocked ()
 

Static Public Member Functions

static URL getInputFileURL (URL context, String filename)
 

Static Public Attributes

static final String SET_TYPE = "teleportedModeParameters"
 
static final String MODE = "mode"
 
static final String TELEPORTED_MODE_FREESPEED_FACTOR = "teleportedModeFreespeedFactor"
 

Protected Member Functions

void addParameterToMap (final Map< String, String > map, final String paramName)
 
void checkParameterSet (final ConfigGroup set)
 
final Collection<? extends ConfigGroupclearParameterSetsForType (final String type)
 

Private Attributes

String mode = null
 
Double teleportedModeSpeed = null
 
Double beelineDistanceFactorForMode = null
 
Double teleportedModeFreespeedFactor = null
 
Double teleportedModeFreespeedLimit = Double.POSITIVE_INFINITY
 

Static Private Attributes

static final String TELEPORTED_MODE_FREESPEED_FACTOR_CMT
 
static final String TELEPORTED_MODE_FREESPEED_LIMIT_CMT
 

Detailed Description

Definition at line 144 of file RoutingConfigGroup.java.

Constructor & Destructor Documentation

◆ TeleportedModeParams() [1/2]

org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.TeleportedModeParams ( final String  mode)

◆ TeleportedModeParams() [2/2]

org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.TeleportedModeParams ( )

Member Function Documentation

◆ checkConsistency()

void org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.checkConsistency ( Config  config)

Definition at line 177 of file RoutingConfigGroup.java.

177  {
178  if ( mode == null ) throw new RuntimeException( "mode for parameter set "+this+" is null!" );
179 
180  if ( teleportedModeSpeed == null && teleportedModeFreespeedFactor == null ) {
181  throw new RuntimeException( "no teleported mode speed nor freespeed factor defined for mode "+mode );
182  }
183 
184  if ( teleportedModeSpeed != null && teleportedModeFreespeedFactor != null ) {
185  // this should not happen anyway as the setters forbid it
186  throw new RuntimeException( "both teleported mode speed or freespeed factor are set for mode "+mode );
187  }
188  }

◆ getComments()

Map<String, String> org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.getComments ( )

Definition at line 191 of file RoutingConfigGroup.java.

191  {
192  final Map<String, String> map = super.getComments();
193 
194  map.put( "teleportedModeSpeed" ,
195  "Speed for a teleported mode. " +
196  "Travel time = (<beeline distance> * beelineDistanceFactor) / teleportedModeSpeed. Insert a line like this for every such mode.");
198 
199  return map;
200  }

◆ getTeleportedModeFreespeedLimit()

final Double org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.getTeleportedModeFreespeedLimit ( )

◆ setTeleportedModeFreespeedLimit()

TeleportedModeParams org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.setTeleportedModeFreespeedLimit ( Double  teleportedModeFreespeedLimit)

◆ getMode()

String org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.getMode ( )

◆ setMode()

TeleportedModeParams org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.setMode ( String  mode)

◆ getTeleportedModeSpeed()

Double org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.getTeleportedModeSpeed ( )

◆ setTeleportedModeSpeed()

TeleportedModeParams org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.setTeleportedModeSpeed ( Double  teleportedModeSpeed)

Definition at line 239 of file RoutingConfigGroup.java.

References org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.getMode(), org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.getTeleportedModeFreespeedFactor(), org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.TELEPORTED_MODE_FREESPEED_FACTOR, org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.teleportedModeSpeed, and org.matsim.core.config.ConfigGroup.testForLocked().

Referenced by org.matsim.core.config.groups.RoutingConfigGroup.RoutingConfigGroup(), and org.matsim.core.config.groups.RoutingConfigGroup.setTeleportedModeSpeed().

239  {
240  testForLocked() ;
241  if ( getTeleportedModeFreespeedFactor() != null && teleportedModeSpeed != null ) {
242  throw new IllegalStateException( "cannot set both speed and freespeed factor for "+getMode() );
243  }
245  return this;
246  }
Here is the call graph for this function:

◆ getTeleportedModeFreespeedFactor()

Double org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.getTeleportedModeFreespeedFactor ( )

◆ setTeleportedModeFreespeedFactor()

TeleportedModeParams org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.setTeleportedModeFreespeedFactor ( Double  teleportedModeFreespeedFactor)
Parameters
teleportedModeFreespeedFactor– { TELEPORTED_MODE_FREESPEED_FACTOR_CMT}

Definition at line 260 of file RoutingConfigGroup.java.

References org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.getMode(), org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.getTeleportedModeSpeed(), org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.teleportedModeFreespeedFactor, and org.matsim.core.config.ConfigGroup.testForLocked().

Referenced by org.matsim.core.config.groups.RoutingConfigGroup.RoutingConfigGroup(), and org.matsim.core.config.groups.RoutingConfigGroup.setTeleportedModeFreespeedFactor().

261  {
262  testForLocked() ;
263  if ( getTeleportedModeSpeed() != null && teleportedModeFreespeedFactor != null ) {
264  throw new IllegalStateException( "cannot set both speed and freespeed factor for "+getMode() );
265  }
267  return this;
268  }
Here is the call graph for this function:

◆ setBeelineDistanceFactor()

TeleportedModeParams org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.setBeelineDistanceFactor ( Double  val)

◆ getBeelineDistanceFactor()

Double org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.getBeelineDistanceFactor ( )

◆ addParam()

final void org.matsim.core.config.ReflectiveConfigGroup.addParam ( final String  param_name,
final String  value 
)
inherited

Definition at line 276 of file ReflectiveConfigGroup.java.

References org.matsim.core.config.ConfigGroup.getName(), org.matsim.core.config.ReflectiveConfigGroup.handleAddUnknownParam(), org.matsim.core.config.ReflectiveConfigGroup.invokeSetter(), and org.matsim.core.config.ReflectiveConfigGroup.setParamField().

Referenced by org.matsim.core.config.groups.ScoringConfigGroup.addParam(), and org.matsim.core.config.groups.ReplanningConfigGroup.addParam().

276  {
277  var setter = setters.get(param_name);
278  if (setter != null) {
279  invokeSetter(setter, value);
280  log.trace("value {} successfully set for field {} for group {}", value, param_name, getName());
281  return;
282  }
283 
284  var field = paramFields.get(param_name);
285  if (field != null) {
286  setParamField(field, value);
287  log.trace("value {} successfully set for field {} for group {}", value, param_name, getName());
288  return;
289  }
290 
291  this.handleAddUnknownParam(param_name, value);
292  }
void handleAddUnknownParam(final String paramName, final String value)
void invokeSetter(final Method setter, final String value)
void setParamField(Field paramField, String value)
Here is the call graph for this function:

◆ handleAddUnknownParam()

void org.matsim.core.config.ReflectiveConfigGroup.handleAddUnknownParam ( final String  paramName,
final String  value 
)
inherited

This method is designed to be overwritten if a config group wants to provide custom handling for unknown parameters, e.g. for improved backwards compatibility. For example: It allows to convert (old-named) parameter values to different units and store them with the new name (old parameter could be km/h, new parameter could be m/s).

The default implementation in ReflectiveConfigGroup will either store the unknown parameter or throw an exception, depending on the value of storeUnknownParameters.

If the method is overwritten, it might make sense to also overwrite handleGetUnknownValue(String).

Definition at line 305 of file ReflectiveConfigGroup.java.

References org.matsim.core.config.ConfigGroup.getName().

Referenced by org.matsim.core.config.ReflectiveConfigGroup.addParam().

305  {
306  Preconditions.checkArgument(this.storeUnknownParameters, "Module %s of type %s doesn't accept unknown parameters."
307  + " Parameter %s is not part of the valid parameters: %s", getName(), getClass().getName(), paramName,
308  this.registeredParams);
309 
310  log.warn(
311  "Unknown parameter {} for group {}. Here are the valid parameter names: {}. Only the string value will be remembered.",
312  paramName, getName(), this.registeredParams);
313  super.addParam(paramName, value);
314  }
Here is the call graph for this function:

◆ getValue()

final String org.matsim.core.config.ReflectiveConfigGroup.getValue ( final String  param_name)
inherited

Definition at line 459 of file ReflectiveConfigGroup.java.

References org.matsim.core.config.ReflectiveConfigGroup.getParamField(), org.matsim.core.config.ReflectiveConfigGroup.handleGetUnknownValue(), and org.matsim.core.config.ReflectiveConfigGroup.invokeGetter().

Referenced by org.matsim.core.scoring.functions.ScoringParameters.Builder.Builder(), ch.sbb.matsim.routing.pt.raptor.RaptorUtils.createParameters(), and org.matsim.core.config.groups.ReplanningConfigGroup.getValue().

459  {
460  var getter = stringGetters.get(param_name);
461  if (getter != null) {
462  return invokeGetter(getter);
463  }
464 
465  var field = paramFields.get(param_name);
466  if (field != null) {
467  return getParamField(field);
468  }
469  return this.handleGetUnknownValue(param_name);
470  }
String handleGetUnknownValue(final String paramName)
Here is the call graph for this function:

◆ handleGetUnknownValue()

String org.matsim.core.config.ReflectiveConfigGroup.handleGetUnknownValue ( final String  paramName)
inherited

This method is designed to be overwritten if a config group wants to provide custom handling for unknown parameters, e.g. for improved backwards compatibility.

Also see handleAddUnknownParam(String, String)

Definition at line 478 of file ReflectiveConfigGroup.java.

References org.matsim.core.config.ConfigGroup.getName().

Referenced by org.matsim.core.config.ReflectiveConfigGroup.getValue().

478  {
479  Preconditions.checkArgument(this.storeUnknownParameters, "Module %s of type %s doesn't store unknown parameters."
480  + " Parameter %s is not part of the valid parameters: %s", getName(), getClass().getName(), paramName,
481  this.registeredParams);
482 
483  log.warn("no getter found for param {}: trying parent method", paramName);
484  return super.getValue(paramName);
485  }
Here is the call graph for this function:

◆ toString()

final String org.matsim.core.config.ConfigGroup.toString ( )
inherited

Definition at line 127 of file ConfigGroup.java.

References org.matsim.core.config.ConfigGroup.getName(), and org.matsim.core.config.ConfigGroup.getParams().

Referenced by org.matsim.core.config.ConfigGroup.addParam(), org.matsim.core.config.groups.SubtourModeChoiceConfigGroup.getChainBaseModesString(), org.matsim.core.config.groups.ChangeModeConfigGroup.getModesString(), org.matsim.core.config.groups.SubtourModeChoiceConfigGroup.getModesString(), org.matsim.core.config.ReflectiveConfigGroup.getParamField(), org.matsim.core.config.groups.RoutingConfigGroup.getParams(), and org.matsim.core.config.ReflectiveConfigGroup.invokeGetter().

127  {
128  StringBuilder str = new StringBuilder();
129  for ( Entry<String, String> entry : this.getParams().entrySet() ) {
130  str.append('[');
131  str.append(entry.getKey());
132  str.append('=');
133  str.append(entry.getValue());
134  str.append(']');
135  }
136  return "[name=" + this.getName() + "]" +
137  "[nOfParams=" + this.getParams().size() + "]" + str.toString();
138  }
Map< String, String > getParams()
Here is the call graph for this function:

◆ getParams()

final Map<String, String> org.matsim.core.config.ReflectiveConfigGroup.getParams ( )
inherited

Definition at line 534 of file ReflectiveConfigGroup.java.

References org.matsim.core.config.ConfigGroup.addParameterToMap().

Referenced by org.matsim.core.config.groups.ScoringConfigGroup.getParams(), and org.matsim.core.config.groups.ReplanningConfigGroup.getParams().

534  {
535  final Map<String, String> map = super.getParams();
536  registeredParams.forEach(f -> addParameterToMap(map, f));
537  return map;
538  }
void addParameterToMap(final Map< String, String > map, final String paramName)
Here is the call graph for this function:

◆ addParameterToMap()

void org.matsim.core.config.ConfigGroup.addParameterToMap ( final Map< String, String >  map,
final String  paramName 
)
protectedinherited

Little helper for subclasses (i.e. the ConfigGroups). This method adds the value of the parameter to the given map only if the getValue() method of this Module doesn't return null (Java null-type) or the String representation of null, i.e. "null" or "NULL". If the value is null, the string "null" is added to the map to document the parameter.

Parameters
map
paramName

Definition at line 80 of file ConfigGroup.java.

References org.matsim.core.config.ConfigGroup.getValue().

Referenced by org.matsim.core.config.ReflectiveConfigGroup.getParams().

80  {
81  String value = this.getValue(paramName);
82  if (!((value == null) || value.equalsIgnoreCase("null"))) {
83  map.put(paramName, value);
84  } else {
85  map.put(paramName, "null");
86  }
87  }
String getValue(final String paramName)
Here is the call graph for this function:

◆ getName()

final String org.matsim.core.config.ConfigGroup.getName ( )
inherited

◆ createParameterSet()

ConfigGroup org.matsim.core.config.ConfigGroup.createParameterSet ( final String  type)
inherited

Override if parameter sets of a certain type need a special implementation

Definition at line 149 of file ConfigGroup.java.

References org.matsim.core.config.ConfigGroup.ConfigGroup().

Referenced by org.matsim.core.config.Config.copyTo(), and org.matsim.core.config.groups.RoutingConfigGroup.getOrCreateModeRoutingParams().

149  {
150  return new ConfigGroup( type );
151  }
Here is the call graph for this function:

◆ addParameterSet()

void org.matsim.core.config.ConfigGroup.addParameterSet ( final ConfigGroup  set)
inherited

Definition at line 165 of file ConfigGroup.java.

References org.matsim.core.config.ConfigGroup.checkParameterSet(), and org.matsim.core.config.ConfigGroup.getName().

Referenced by org.matsim.core.config.groups.RoutingConfigGroup.addParameterSet(), org.matsim.core.config.groups.ReplanningConfigGroup.addStrategySettings(), org.matsim.core.config.groups.RoutingConfigGroup.addTeleportedModeParams(), org.matsim.core.config.Config.copyTo(), org.matsim.core.config.groups.ScoringConfigGroup.ScoringParameterSet.getOrCreateModeParams(), org.matsim.core.config.groups.RoutingConfigGroup.getOrCreateModeRoutingParams(), org.matsim.core.config.groups.RoutingConfigGroup.RoutingConfigGroup(), org.matsim.core.config.groups.RoutingConfigGroup.setTeleportedModeFreespeedFactor(), and org.matsim.core.config.groups.RoutingConfigGroup.setTeleportedModeSpeed().

165  {
166  checkParameterSet( set );
167  Collection<ConfigGroup> parameterSets = parameterSetsPerType.get( set.getName() );
168 
169  if ( parameterSets == null ) {
170  parameterSets = new ArrayList<>();
171  parameterSetsPerType.put( set.getName() , parameterSets );
172  }
173 
174  parameterSets.add( set );
175  }
void checkParameterSet(final ConfigGroup set)
final Map< String, Collection< @Valid ConfigGroup > > parameterSetsPerType
Here is the call graph for this function:

◆ removeParameterSet()

boolean org.matsim.core.config.ConfigGroup.removeParameterSet ( final ConfigGroup  set)
inherited

◆ checkParameterSet()

void org.matsim.core.config.ConfigGroup.checkParameterSet ( final ConfigGroup  set)
protectedinherited

Method called on parameter sets added by the add methods. Can be extended if there are consistency checks to makes, for instance if parameter sets of a given type should be instances of a particular class.

Parameters
set

Definition at line 191 of file ConfigGroup.java.

Referenced by org.matsim.core.config.ConfigGroup.addParameterSet().

191  {
192  // empty for inheritance
193  }

◆ clearParameterSetsForType()

final Collection<? extends ConfigGroup> org.matsim.core.config.ConfigGroup.clearParameterSetsForType ( final String  type)
protectedinherited

Useful for instance if default values are provided but should be cleared if user provides values.

Definition at line 199 of file ConfigGroup.java.

Referenced by org.matsim.core.config.groups.RoutingConfigGroup.addParameterSet(), org.matsim.core.config.groups.RoutingConfigGroup.clearModeRoutingParams(), and org.matsim.core.config.groups.ReplanningConfigGroup.clearStrategySettings().

199  {
200  return parameterSetsPerType.remove( type );
201  }
final Map< String, Collection< @Valid ConfigGroup > > parameterSetsPerType

◆ getParameterSets() [1/2]

final Collection<? extends ConfigGroup> org.matsim.core.config.ConfigGroup.getParameterSets ( final String  type)
inherited

Definition at line 203 of file ConfigGroup.java.

Referenced by org.matsim.core.config.Config.copyTo().

203  {
204  final Collection<ConfigGroup> sets = parameterSetsPerType.get( type );
205  return sets == null ?
206  Collections.<ConfigGroup>emptySet() :
207  Collections.unmodifiableCollection( sets );
208  }
final Map< String, Collection< @Valid ConfigGroup > > parameterSetsPerType

◆ getParameterSets() [2/2]

final Map<String, ? extends Collection<? extends ConfigGroup> > org.matsim.core.config.ConfigGroup.getParameterSets ( )
inherited

Definition at line 210 of file ConfigGroup.java.

Referenced by org.matsim.core.config.ConfigGroup.checkConsistency(), org.matsim.core.config.groups.ScoringConfigGroup.ScoringParameterSet.getActivityParams(), org.matsim.core.replanning.annealing.ReplanningAnnealerConfigGroup.getAnnealingVariablesPerSubpopulation(), org.matsim.core.config.groups.RoutingConfigGroup.getModeRoutingParams(), org.matsim.core.config.groups.ScoringConfigGroup.ScoringParameterSet.getModes(), org.matsim.core.config.groups.ScoringConfigGroup.getScoringParametersPerSubpopulation(), org.matsim.core.config.groups.ReplanningConfigGroup.getStrategySettings(), and org.matsim.core.config.groups.RoutingConfigGroup.removeModeRoutingParams().

210  {
211  // TODO: immutabilize (including lists)
212  // maybe done with what I did below? kai, sep'16
213 
214  // return parameterSetsPerType;
215 
216  Map<String, Collection<ConfigGroup>> parameterSetsPerType2 = new TreeMap<>() ;
217  for ( Entry<String, Collection<ConfigGroup>> entry : parameterSetsPerType.entrySet() ) {
218  parameterSetsPerType2.put( entry.getKey(), Collections.unmodifiableCollection(entry.getValue()) ) ;
219  }
220  return Collections.unmodifiableMap( parameterSetsPerType2 ) ;
221  }
final Map< String, Collection< @Valid ConfigGroup > > parameterSetsPerType

◆ isLocked()

final boolean org.matsim.core.config.ConfigGroup.isLocked ( )
inherited

◆ setLocked()

void org.matsim.core.config.ConfigGroup.setLocked ( )
inherited

Definition at line 227 of file ConfigGroup.java.

Referenced by org.matsim.core.controler.Controler.Controler(), org.matsim.core.config.groups.RoutingConfigGroup.getOrCreateModeRoutingParams(), org.matsim.core.config.groups.ScoringConfigGroup.setLocked(), and org.matsim.pt.router.TransitRouterConfig.TransitRouterConfig().

227  {
228  // need to have this non-final to be able to override in order to set delegates. kai, jun'15
229  this.locked = true ;
230  for ( Collection<ConfigGroup> parameterSets : this.parameterSetsPerType.values() ) {
231  for ( ConfigGroup parameterSet : parameterSets ) {
232  parameterSet.setLocked();
233  }
234  }
235  }
final Map< String, Collection< @Valid ConfigGroup > > parameterSetsPerType

◆ testForLocked()

final void org.matsim.core.config.ConfigGroup.testForLocked ( )
inherited

Definition at line 237 of file ConfigGroup.java.

Referenced by org.matsim.core.config.groups.ScoringConfigGroup.addParam(), org.matsim.core.config.groups.RoutingConfigGroup.addTeleportedModeParams(), org.matsim.core.config.groups.RoutingConfigGroup.removeModeRoutingParams(), org.matsim.core.config.groups.VspExperimentalConfigGroup.setAbleToOverwritePtInteractionParams(), org.matsim.core.config.groups.ScoringConfigGroup.ActivityParams.setActivityType(), org.matsim.pt.config.TransitRouterConfigGroup.setAdditionalTransferTime(), org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.setBeelineDistanceFactor(), org.matsim.core.config.groups.RoutingConfigGroup.setBeelineDistanceFactor(), org.matsim.core.config.groups.ScoringConfigGroup.ReflectiveDelegate.setBrainExpBeta(), org.matsim.core.config.groups.ScoringConfigGroup.ActivityParams.setClosingTime(), org.matsim.core.config.groups.ScoringConfigGroup.ModeParams.setConstant(), org.matsim.core.config.groups.ScoringConfigGroup.ActivityParams.setEarliestEndTime(), org.matsim.core.config.groups.ScoringConfigGroup.ScoringParameterSet.setEarlyDeparture_utils_hr(), org.matsim.pt.config.TransitRouterConfigGroup.setExtensionRadius(), org.matsim.core.config.groups.ScoringConfigGroup.ReflectiveDelegate.setFractionOfIterationsToStartScoreMSA(), org.matsim.core.config.groups.VspExperimentalConfigGroup.setGeneratingBoardingDeniedEvent(), org.matsim.core.config.groups.NetworkConfigGroup.setInputFile(), org.matsim.core.config.groups.ScoringConfigGroup.ScoringParameterSet.setLateArrival_utils_hr(), org.matsim.core.config.groups.ScoringConfigGroup.ActivityParams.setLatestStartTime(), org.matsim.core.config.groups.ScoringConfigGroup.ReflectiveDelegate.setLearningRate(), org.matsim.core.config.groups.VspExperimentalConfigGroup.setLogitScaleParamForPlansRemoval(), org.matsim.core.config.groups.ScoringConfigGroup.ModeParams.setMarginalUtilityOfDistance(), org.matsim.core.config.groups.ScoringConfigGroup.ScoringParameterSet.setMarginalUtilityOfMoney(), org.matsim.core.config.groups.ScoringConfigGroup.ModeParams.setMarginalUtilityOfTraveling(), org.matsim.core.config.groups.ScoringConfigGroup.ScoringParameterSet.setMarginalUtlOfWaiting_utils_hr(), org.matsim.pt.config.TransitRouterConfigGroup.setMaxBeelineWalkConnectionDistance(), org.matsim.core.config.groups.ScoringConfigGroup.ActivityParams.setMinimalDuration(), org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.setMode(), org.matsim.core.config.groups.ScoringConfigGroup.ModeParams.setMode(), org.matsim.core.config.groups.ScoringConfigGroup.ModeParams.setMonetaryDistanceRate(), org.matsim.core.config.groups.ScoringConfigGroup.ActivityParams.setOpeningTime(), org.matsim.core.config.groups.ScoringConfigGroup.ReflectiveDelegate.setPathSizeLogitBeta(), org.matsim.core.config.groups.ScoringConfigGroup.ActivityParams.setPriority(), org.matsim.core.config.groups.ScoringConfigGroup.ActivityParams.setScoringThisActivityAtAll(), org.matsim.pt.config.TransitRouterConfigGroup.setSearchRadius(), org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.setTeleportedModeFreespeedFactor(), org.matsim.core.config.groups.RoutingConfigGroup.setTeleportedModeFreespeedFactor(), org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.setTeleportedModeSpeed(), org.matsim.core.config.groups.RoutingConfigGroup.setTeleportedModeSpeed(), org.matsim.core.config.groups.NetworkConfigGroup.setTimeVariantNetwork(), org.matsim.pt.config.TransitConfigGroup.setTransitScheduleFile(), org.matsim.core.config.groups.ScoringConfigGroup.ActivityParams.setTypicalDuration(), org.matsim.core.config.groups.ScoringConfigGroup.ActivityParams.setTypicalDurationScoreComputation(), org.matsim.pt.config.TransitConfigGroup.setUseTransit(), org.matsim.core.config.groups.ScoringConfigGroup.ReflectiveDelegate.setUsingOldScoringBelowZeroUtilityDuration(), org.matsim.core.config.groups.VspExperimentalConfigGroup.setUsingOpportunityCostOfTimeForLocationChoice(), org.matsim.core.config.groups.ScoringConfigGroup.ScoringParameterSet.setUtilityOfLineSwitch(), org.matsim.core.config.groups.QSimConfigGroup.setVehiclesSource(), org.matsim.core.config.groups.VspExperimentalConfigGroup.setVspDefaultsCheckingLevel(), org.matsim.core.config.groups.ScoringConfigGroup.ReflectiveDelegate.setWriteExperiencedPlans(), and org.matsim.core.config.groups.VspExperimentalConfigGroup.setWritingOutputEvents().

237  {
238  if ( locked ) {
239  throw new RuntimeException( "Too late to change this ...") ;
240  }
241  }

◆ getInputFileURL()

static URL org.matsim.core.config.ConfigGroup.getInputFileURL ( URL  context,
String  filename 
)
staticinherited

Definition at line 243 of file ConfigGroup.java.

References org.matsim.core.utils.io.IOUtils.extendUrl(), and org.matsim.core.utils.io.IOUtils.getFileUrl().

Referenced by org.matsim.core.config.groups.NetworkConfigGroup.getChangeEventsInputFileUrl(), org.matsim.core.config.groups.CountsConfigGroup.getCountsFileURL(), org.matsim.core.config.groups.HouseholdsConfigGroup.getInputFileURL(), org.matsim.core.config.groups.NetworkConfigGroup.getInputFileURL(), org.matsim.core.config.groups.FacilitiesConfigGroup.getInputFileURL(), org.matsim.core.config.groups.PlansConfigGroup.getInputFileURL(), org.matsim.core.config.groups.PlansConfigGroup.getInputPersonAttributeFileURL(), org.matsim.pt.config.TransitConfigGroup.getTransitScheduleFileURL(), org.matsim.pt.config.TransitConfigGroup.getTransitStopsAttributesFileURL(), and org.matsim.pt.config.TransitConfigGroup.getVehiclesFileURL().

243  {
244  if (filename.startsWith("~/")) {
245  filename = System.getProperty("user.home") + filename.substring(1);
246  return IOUtils.getFileUrl(filename) ;
247  }
248  if ( filename.startsWith("/") ) {
249  // (= filename is absolute)
250  // (yyyy this may possibly fail on win systems. kai, sep.18)
251 
252  // Absolute filename on Windows, when obtained through URL.toURI().getPath() starts with `/`, like on Unix.
253  return IOUtils.getFileUrl(filename) ;
254  }
255  return IOUtils.extendUrl(context, filename);
256  }
Here is the call graph for this function:

Member Data Documentation

◆ SET_TYPE

final String org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.SET_TYPE = "teleportedModeParameters"
static

◆ MODE

final String org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.MODE = "mode"
static

◆ TELEPORTED_MODE_FREESPEED_FACTOR

final String org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.TELEPORTED_MODE_FREESPEED_FACTOR = "teleportedModeFreespeedFactor"
static

◆ mode

String org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.mode = null
private

◆ teleportedModeSpeed

Double org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.teleportedModeSpeed = null
private

◆ beelineDistanceFactorForMode

Double org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.beelineDistanceFactorForMode = null
private

◆ teleportedModeFreespeedFactor

Double org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.teleportedModeFreespeedFactor = null
private

◆ teleportedModeFreespeedLimit

Double org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.teleportedModeFreespeedLimit = Double.POSITIVE_INFINITY
private

◆ TELEPORTED_MODE_FREESPEED_FACTOR_CMT

final String org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.TELEPORTED_MODE_FREESPEED_FACTOR_CMT
staticprivate
Initial value:
= "Free-speed factor for a teleported mode. " +
"Travel time = teleportedModeFreespeedFactor * <freespeed car travel time>. Insert a line like this for every such mode. " +
"Please do not set teleportedModeFreespeedFactor as well as teleportedModeSpeed for the same mode, but if you do, +" +
"teleportedModeFreespeedFactor wins over teleportedModeSpeed."

Definition at line 159 of file RoutingConfigGroup.java.

◆ TELEPORTED_MODE_FREESPEED_LIMIT_CMT

final String org.matsim.core.config.groups.RoutingConfigGroup.TeleportedModeParams.TELEPORTED_MODE_FREESPEED_LIMIT_CMT
staticprivate
Initial value:
= "When using freespeed factor, a speed limit on the free speed. "
+ "Link travel time will be $= factor * [ min( link_freespeed, freespeed_limit) ]"

Definition at line 164 of file RoutingConfigGroup.java.


The documentation for this class was generated from the following file: