public abstract class AbstractGINMLWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DTD |
| Constructor and Description |
|---|
AbstractGINMLWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
export(OutputStream out)
Start the GINML export.
|
abstract List<String> |
getNodes()
get the names of the nodes to save in GINML.
|
protected void |
writeEdge(XMLWriter xw,
String from,
String to,
int threshold,
String sign)
Write an edge to GINML.
|
abstract void |
writeEdges(XMLWriter out)
Start writing the edges (interactions).
|
protected void |
writeLogicalParameter(XMLWriter xw,
int targetValue,
String activeInteractions)
Write a logical parameter to GINML.
|
protected void |
writeNodeDecl(XMLWriter xw,
String nodeID,
int max)
Write a node declaration to GINML.
|
abstract void |
writeNodes(XMLWriter out)
Start writing the nodes.
|
public static final String DEFAULT_DTD
public void export(OutputStream out) throws IOException
out - an opened output stream to save the resultIOException - if writing failspublic abstract List<String> getNodes()
public abstract void writeNodes(XMLWriter out) throws IOException
out - an opened XML writer to save the resultIOException - if writing failspublic abstract void writeEdges(XMLWriter out) throws IOException
out - an opened XML writer to save the resultIOException - if writing failsprotected void writeEdge(XMLWriter xw, String from, String to, int threshold, String sign) throws IOException
xw - an opened XML writer to save the resultfrom - the name of the source nodeto - the name of the target nodethreshold - the threshold of this interactionsign - the sign of this interactionIOException - if writing failsprotected void writeNodeDecl(XMLWriter xw, String nodeID, int max) throws IOException
xw - an opened XML writer to save the resultnodeID - the ID of the component to savemax - the maximal value of this component (should be at least 1)IOException - if writing failsprotected void writeLogicalParameter(XMLWriter xw, int targetValue, String activeInteractions) throws IOException
xw - an opened XML writer to save the resulttargetValue - the target value when this parameter is enabledactiveInteractions - the list of associated active interactionsIOException - if writing failsCopyright © 2012–2020. All rights reserved.