Examples of addDefaultSink()


Examples of org.movsim.simulator.roadnetwork.RoadSegment.addDefaultSink()

        final double roadLength = 1500;
        final RoadMapping roadMapping = new RoadMappingPolyS(laneCount, 10, 50, 50, 100.0 / Math.PI, roadLength);
        final RoadSegment roadSegment = new RoadSegment(roadMapping);
        addInputToRoadSegment(roadSegment, roadInput);
        roadSegment.setUserId("1");
        roadSegment.addDefaultSink();
        roadNetwork.add(roadSegment);
    }

    /**
     * Parse the OpenDrive (.xodr) file to load the network topology and road layout.
View Full Code Here

Examples of org.movsim.simulator.roadnetwork.RoadSegment.addDefaultSink()

            if (roadSegment == null) {
                throw new IllegalArgumentException("cannot find roadSegment in network for road: " + road);
            }

            if (!road.isSetLink()) {
                roadSegment.addDefaultSink();
                continue;
            }

            if (hasRoadPredecessor(road)) {
                RoadSegment sourceRoadSegment = getSourceRoadSegment(roadNetwork, road);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.