Class VehicleSetStop

    • Constructor Detail

      • VehicleSetStop

        public VehicleSetStop()
    • Method Detail

      • execute

        public void execute​(Bridge bridge,
                            String vehicleId,
                            String edgeId,
                            double position,
                            int laneIndex,
                            long duration,
                            int stopFlag)
        This method executes the command with the given arguments in order to set the stop mode for the vehicle.
        Specified by:
        execute in interface VehicleSetStop
        Parameters:
        bridge - Connection to SUMO.
        vehicleId - The Id of the vehicle to change the route.
        edgeId - The Id of the edge on which to stop.
        position - The position of the stop.
        laneIndex - The index of the lane on which to stop.
        duration - The duration for stop in [ns].
        stopFlag - The flag indicating the type of the stop.