MATSIM
Static Public Member Functions | Private Member Functions | List of all members
org.matsim.utils.FeatureFlags Class Referenceabstract

Static Public Member Functions

static boolean preferLocalDTDs ()
 
static boolean useParallelIO ()
 

Private Member Functions

 FeatureFlags ()
 

Detailed Description

A helper class that provides a central place to read out rarely used options provided as System properties.

Author
mrieser / Simunto GmbH

Definition at line 8 of file FeatureFlags.java.

Constructor & Destructor Documentation

◆ FeatureFlags()

org.matsim.utils.FeatureFlags.FeatureFlags ( )
private

Definition at line 10 of file FeatureFlags.java.

10  {
11  }

Member Function Documentation

◆ preferLocalDTDs()

static boolean org.matsim.utils.FeatureFlags.preferLocalDTDs ( )
static

Definition at line 13 of file FeatureFlags.java.

Referenced by org.matsim.core.utils.io.MatsimXmlParser.MatsimXmlParser().

13  {
14  String property = System.getProperty("matsim.preferLocalDtds");
15  if (property != null) {
16  return Boolean.parseBoolean(property);
17  }
18  return false; // default fallback
19  }

◆ useParallelIO()

static boolean org.matsim.utils.FeatureFlags.useParallelIO ( )
static

Definition at line 21 of file FeatureFlags.java.

Referenced by org.matsim.core.population.io.PopulationWriter.PopulationWriter(), org.matsim.core.population.io.PopulationReader.setDoctype(), and org.matsim.core.population.io.PopulationWriter.writeV6().

21  {
22  String property = System.getProperty("matsim.useParallelIO");
23  if (property != null) {
24  return Boolean.parseBoolean(property);
25  }
26  return true; // default fallback
27  }

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