WSF
XWsfRoadTraffic::VehicleInput Class Reference

#include <XWsfRoadTraffic.hpp>

Public Member Functions

 VehicleInput ()=default
 VehicleInput (WsfStringId aTypeId)

Public Attributes

WsfStringId mTypeId = nullptr
int mCount = 0
 String Id of the type of the vehicle.
double mFraction = 0.0
 The number of vehicles that should be created of this type.
double mMeanSpeed = 0.0
 The percentage of this vehicle type that should exist in the simulation.
double mSigmaSpeed = 0.0
 Mean velocity in m/s.

Detailed Description

A VehicleInput object is created for each of the vehicles defined in the input file. A list of VehicleInput objects are stored in the NetworkInput object that they were defined under.

Constructor & Destructor Documentation

◆ VehicleInput() [1/2]

XWsfRoadTraffic::VehicleInput::VehicleInput ( )
default

◆ VehicleInput() [2/2]

XWsfRoadTraffic::VehicleInput::VehicleInput ( WsfStringId aTypeId)
inline

References mTypeId.

Member Data Documentation

◆ mCount

int XWsfRoadTraffic::VehicleInput::mCount = 0

String Id of the type of the vehicle.

◆ mFraction

double XWsfRoadTraffic::VehicleInput::mFraction = 0.0

The number of vehicles that should be created of this type.

◆ mMeanSpeed

double XWsfRoadTraffic::VehicleInput::mMeanSpeed = 0.0

The percentage of this vehicle type that should exist in the simulation.

◆ mSigmaSpeed

double XWsfRoadTraffic::VehicleInput::mSigmaSpeed = 0.0

Mean velocity in m/s.

◆ mTypeId

WsfStringId XWsfRoadTraffic::VehicleInput::mTypeId = nullptr

Referenced by VehicleInput().


The documentation for this class was generated from the following file:
Copyrights Multiple, All Rights Reserved