2017-01-23 05:50:03 -05:00
|
|
|
#ifndef PARTITIONER_CONFIG_HPP
|
|
|
|
#define PARTITIONER_CONFIG_HPP
|
|
|
|
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
#include <string>
|
|
|
|
|
2017-04-29 04:43:36 -04:00
|
|
|
#include "storage/io_config.hpp"
|
|
|
|
|
2017-01-23 05:50:03 -05:00
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace partition
|
|
|
|
{
|
|
|
|
|
2017-04-29 04:43:36 -04:00
|
|
|
struct PartitionConfig final : storage::IOConfig
|
2017-01-23 05:50:03 -05:00
|
|
|
{
|
2017-03-27 06:17:01 -04:00
|
|
|
PartitionConfig()
|
2017-06-28 11:53:54 -04:00
|
|
|
: IOConfig(
|
2017-06-16 04:45:24 -04:00
|
|
|
{".osrm", ".osrm.fileIndex", ".osrm.ebg_nodes"},
|
|
|
|
{".osrm.hsgr", ".osrm.cnbg"},
|
2017-06-28 11:53:54 -04:00
|
|
|
{".osrm.ebg", ".osrm.cnbg", ".osrm.cnbg_to_ebg", ".osrm.partition", ".osrm.cells"}),
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // PARTITIONER_CONFIG_HPP
|