#include <InputData.hpp>
Public Member Functions | |
std::string | str () const |
Static Public Member Functions | |
static std::shared_ptr< InputData > | genFromFile (const std::string path) |
Public Attributes | |
unsigned | rows |
unsigned | cols |
unsigned | fleetSize |
unsigned | nRides |
unsigned | bonus |
unsigned | maxTime |
Tensor< int > | startX |
Tensor< int > | startY |
Tensor< int > | endX |
Tensor< int > | endY |
Tensor< int > | startT |
Tensor< int > | endT |
Tensor< int > | distances |
Represenation of the input file defined by Google-HashCode's problem statement
|
static |
Given a valid path to an input file, this method creates a InputData representation of it.
[in] | path | Path to input file |
std::fstream::failure | if invalid file/path |
std::string InputData::str | ( | ) | const |
Returns a string represenation of the input data.
unsigned InputData::bonus |
Per-ride bonus for starting the ride on time.
unsigned InputData::cols |
Number of columns of the grid.
Tensor<int> InputData::distances |
Distances of each ride.
Tensor<int> InputData::endT |
Latest finishes.
Tensor<int> InputData::endX |
Row coordinate of all finish intersections.
Tensor<int> InputData::endY |
Column of all finish intersections.
unsigned InputData::fleetSize |
Number of vehicles in the fleet.
unsigned InputData::maxTime |
Number of steps in the simulation.
unsigned InputData::nRides |
Number of rides.
unsigned InputData::rows |
Number of rows of the grid.
Tensor<int> InputData::startT |
Earliest starts.
Tensor<int> InputData::startX |
Row coordinate of all starting intersections.
Tensor<int> InputData::startY |
Column coordinate of all starting intersections.