Class VehicleTypeGetTau

java.lang.Object
org.eclipse.mosaic.fed.sumo.bridge.traci.AbstractTraciCommand<Double>
org.eclipse.mosaic.fed.sumo.bridge.traci.VehicleTypeGetTau
All Implemented Interfaces:
VehicleTypeGetTau

public class VehicleTypeGetTau extends AbstractTraciCommand<Double> implements VehicleTypeGetTau
  • Constructor Details

  • Method Details

    • execute

      public double execute(Bridge bridge, String vehicleTypeId) throws CommandException, InternalFederateException
      Description copied from interface: VehicleTypeGetTau
      This method executes the command with the given arguments in order to get the tau value of a specific vehicle type.
      Specified by:
      execute in interface VehicleTypeGetTau
      Parameters:
      bridge - Connection to SUMO.
      vehicleTypeId - Id of the vehicle type.
      Returns:
      the value of the parameter, or null if not present
      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.
    • constructResult

      protected Double constructResult(Status status, Object... objects)
      Description copied from class: AbstractTraciCommand
      This method is called during reading the command response when all readers have been executed. The results of the readers are passed to this method.
      Specified by:
      constructResult in class AbstractTraciCommand<Double>
      Parameters:
      status - the status of the response
      objects - the objects created by the configured readers
      Returns:
      the final result constructed from the passed objects