|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiouml.plugins.sbml.SbmlConstants
biouml.plugins.sbml.SbmlSupport
biouml.plugins.sbml.SbmlModelWriter
Writes diagram in SBML format. SbmlModelWriter can correctly process following types of diagram:
SbmlModelReader can recognise such stubs and remove them from model automatically. Thus "_in_empty_set" (REACTANT_STUB) and "_out_empty_set" are reserved key words that should not be used as species names.
| Field Summary | |
protected java.util.List |
compartmentList
|
protected org.w3c.dom.Document |
document
|
protected boolean |
doProductStub
|
protected boolean |
doReactantStub
|
protected org.w3c.dom.Element |
speciesListElement
|
| Fields inherited from class biouml.plugins.sbml.SbmlSupport |
diagram, emodel, log, modelName |
| Constructor Summary | |
SbmlModelWriter()
|
|
| Method Summary | |
org.w3c.dom.Document |
createDOM(Diagram sourceDiagram)
|
protected abstract org.w3c.dom.Element |
createSpecieElement()
|
protected void |
fillCompartmentList(Compartment compartment,
boolean includeItself)
|
protected abstract void |
initContext()
Initializes context of the writer. |
protected boolean |
parseAsSpecie(java.lang.String token,
java.lang.StringBuffer result)
|
protected abstract void |
setId(org.w3c.dom.Element element,
java.lang.String id)
Sets 'id' or 'name' attribute (according to level and version) equal to given string. |
protected abstract void |
setLevel(org.w3c.dom.Element sbmlElement)
|
protected abstract void |
setVersion(org.w3c.dom.Element sbmlElement)
|
protected abstract boolean |
validCompartmentList(java.util.List compartmentList)
Returns true if compartment list is valid according to given version of SBML specification. |
protected abstract boolean |
validReaction(Node reaction)
Returns true if reaction is valid according to given version of SBML specification. |
protected void |
writeCompartment(org.w3c.dom.Element compartmentListElement,
Compartment compartment)
|
protected org.w3c.dom.Element |
writeCompartmentList(org.w3c.dom.Element model)
|
protected void |
writeDiagram(org.w3c.dom.Element sbml)
|
protected abstract void |
writeEventList(org.w3c.dom.Element model)
|
protected abstract void |
writeFormula(java.lang.String formula,
Node reaction,
org.w3c.dom.Element kineticLawElement)
|
protected abstract void |
writeFunctionDefinitionList(org.w3c.dom.Element model)
Function definitions are only supported since level 2 |
protected void |
writeKineticLaw(org.w3c.dom.Element reactionElement,
Node reaction)
|
void |
writeNotes(org.w3c.dom.Element element,
java.lang.String notes)
|
protected void |
writeParameter(org.w3c.dom.Element parameterListElement,
Variable parameter)
|
protected void |
writeParameterList(org.w3c.dom.Element element)
|
protected void |
writeProducts(org.w3c.dom.Element reactionElement,
Node reaction)
|
protected void |
writeReactants(org.w3c.dom.Element reactionElement,
Node reaction)
|
protected void |
writeReaction(org.w3c.dom.Element reactionListElement,
Node reaction)
|
protected org.w3c.dom.Element |
writeReactionList(org.w3c.dom.Element model)
|
protected void |
writeReactionList(org.w3c.dom.Element reactionListElement,
Compartment compartment)
|
protected abstract void |
writeRuleList(org.w3c.dom.Element model)
Writes list of rules, that are not rules derived from reactions |
protected void |
writeSpecie(org.w3c.dom.Element speciesListElement,
Node species)
|
protected org.w3c.dom.Element |
writeSpecieList(org.w3c.dom.Element model)
|
protected void |
writeSpecieList(org.w3c.dom.Element speciesListElement,
Compartment compartment)
|
protected boolean |
writeSpecieReferences(org.w3c.dom.Element listElement,
Node reaction,
java.lang.String role)
|
protected void |
writeSpecieStub(org.w3c.dom.Element speciesListElement,
java.lang.String stubName,
java.lang.String messageKey)
|
protected void |
writeStubReference(org.w3c.dom.Element listElement,
Node reaction,
java.lang.String stubName)
|
protected abstract void |
writeUnitList(org.w3c.dom.Element model)
|
| Methods inherited from class biouml.plugins.sbml.SbmlSupport |
error, getElement, parseAsCompartment, parseAsParameter, parseFormula, readXhtml, warn, writeXhtml |
| Methods inherited from class biouml.plugins.sbml.SbmlConstants |
DEFAULT_SPATIAL_SIZE_UNITS |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.w3c.dom.Document document
protected java.util.List compartmentList
protected org.w3c.dom.Element speciesListElement
protected boolean doReactantStub
protected boolean doProductStub
| Constructor Detail |
public SbmlModelWriter()
| Method Detail |
protected abstract void setLevel(org.w3c.dom.Element sbmlElement)
protected abstract void setVersion(org.w3c.dom.Element sbmlElement)
protected abstract void setId(org.w3c.dom.Element element,
java.lang.String id)
protected abstract void initContext()
protected abstract boolean validCompartmentList(java.util.List compartmentList)
protected abstract boolean validReaction(Node reaction)
public org.w3c.dom.Document createDOM(Diagram sourceDiagram)
throws java.lang.Exception
java.lang.Exception
public void writeNotes(org.w3c.dom.Element element,
java.lang.String notes)
protected void writeDiagram(org.w3c.dom.Element sbml)
throws java.lang.Exception
java.lang.Exceptionprotected abstract void writeFunctionDefinitionList(org.w3c.dom.Element model)
protected abstract void writeUnitList(org.w3c.dom.Element model)
protected abstract void writeRuleList(org.w3c.dom.Element model)
protected abstract void writeEventList(org.w3c.dom.Element model)
protected org.w3c.dom.Element writeCompartmentList(org.w3c.dom.Element model)
protected void fillCompartmentList(Compartment compartment,
boolean includeItself)
protected void writeCompartment(org.w3c.dom.Element compartmentListElement,
Compartment compartment)
protected org.w3c.dom.Element writeSpecieList(org.w3c.dom.Element model)
protected void writeSpecieList(org.w3c.dom.Element speciesListElement,
Compartment compartment)
protected abstract org.w3c.dom.Element createSpecieElement()
protected void writeSpecie(org.w3c.dom.Element speciesListElement,
Node species)
protected void writeParameterList(org.w3c.dom.Element element)
protected void writeParameter(org.w3c.dom.Element parameterListElement,
Variable parameter)
protected org.w3c.dom.Element writeReactionList(org.w3c.dom.Element model)
protected void writeReactionList(org.w3c.dom.Element reactionListElement,
Compartment compartment)
protected void writeReaction(org.w3c.dom.Element reactionListElement,
Node reaction)
protected void writeReactants(org.w3c.dom.Element reactionElement,
Node reaction)
protected void writeProducts(org.w3c.dom.Element reactionElement,
Node reaction)
protected boolean writeSpecieReferences(org.w3c.dom.Element listElement,
Node reaction,
java.lang.String role)
protected void writeStubReference(org.w3c.dom.Element listElement,
Node reaction,
java.lang.String stubName)
protected void writeSpecieStub(org.w3c.dom.Element speciesListElement,
java.lang.String stubName,
java.lang.String messageKey)
protected void writeKineticLaw(org.w3c.dom.Element reactionElement,
Node reaction)
protected abstract void writeFormula(java.lang.String formula,
Node reaction,
org.w3c.dom.Element kineticLawElement)
protected boolean parseAsSpecie(java.lang.String token,
java.lang.StringBuffer result)
parseAsSpecie in class SbmlSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||