Codota Logo
LaneLeaveEvent
Code IndexAdd Codota to your IDE (free)

How to use
LaneLeaveEvent
in
org.matsim.core.api.experimental.events

Best Java code snippets using org.matsim.core.api.experimental.events.LaneLeaveEvent (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: matsim-org/matsim

@Override
public void handleEvent(LaneLeaveEvent event) {
  if (this.linkIdLaneIdSensorMap.containsKey(event.getLinkId())){
    Map<Id<Lane>, LaneSensor> map = this.linkIdLaneIdSensorMap.get(event.getLinkId());
    if (map.containsKey(event.getLaneId())){
      map.get(event.getLaneId()).handleEvent(event);
    }
  }
}
origin: matsim-org/matsim

public void handleEvent(LaneLeaveEvent event) {
  this.agentsOnLane--;
  if (this.doDistanceMonitoring){
    for (Double distance : this.distanceMeterCarLocatorMap.keySet()){
      Map<Id<Vehicle>, CarLocator> carLocatorPerVehicleId = this.distanceMeterCarLocatorMap.get(distance);
      carLocatorPerVehicleId.remove(event.getVehicleId());
    }
  }
}
origin: matsim-org/matsim

@Override
public void handleEvent(LaneLeaveEvent event) {
  // count lane leave events on link 1 in the second hour
  if (event.getLinkId().equals(Id.createLinkId(1)) && event.getTime() >= 3600 && event.getTime() < 2*3600){
    if (!laneCapacities.containsKey(event.getLaneId())){
      laneCapacities.put(event.getLaneId(), 0.);
    }
    laneCapacities.put(event.getLaneId(), laneCapacities.get(event.getLaneId())+1);
  }
}
origin: matsim-org/matsim

@Override
public final QVehicle popFirstVehicle() {
  double now = context.getSimTimer().getTimeOfDay() ;
  QVehicle veh = removeFirstVehicle();
  if (this.context.qsimConfig.isUseLanes() ) {
    if (  hasMoreThanOneLane() ) {
      this.context.getEventsManager().processEvent(new LaneLeaveEvent( now, veh.getId(), this.qLink.getId(), this.getId() ));
    }
  }
  return veh;
}
org.matsim.core.api.experimental.eventsLaneLeaveEvent

Most used methods

  • getLaneId
  • getLinkId
  • <init>
  • getTime
  • getVehicleId

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JCheckBox (javax.swing)
  • JPanel (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