![]() |
fpmas 1.5
|
#include <model.h>
Static Public Member Functions | |
| static void | to_json (json &j, const fpmas::api::model::Model &model) |
| static void | from_json (const json &j, fpmas::api::model::Model &model) |
Model JSON serialization rules.
|
static |
Serializes the specified model to the json j.
The complete underlying DistributedGraph is dumped in the json, as long as the current Runtime status.
| j | json output |
| model | Model to serialize |
|
static |
Loads data from the input json to the specified model.
The DistributedGraph contained in j is loaded into model.graph(), and the model.runtime() current date is set to the value saved in the json.
| j | input json |
| model | Model in which data from j will be loaded |