Skip to content

Commit

Permalink
Merge pull request #106 from hsel-netsys/dag-app-configuration
Browse files Browse the repository at this point in the history
feat(dag-parser): add support for application configurations
  • Loading branch information
JKRhb authored Sep 10, 2024
2 parents 0b462ed + 512fb09 commit 466f356
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions dag-syntax.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ node = {
? payloadSize: uint,
},
? downstream: [ + edge ],
? applicationConfiguration: { * text => any }
}

edge = {
Expand Down
1 change: 1 addition & 0 deletions include/iceflow/dag-parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ struct Node {
ScalingParameters scalingParameters;
CommunicationTask communicationTask;
std::vector<Edge> downstream;
nlohmann::json::object_t applicationConfiguration;
};

/**
Expand Down
3 changes: 3 additions & 0 deletions src/dag-parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ DAGParser DAGParser::parseFromFile(const std::string &filename) {
nodeInstance.downstream = edges;
}

nodeInstance.applicationConfiguration =
nodeJson.value("applicationConfiguration", nlohmann::json::object());

nodeList.push_back(nodeInstance);
}

Expand Down

0 comments on commit 466f356

Please sign in to comment.