2018-02-01 10:47:43 -05:00
|
|
|
#ifndef OSRM_PARTITIONER_CONFIG_HPP
|
|
|
|
#define OSRM_PARTITIONER_CONFIG_HPP
|
2017-01-23 05:50:03 -05:00
|
|
|
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
#include <string>
|
|
|
|
|
2017-04-29 04:43:36 -04:00
|
|
|
#include "storage/io_config.hpp"
|
|
|
|
|
2022-12-11 04:10:26 -05:00
|
|
|
namespace osrm::partitioner
|
2017-01-23 05:50:03 -05:00
|
|
|
{
|
|
|
|
|
2018-02-01 10:47:43 -05:00
|
|
|
struct PartitionerConfig final : storage::IOConfig
|
2017-01-23 05:50:03 -05:00
|
|
|
{
|
2018-02-01 10:47:43 -05:00
|
|
|
PartitionerConfig()
|
2022-09-30 08:29:10 -04:00
|
|
|
: IOConfig({".osrm.fileIndex", ".osrm.ebg_nodes", ".osrm.enw"},
|
2018-02-22 04:49:01 -05:00
|
|
|
{".osrm.hsgr", ".osrm.cnbg"},
|
|
|
|
{".osrm.ebg",
|
|
|
|
".osrm.cnbg",
|
|
|
|
".osrm.cnbg_to_ebg",
|
2018-03-21 14:17:24 -04:00
|
|
|
".osrm.nbg_nodes",
|
2018-02-22 04:49:01 -05:00
|
|
|
".osrm.partition",
|
|
|
|
".osrm.cells",
|
|
|
|
".osrm.maneuver_overrides"}),
|
2017-06-28 11:53:54 -04:00
|
|
|
requested_num_threads(0), balance(1.2), boundary_factor(0.25), num_optimizing_cuts(10),
|
|
|
|
small_component_size(1000),
|
|
|
|
max_cell_sizes({128, 128 * 32, 128 * 32 * 16, 128 * 32 * 16 * 32})
|
2017-06-16 04:45:24 -04:00
|
|
|
{
|
|
|
|
}
|
2017-01-23 05:50:03 -05:00
|
|
|
|
2017-07-07 10:42:07 -04:00
|
|
|
void UseDefaultOutputNames(const boost::filesystem::path &base)
|
|
|
|
{
|
|
|
|
IOConfig::UseDefaultOutputNames(base);
|
|
|
|
}
|
|
|
|
|
2017-01-23 05:50:03 -05:00
|
|
|
unsigned requested_num_threads;
|
2017-01-26 11:53:19 -05:00
|
|
|
|
|
|
|
double balance;
|
|
|
|
double boundary_factor;
|
|
|
|
std::size_t num_optimizing_cuts;
|
2017-02-02 09:53:42 -05:00
|
|
|
std::size_t small_component_size;
|
2017-03-27 06:17:01 -04:00
|
|
|
std::vector<std::size_t> max_cell_sizes;
|
2017-01-23 05:50:03 -05:00
|
|
|
};
|
2022-12-20 12:00:11 -05:00
|
|
|
} // namespace osrm::partitioner
|
2017-01-23 05:50:03 -05:00
|
|
|
|
2018-02-01 10:47:43 -05:00
|
|
|
#endif // OSRM_PARTITIONER_CONFIG_HPP
|