Codota Logo
Lane.getNumberOfRepresentedLanes
Code IndexAdd Codota to your IDE (free)

How to use
getNumberOfRepresentedLanes
method
in
org.matsim.lanes.Lane

Best Java code snippets using org.matsim.lanes.Lane.getNumberOfRepresentedLanes (Showing top 5 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

builder.setLaneId(laneId);
builder.setLength(lane.getLength());
builder.setEffectiveNumberOfLanes(lane.getLaneData().getNumberOfRepresentedLanes());
builder.setFlowCapacity_s(lane.getLaneData().getCapacityVehiclesPerHour() / 3600.);
QLaneI queue = builder.createLane(this);
origin: matsim-org/matsim

  private VisLane createVisLane(ModelLane qlane, double linkLength, double linkScale, double linkLengthCorrectionFactor) {
    String id = qlane.getLaneData().getId().toString();
    double startPosition = (linkLength -  qlane.getLaneData().getStartsAtMeterFromLinkEnd()) * linkScale * linkLengthCorrectionFactor;
    double endPosition = startPosition + (qlane.getLength() *  linkScale * linkLengthCorrectionFactor);
//        log.error("lane " + qlane.getId() + " starts at: " + startPosition + " and ends at : " +endPosition);
    int alignment = qlane.getLaneData().getAlignment();
    VisLane lane = new VisLane(id);
    lane.setStartPosition(startPosition);
    lane.setEndPosition(endPosition);
    lane.setAlignment(alignment);
    lane.setNumberOfLanes(qlane.getLaneData().getNumberOfRepresentedLanes());
    return lane;
  }

origin: matsim-org/matsim

/**
 * Calculate capacity by formular from Neumann2008DA:
 *
 * Flow of a Lane is given by the flow of the link divided by the number of lanes represented by the link.
 *
 * A Lane may represent one or more lanes in reality. This is given by the attribute numberOfRepresentedLanes of
 * the Lane definition. The flow of a lane is scaled by this number.
 */
public static void calculateAndSetCapacity(Lane lane, boolean isLaneAtLinkEnd, Link link, Network network){
  if (isLaneAtLinkEnd){
    double noLanesLink = link.getNumberOfLanes();
    double linkFlowCapPerSecondPerLane = link.getCapacity() / network.getCapacityPeriod()
        / noLanesLink;
    double laneFlowCapPerHour = lane.getNumberOfRepresentedLanes()
        * linkFlowCapPerSecondPerLane * 3600.0;
    lane.setCapacityVehiclesPerHour(laneFlowCapPerHour);
  }
  else {
    double capacity = link.getCapacity() / network.getCapacityPeriod() * 3600.0;
    lane.setCapacityVehiclesPerHour(capacity);
  }
}
origin: matsim-org/matsim

assertEquals(linkId1, lane.getToLinkIds().get(0));
assertEquals(45.0, lane.getStartsAtMeterFromLinkEnd(), EPSILON);
assertEquals(1.0, lane.getNumberOfRepresentedLanes());
assertEquals(0.725, lane.getCapacityVehiclesPerHour(), EPSILON);
lane = lanes.get(1);
assertEquals(laneId5, lane.getId());
assertEquals(60.0, lane.getStartsAtMeterFromLinkEnd(), EPSILON);
assertEquals(2.5, lane.getNumberOfRepresentedLanes());
assertEquals(2, lane.getCapacityVehiclesPerHour(), EPSILON);
assertEquals(45.0, lane.getStartsAtMeterFromLinkEnd(), EPSILON);
assertEquals(1900.0, lane.getCapacityVehiclesPerHour(), EPSILON);
assertEquals(1.0, lane.getNumberOfRepresentedLanes());
origin: matsim-org/matsim

lanes.setNumber(bl.getNumberOfRepresentedLanes());
xmllane.setRepresentedLanes(lanes);
org.matsim.lanesLanegetNumberOfRepresentedLanes

Popular methods of Lane

  • getCapacityVehiclesPerHour
  • getStartsAtMeterFromLinkEnd
  • getToLinkIds
  • addToLaneId
  • addToLinkId
  • getAlignment
  • getId
  • setCapacityVehiclesPerHour
  • setNumberOfRepresentedLanes
  • setStartsAtMeterFromLinkEnd
  • getAttributes
  • getToLaneIds
  • getAttributes,
  • getToLaneIds,
  • setAlignment

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • getContentResolver (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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