Codota Logo
SnapshotGenerator.reset
Code IndexAdd Codota to your IDE (free)

How to use
reset
method
in
org.matsim.core.events.algorithms.SnapshotGenerator

Best Java code snippets using org.matsim.core.events.algorithms.SnapshotGenerator.reset (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: matsim-org/matsim

public SnapshotGenerator(final Network network, final double snapshotPeriod, final QSimConfigGroup config) {
  this.network = network;
  int initialCapacity = (int)(network.getLinks().size()*1.1);
  this.eventLinks = new HashMap<>(initialCapacity, 0.95f);
  this.linkList = new ArrayList<>(initialCapacity);
  this.eventAgents = new HashMap<>(1000, 0.95f);
  this.snapshotPeriod = snapshotPeriod;
  this.capCorrectionFactor = config.getFlowCapFactor() / network.getCapacityPeriod();
  this.storageCapFactor = config.getStorageCapFactor();
  this.snapshotStyle = config.getSnapshotStyle();
  
  if (! Double.isNaN( config.getLinkWidthForVis() )){
    this.linkWidthCalculator.setLinkWidthForVis( config.getLinkWidthForVis() );
  } 
  if (! Double.isNaN(network.getEffectiveLaneWidth())){
    this.linkWidthCalculator.setLaneWidth(network.getEffectiveLaneWidth());
  }
  reset(-1);
}
org.matsim.core.events.algorithmsSnapshotGeneratorreset

Popular methods of SnapshotGenerator

  • <init>
  • addSnapshotWriter
  • finish
  • doSnapshot
  • getEventAgent
  • getVehiclePositions
  • testForSnapshot

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now