Skip to content

Commit

Permalink
add quick doc for group results
Browse files Browse the repository at this point in the history
  • Loading branch information
msrocka committed Dec 11, 2024
1 parent c907f87 commit a3cb866
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/mdtables.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ String typeLinkOf(SchemaType? type) {
}

main() {
var spec = Spec.readFrom(File("ipc/spec/results.json"));
var spec = Spec.readFrom(File("spec/results.json"));
writeTables(spec);
}
19 changes: 19 additions & 0 deletions spec/results.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@
"List[TechFlow]"
],
"result": "List[UpstreamNode]"
},
{
"method": "grouped-flow-results-of",
"params": [
"EnviFlow"
],
"result": "List[GroupValue]"
}
]
},
Expand Down Expand Up @@ -241,6 +248,13 @@
"List[TechFlow]"
],
"result": "List[UpstreamNode]"
},
{
"method": "grouped-impact-results-of",
"params": [
"Ref[ImpactCategory]"
],
"result": "List[GroupValue]"
}
]
},
Expand Down Expand Up @@ -275,6 +289,11 @@
"TechFlow"
],
"result": "CostValue"
},
{
"method": "grouped-cost-results",
"params": [],
"result": "List[GroupValue]"
}
]
}
Expand Down
3 changes: 3 additions & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- [Unscaled flows](results/envi-flows/unscaled.md)
- [Upstream results](results/envi-flows/upstream.md)
- [Upstream trees](results/envi-flows/upstream_trees.md)
- [Grouped results](results/envi-flows/grouped_results.md)
- [Impact categories](results/elements/impact-categories.md)
- [Impact assessment result](results/impacts/impact-result.md)
- [Normalized results](results/impacts/normalized.md)
Expand All @@ -49,6 +50,7 @@
- [Intensities](results/impacts/intensities.md)
- [Upstream results](results/impacts/upstream.md)
- [Upstream trees](results/impacts/upstream_trees.md)
- [Grouped results](results/impacts/grouped_results.md)
- [Costs](results/elements/costs.md)
- [Life cycle costing result](results/costs/cost-result.md)
- [Direct contributions](results/costs/direct-contributions.md)
Expand All @@ -57,4 +59,5 @@
- [Unscaled costs](results/costs/unscaled.md)
- [Upstream results](results/costs/upstream.md)
- [Upstream trees](results/costs/upstream_trees.md)
- [Grouped results](results/costs/grouped_results.md)
- [Sankey graphs](results/sankey.md)
11 changes: 11 additions & 0 deletions src/results/costs/grouped_results.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Grouped results

Returns the analysis group results for the calculated LCC results.

| | |
| ----------- | --------------------------- |
| Rest API | `GET result/{result-id}/grouped-cost-results` |
| JSON-RPC | `result/grouped-cost-results` |
| Snake case | `result.get_grouped_cost_results` |
| Camel case | `result.getGroupedCostResults` |
| Return type | [`List[GroupValue]`](http://greendelta.github.io/olca-schema/classes/GroupValue.html) |
12 changes: 12 additions & 0 deletions src/results/envi-flows/grouped_results.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Grouped results

Returns the analysis group results for a given flow.

| | |
| ----------- | --------------------------- |
| Rest API | `GET result/{result-id}/grouped-flow-results-of/{envi-flow}` |
| JSON-RPC | `result/grouped-flow-results-of` |
| Snake case | `result.get_grouped_flow_results_of` |
| Camel case | `result.getGroupedFlowResultsOf` |
| Return type | [`List[GroupValue]`](http://greendelta.github.io/olca-schema/classes/GroupValue.html) |
| Parameter 1 | [`EnviFlow`](http://greendelta.github.io/olca-schema/classes/EnviFlow.html) |
12 changes: 12 additions & 0 deletions src/results/impacts/grouped_results.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Grouped results

Returns the analysis group results for a given impact category.

| | |
| ----------- | --------------------------- |
| Rest API | `GET result/{result-id}/grouped-impact-results-of/{impact-category}` |
| JSON-RPC | `result/grouped-impact-results-of` |
| Snake case | `result.get_grouped_impact_results_of` |
| Camel case | `result.getGroupedImpactResultsOf` |
| Return type | [`List[GroupValue]`](http://greendelta.github.io/olca-schema/classes/GroupValue.html) |
| Parameter 1 | [`Ref[ImpactCategory]`](http://greendelta.github.io/olca-schema/classes/Ref.html) |

0 comments on commit a3cb866

Please sign in to comment.