Dynamical System Framework
Loading...
Searching...
No Matches
dsf Namespace Reference

Core of the DynamicalSystemFramework: generic networks, nodes, edges and dynamics. More...

Namespaces

namespace  geometry
 Geometric primitives: points and polylines.
namespace  mdt
 Mobile-Data Trajectories: trajectory collections, stop detection and point clustering.
namespace  mobility
 Traffic model: road networks, junctions, agents and dynamics.

Classes

class  Dynamics
 The Dynamics class represents the dynamics of the network. More...
class  Edge
 The Edge class represents the concept of an edge (u -> v) in the network. More...
struct  is_node
struct  is_node< const mobility::Intersection & >
struct  is_node< const mobility::Intersection >
struct  is_node< const mobility::Roundabout & >
struct  is_node< const mobility::Roundabout >
struct  is_node< const mobility::TrafficLight & >
struct  is_node< const mobility::TrafficLight >
struct  is_node< const Node & >
struct  is_node< const Node >
struct  is_node< mobility::Intersection >
struct  is_node< mobility::Roundabout >
struct  is_node< mobility::TrafficLight >
struct  is_node< Node >
struct  is_node< std::unique_ptr< mobility::Intersection > >
struct  is_node< std::unique_ptr< mobility::Roundabout > >
struct  is_node< std::unique_ptr< mobility::TrafficLight > >
struct  is_node< std::unique_ptr< Node > >
struct  is_numeric
struct  is_numeric< bool >
struct  is_numeric< char >
struct  is_street
struct  is_street< const mobility::Street & >
struct  is_street< const mobility::Street >
struct  is_street< mobility::Street >
struct  is_street< std::unique_ptr< mobility::Street > >
struct  Measurement
 The Measurement struct represents the mean of a quantity and its standard deviation. More...
class  Network
class  Node
 The Node class represents the concept of a node in the network. More...
class  PathCollection
class  priority_queue
class  PtrMapView
 Non-owning view over a map of owning pointers, exposing (id, raw pointer) pairs. More...
class  queue

Typedefs

using Id = uint64_t
using Delay = uint16_t

Enumerations

enum class  SpeedFunction : uint8_t { CUSTOM = 0 , LINEAR = 1 , CONSTANT = 2 }
enum  Direction : uint8_t {
  RIGHT = 0 , RIGHTANDSTRAIGHT = 1 , STRAIGHT = 2 , ANY = 3 ,
  LEFTANDSTRAIGHT = 4 , LEFT = 5 , UTURN = 6
}
enum class  TrafficLightOptimization : uint8_t { SINGLE_TAIL = 0 , DOUBLE_TAIL = 1 }
enum  train_t : uint8_t {
  BUS = 0 , SFM = 1 , R = 2 , RV = 3 ,
  IC = 4 , FRECCIA = 5 , FRECCIAROSSA = 6 , ES = 7
}
enum class  FileExt : std::size_t { CSV , JSON , GEOJSON }

Functions

constexpr std::string_view version () noexcept
 Returns the version of the DSF library.
void log_to_file (std::string const &path)
 Set up logging to a specified file.
void to_lower (std::string &str)
 Convert a string to lowercase, in place.
constexpr std::optional< FileExt > fileExtFromString (std::string_view ext) noexcept
 Get the FileExt matching a file extension (without the leading dot).

Variables

constexpr double PATH_COST_EPS = 1e-12
 Absolute tolerance used when comparing path costs.
constexpr std::array< std::string_view, 7 > directionToString
constexpr double MS_TO_KMH = 3.6
 Conversion factor from m/s to km/h.
template<typename T>
constexpr bool is_node_v = is_node<T>::value
template<typename T>
constexpr bool is_numeric_v = is_numeric<T>::value
template<typename T>
constexpr bool is_street_v = is_street<T>::value

Detailed Description

Core of the DynamicalSystemFramework: generic networks, nodes, edges and dynamics.

Function Documentation

◆ fileExtFromString()

std::optional< FileExt > dsf::fileExtFromString ( std::string_view ext)
constexprnoexcept

Get the FileExt matching a file extension (without the leading dot).

Parameters
extThe file extension, e.g. "csv"
Returns
std::optional<FileExt> The matching FileExt, or std::nullopt if unsupported

◆ log_to_file()

void dsf::log_to_file ( std::string const & path)
inline

Set up logging to a specified file.

Parameters
pathThe path to the log file

◆ to_lower()

void dsf::to_lower ( std::string & str)
inline

Convert a string to lowercase, in place.

Parameters
strThe string to convert

◆ version()

std::string_view dsf::version ( )
constexprnoexcept

Returns the version of the DSF library.

Returns
The version of the DSF library

Variable Documentation

◆ directionToString

std::array<std::string_view, 7> dsf.directionToString
inlineconstexpr
Initial value:
{
"RIGHT", "RIGHT&STRAIGHT", "STRAIGHT", "ANY", "LEFT&STRAIGHT", "LEFT", "UTURN"}