WSF
XWsfRoadTraffic::Data Struct Reference

Holds the data for XWsfRoadTraffic populated during the ProcessInput phase. More...

#include <XWsfRoadTraffic.hpp>

Inheritance diagram for XWsfRoadTraffic::Data:
Collaboration diagram for XWsfRoadTraffic::Data:

Public Member Functions

NetworksGetNetworks ()
const NetworksGetNetworks () const
virtual bool ProcessCommand (UtInput &aInput, NetworkInput &aNetworkInput)
Public Member Functions inherited from XWsfRouteNetwork
 XWsfRouteNetwork ()=default
virtual ~XWsfRouteNetwork ()=default
virtual bool Initialize (const WsfScenario &aScenario)
 If Initialize is redefined, make sure to call XWsfRouteNetwork::Initialize().
virtual void Update (double)
 An update method for applications that need simulation updates.
virtual bool ProcessInput (UtInput &aInput)

Public Attributes

bool mProcessedInput = false
bool mDebug = false
bool mVerbose = false
EndOfPath mEndOfPathOption = cRESPAWN
std::vector< SGroundTrafficmTraffic
double mNextUpdateTime = 0.0
int mNextVehicleIdentifier = 0
int mNumVehiclesActive = 0
int mMaxVehiclesActive = 0

Additional Inherited Members

Protected Types inherited from XWsfRouteNetwork
using Networks = std::vector<ut::CloneablePtr<NetworkInput>>
Protected Member Functions inherited from XWsfRouteNetwork
 XWsfRouteNetwork (const XWsfRouteNetwork &aSrc)=default
XWsfRouteNetworkoperator= (const XWsfRouteNetwork &aRhs)=delete
Protected Attributes inherited from XWsfRouteNetwork
ut::Random mRandom
Networks mNetworks

Detailed Description

Holds the data for XWsfRoadTraffic populated during the ProcessInput phase.

Member Function Documentation

◆ GetNetworks() [1/2]

Networks & XWsfRoadTraffic::Data::GetNetworks ( )
inline

Get the route networks

Returns
the route networks

References XWsfRouteNetwork::mNetworks.

◆ GetNetworks() [2/2]

const Networks & XWsfRoadTraffic::Data::GetNetworks ( ) const
inline

Get the route networks

Returns
the route networks

References XWsfRouteNetwork::mNetworks.

◆ ProcessCommand()

bool XWsfRouteNetwork::ProcessCommand ( UtInput & aInput,
NetworkInput & aNetworkInput )
virtual

Derived classes call ProcessCommand for commands that exist in their network end_network blocks that aren't recognized. If the command isn't recognized at this level an exception is thrown.

Reimplemented from XWsfRouteNetwork.

Member Data Documentation

◆ mDebug

bool XWsfRoadTraffic::Data::mDebug = false

◆ mEndOfPathOption

EndOfPath XWsfRoadTraffic::Data::mEndOfPathOption = cRESPAWN

◆ mMaxVehiclesActive

int XWsfRoadTraffic::Data::mMaxVehiclesActive = 0

◆ mNextUpdateTime

double XWsfRoadTraffic::Data::mNextUpdateTime = 0.0

◆ mNextVehicleIdentifier

int XWsfRoadTraffic::Data::mNextVehicleIdentifier = 0

◆ mNumVehiclesActive

int XWsfRoadTraffic::Data::mNumVehiclesActive = 0

◆ mProcessedInput

bool XWsfRoadTraffic::Data::mProcessedInput = false

◆ mTraffic

std::vector<SGroundTraffic> XWsfRoadTraffic::Data::mTraffic

◆ mVerbose

bool XWsfRoadTraffic::Data::mVerbose = false

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