diff --git a/src/arcade/patch/env/component/PatchComponentSitesGraph.java b/src/arcade/patch/env/component/PatchComponentSitesGraph.java index 771147dd6..ce1c7ba96 100644 --- a/src/arcade/patch/env/component/PatchComponentSitesGraph.java +++ b/src/arcade/patch/env/component/PatchComponentSitesGraph.java @@ -605,6 +605,22 @@ public double getCircum() { public double getFlow() { return flow; } + + public String getFraction() { + StringBuilder sb = new StringBuilder(); + for (String key : fraction.keySet()) { + sb.append(key + ":" + fraction.get(key) + ","); + } + return sb.toString(); + } + + public String getTransport() { + StringBuilder sb = new StringBuilder(); + for (String key : transport.keySet()) { + sb.append(key + ":" + transport.get(key) + ","); + } + return sb.toString(); + } } /** diff --git a/src/arcade/patch/sim/output/PatchOutputSerializer.java b/src/arcade/patch/sim/output/PatchOutputSerializer.java index cdfa02efa..6163a4217 100644 --- a/src/arcade/patch/sim/output/PatchOutputSerializer.java +++ b/src/arcade/patch/sim/output/PatchOutputSerializer.java @@ -220,12 +220,15 @@ public JsonElement serialize( * "from": (from), * "to": (to), * "type": (type), + * "sign": (sign), * "radius": (radius), * "length": (length), * "wall": (wall), * "shear": (shear), * "stress": (stress), * "flow": (flow), + * "fraction": (fraction), + * "transport": (transport), * } * */ @@ -238,6 +241,7 @@ public JsonElement serialize( json.add("from", context.serialize(src.getFrom())); json.add("to", context.serialize(src.getTo())); json.addProperty("type", src.getType()); + json.addProperty("sign", src.getSign()); json.addProperty("radius", src.getRadius()); json.addProperty("length", src.getLength()); json.addProperty("wall", src.getWall());