Interface LaneGetLength
-
- All Known Implementing Classes:
LaneGetLength
,LaneGetLength
public interface LaneGetLength
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Double
execute(Bridge bridge, String laneId)
This method executes the command with the given arguments and returns the length of the lane.
-
-
-
Method Detail
-
execute
Double execute(Bridge bridge, String laneId) throws CommandException, InternalFederateException
This method executes the command with the given arguments and returns the length of the lane.- Parameters:
bridge
- Connection to SUMO.laneId
- Id of the lane.- Returns:
- The length of the lane.
- Throws:
CommandException
- if the status code of the response is ERROR. The connection to SUMO is still available.InternalFederateException
- if some serious error occurs during writing or reading. The connection to SUMO is shut down.
-
-