congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CountsConfigGroup.getCountsFileURL
Code IndexAdd Tabnine to your IDE (free)

How to use
getCountsFileURL
method
in
org.matsim.core.config.groups.CountsConfigGroup

Best Java code snippets using org.matsim.core.config.groups.CountsConfigGroup.getCountsFileURL (Showing top 2 results out of 315)

origin: matsim-org/matsim

  @Override
  public Counts<Link> get() {
    Counts<Link> calibrationCounts = new Counts<>();
    new MatsimCountsReader(calibrationCounts).parse(config.getCountsFileURL(matsimConfig.getContext()));
    return calibrationCounts;
  }
}
origin: matsim-org/matsim

@Provides
@Singleton
Counts<Link> provideLinkCounts(Scenario scenario, CountsConfigGroup config) {
  Counts<Link> counts = (Counts<Link>) scenario.getScenarioElement(Counts.ELEMENT_NAME);
  if (counts != null) {
    return counts;
  } else {
    counts = new Counts<>();
    if (config.getCountsFileName() != null) {
      final String inputCRS = config.getInputCRS();
      final String internalCRS = scenario.getConfig().global().getCoordinateSystem();
      MatsimCountsReader counts_parser;
      if (inputCRS == null) {
        counts_parser = new MatsimCountsReader(counts);
      }
      else {
        log.info( "re-projecting counts from "+inputCRS+" to "+internalCRS+" for import" );
        final CoordinateTransformation transformation =
            TransformationFactory.getCoordinateTransformation(
                inputCRS,
                internalCRS );
        counts_parser = new MatsimCountsReader( transformation , counts );
      }
      counts_parser.parse(config.getCountsFileURL(scenario.getConfig().getContext()));
    }
    return counts;
  }
}
org.matsim.core.config.groupsCountsConfigGroupgetCountsFileURL

Popular methods of CountsConfigGroup

  • getWriteCountsInterval
  • <init>
  • getAverageCountsOverIterations
  • getCountsFileName
  • getCountsScaleFactor
  • setInputFile
  • addParam
  • getAnalyzedModes
  • getDistanceFilter
  • getDistanceFilterCenterNode
  • getInputCRS
  • getOutputFormat
  • getInputCRS,
  • getOutputFormat,
  • getParams,
  • getValue,
  • isFilterModes,
  • setAnalyzedModes,
  • setAverageCountsOverIterations,
  • setFilterModes,
  • setInputCRS

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now