15#ifndef XWSFROUTENETWORK_HPP
16#define XWSFROUTENETWORK_HPP
18#include "wsf_export.h"
24#include "UtMemory.hpp"
25#include "UtRandom.hpp"
50 virtual bool ProcessInput(UtInput& aInput);
75 throw UtInput::BadValue(aInput,
"XWsfRouteNetwork must specify either 'vehicle_count' or 'vehicle_density'");
80 throw UtInput::BadValue(aInput,
"XWsfRouteNetwork cannot specify both 'vehicle_count' and 'vehicle_density'");
101 using Networks = std::vector<ut::CloneablePtr<NetworkInput>>;
107 bool ProcessNetworkBlock(UtInput& aInput,
NetworkInput& aNetworkInput);
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
A collection of WsfRoute object that represents a connected network (such as a road network).
Definition WsfRouteNetwork.hpp:40
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
virtual bool Initialize(const WsfScenario &aScenario)
If Initialize is redefined, make sure to call XWsfRouteNetwork::Initialize().
Definition XWsfRouteNetwork.cpp:27
XWsfRouteNetwork()=default
XWsfRouteNetwork & operator=(const XWsfRouteNetwork &aRhs)=delete
virtual ~XWsfRouteNetwork()=default
virtual bool ProcessCommand(UtInput &aInput, NetworkInput &aNetworkInput)
Definition XWsfRouteNetwork.cpp:110
Networks mNetworks
Definition XWsfRouteNetwork.hpp:104
std::vector< ut::CloneablePtr< NetworkInput > > Networks
Definition XWsfRouteNetwork.hpp:101
ut::Random mRandom
Definition XWsfRouteNetwork.hpp:103
virtual void Update(double)
An update method for applications that need simulation updates.
Definition XWsfRouteNetwork.hpp:45
XWsfRouteNetwork(const XWsfRouteNetwork &aSrc)=default