Codota Logo
NetsimEngineContext.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.matsim.core.mobsim.qsim.qnetsimengine.NetsimEngineContext
constructor

Best Java code snippets using org.matsim.core.mobsim.qsim.qnetsimengine.NetsimEngineContext.<init> (Showing top 6 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

@Override void initializeFactory(AgentCounter agentCounter, MobsimTimer mobsimTimer, NetsimInternalInterface netsimEngine1) {
  double effectiveCellSize = ((Network)network).getEffectiveCellSize() ;
  
  SnapshotLinkWidthCalculator linkWidthCalculator = new SnapshotLinkWidthCalculator();
  linkWidthCalculator.setLinkWidthForVis( qsimConfig.getLinkWidthForVis() );
  if (! Double.isNaN(network.getEffectiveLaneWidth())){
    linkWidthCalculator.setLaneWidth( network.getEffectiveLaneWidth() );
  }
  AbstractAgentSnapshotInfoBuilder snapshotBuilder = QNetsimEngine.createAgentSnapshotInfoBuilder( scenario, linkWidthCalculator );
  
  this.context = new NetsimEngineContext(events, effectiveCellSize, agentCounter, snapshotBuilder, qsimConfig, mobsimTimer, linkWidthCalculator ) ;
  
  this.netsimEngine = netsimEngine1 ;
}
@Override QNodeI createNetsimNode(Node node) {
origin: matsim-org/matsim

@Override
void initializeFactory( AgentCounter agentCounter, MobsimTimer mobsimTimer, NetsimInternalInterface netsimEngine1 ) {
  this.netsimEngine = netsimEngine1;
  double effectiveCellSize = network.getEffectiveCellSize() ;
  SnapshotLinkWidthCalculator linkWidthCalculator = new SnapshotLinkWidthCalculator();
  linkWidthCalculator.setLinkWidthForVis( qsimConfig.getLinkWidthForVis() );
  if (! Double.isNaN(network.getEffectiveLaneWidth())){
    linkWidthCalculator.setLaneWidth( network.getEffectiveLaneWidth() );
  }
  AbstractAgentSnapshotInfoBuilder agentSnapshotInfoBuilder = QNetsimEngine.createAgentSnapshotInfoBuilder( scenario, linkWidthCalculator );
  context = new NetsimEngineContext( events, effectiveCellSize, agentCounter, agentSnapshotInfoBuilder, qsimConfig, mobsimTimer, linkWidthCalculator );
}
@Override
origin: matsim-org/matsim

@Override
void initializeFactory(AgentCounter agentCounter, MobsimTimer mobsimTimer, NetsimInternalInterface netsimEngine1) {
  this.netsimEngine = netsimEngine1 ;
  double effectiveCellSize = network.getEffectiveCellSize() ;
  SnapshotLinkWidthCalculator linkWidthCalculator = new SnapshotLinkWidthCalculator();
  linkWidthCalculator.setLinkWidthForVis( qsimConfig.getLinkWidthForVis() );
  if (! Double.isNaN(network.getEffectiveLaneWidth())){
    linkWidthCalculator.setLaneWidth( network.getEffectiveLaneWidth() );
  }
  AbstractAgentSnapshotInfoBuilder agentSnapshotInfoBuilder = QNetsimEngine.createAgentSnapshotInfoBuilder( scenario, linkWidthCalculator );
  context = new NetsimEngineContext( events, effectiveCellSize, agentCounter, agentSnapshotInfoBuilder, qsimConfig, mobsimTimer, linkWidthCalculator );
  delegate.initializeFactory(agentCounter, mobsimTimer, netsimEngine1);
}
origin: matsim-org/matsim

@Override
void initializeFactory(AgentCounter agentCounter, MobsimTimer mobsimTimer, NetsimInternalInterface arg2) {
  network = arg2.getNetsimNetwork().getNetwork();
  double effectiveCellSize = ( network).getEffectiveCellSize() ;
  SnapshotLinkWidthCalculator linkWidthCalculator = new SnapshotLinkWidthCalculator();
  linkWidthCalculator.setLinkWidthForVis( qsimConfig.getLinkWidthForVis() );
  if (! Double.isNaN(network.getEffectiveLaneWidth())){
    linkWidthCalculator.setLaneWidth( network.getEffectiveLaneWidth() );
  }
  AbstractAgentSnapshotInfoBuilder snapshotInfoBuilder = QNetsimEngine.createAgentSnapshotInfoBuilder( scenario, linkWidthCalculator );
  this.context = new NetsimEngineContext( events, effectiveCellSize, agentCounter, snapshotInfoBuilder, qsimConfig, mobsimTimer, linkWidthCalculator ) ;
  
  this.netsimEngine = arg2 ;
}
origin: matsim-org/matsim

@Override
void initializeFactory( AgentCounter agentCounter, MobsimTimer mobsimTimer, NetsimInternalInterface netsimEngine1 ) {
  this.netsimEngine = netsimEngine1;
  double effectiveCellSize = scenario.getNetwork().getEffectiveCellSize() ;
  SnapshotLinkWidthCalculator linkWidthCalculator = new SnapshotLinkWidthCalculator();
  linkWidthCalculator.setLinkWidthForVis( scenario.getConfig().qsim().getLinkWidthForVis() );
  linkWidthCalculator.setLaneWidth( scenario.getNetwork().getEffectiveLaneWidth() );
  AbstractAgentSnapshotInfoBuilder agentSnapshotInfoBuilder = QNetsimEngine.createAgentSnapshotInfoBuilder( scenario, linkWidthCalculator );
  context = new NetsimEngineContext( events, effectiveCellSize, agentCounter, agentSnapshotInfoBuilder, scenario.getConfig().qsim(), 
      mobsimTimer, linkWidthCalculator );
}
@Override
origin: matsim-org/matsim

@Override
void initializeFactory(AgentCounter agentCounter, MobsimTimer mobsimTimer, NetsimInternalInterface simEngine1) {
  SnapshotLinkWidthCalculator linkWidthCalculator = new SnapshotLinkWidthCalculator();
  linkWidthCalculator.setLinkWidthForVis( scenario.getConfig().qsim().getLinkWidthForVis() );
  linkWidthCalculator.setLaneWidth( scenario.getNetwork().getEffectiveLaneWidth() );
  
  AbstractAgentSnapshotInfoBuilder agentSnapshotInfoBuilder = QNetsimEngine.createAgentSnapshotInfoBuilder( scenario, linkWidthCalculator );
  
  this.netsimEngine = simEngine1;
  this.context = new NetsimEngineContext( events, scenario.getNetwork().getEffectiveCellSize(), agentCounter, agentSnapshotInfoBuilder, 
      scenario.getConfig().qsim(), mobsimTimer, linkWidthCalculator );
  
  delegate.initializeFactory(agentCounter, mobsimTimer, simEngine1);
}
org.matsim.core.mobsim.qsim.qnetsimengineNetsimEngineContext<init>

Popular methods of NetsimEngineContext

  • getSimTimer
  • getAgentCounter
  • getEventsManager

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Path (java.nio.file)
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JList (javax.swing)
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