NGen
|
#include <formulation.hpp>
Public Member Functions | |
Formulation ()=default | |
Construct a new default Formulation object. | |
Formulation (std::string type, geojson::PropertyMap params) | |
Construct a new Formulation object. | |
Formulation (const boost::property_tree::ptree &tree) | |
Construct a new Formulation object from a boost property tree. | |
void | link_external (geojson::Feature feature) |
Link formulation parameters to hydrofabric data held in feature. | |
Public Attributes | |
std::string | type |
geojson::PropertyMap | parameters |
std::vector< Formulation > | nested |
|
default |
Construct a new default Formulation object.
Default objects have an "" type and and empty property map.
Referenced by Formulation().
|
inline |
Construct a new Formulation object.
type | formulation type represented |
params | formulation parameter mapping |
|
inline |
Construct a new Formulation object from a boost property tree.
The tree should have a "name" key corresponding to the formulation type as well as a "params" key to build the property map from
tree | property tree to build Formulation from |
References Formulation(), nested, parameters, geojson::JSONProperty::print_property(), and type.
|
inline |
Link formulation parameters to hydrofabric data held in feature.
feature | Hydrofabric feature with properties to assign to formulation model params |
References geojson::List, nested, geojson::Object, parameters, and type.
Referenced by realization::Formulation_Manager::read().
std::vector<Formulation> realization::config::Formulation::nested |
Referenced by Formulation(), and link_external().
geojson::PropertyMap realization::config::Formulation::parameters |
std::string realization::config::Formulation::type |