public class GraphTranslatorJson extends GraphTranslator
{ "elements": { "edges": [ { "classes": "bives-ioedge", "data": { "source": "s2", "target": "r3" } }, { "classes": "bives-stimulator bives-deleted", "data": { "source": "s4", "target": "r3" } }, [...] ], "nodes": [ { "classes": "compartment", "data": { "id": "c1", "name": "compartment" } }, { "classes": "species", "data": { "id": "s2", "name": "sigb", "parent": "c1" } }, { "classes": "reaction bives-modified", "data": { "id": "r3", "name": "sigb degr", "parent": "c1" } }, [...] ] } }for more information see JsonGraphFormatDescription
Constructor and Description |
---|
GraphTranslatorJson() |
Modifier and Type | Method and Description |
---|---|
org.json.simple.JSONObject |
getJsonGraph()
Gets the JSON object.
|
String |
translate(HierarchyNetwork hn)
Translate a hierarchy network.
|
String |
translate(ReactionNetwork rn)
Translate a reaction network.
|
public org.json.simple.JSONObject getJsonGraph()
public String translate(ReactionNetwork rn)
GraphTranslator
translate
in class GraphTranslator
rn
- the internal reaction networkpublic String translate(HierarchyNetwork hn)
GraphTranslator
translate
in class GraphTranslator
hn
- the internal hierarchy networkCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.