Package org.neuroml.export.graph
Class GraphWriter
- java.lang.Object
-
- org.lemsml.export.base.ABaseWriter
-
- org.neuroml.export.base.ANeuroMLBaseWriter
-
- org.neuroml.export.graph.GraphWriter
-
- All Implemented Interfaces:
IBaseWriter
public class GraphWriter extends ANeuroMLBaseWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.neuroml.export.base.ANeuroMLBaseWriter
ANeuroMLBaseWriter.CompInfo
-
-
Field Summary
-
Fields inherited from class org.neuroml.export.base.ANeuroMLBaseWriter
nmlDocument
-
Fields inherited from class org.lemsml.export.base.ABaseWriter
format, lems, sli
-
-
Constructor Summary
Constructors Constructor Description GraphWriter(org.lemsml.jlems.core.type.Lems lems)
GraphWriter(org.lemsml.jlems.core.type.Lems lems, File outputFolder, String outputFileName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addComment(StringBuilder sb, String comment)
protected void
addCompAndChildren(org.lemsml.jlems.core.type.Component comp, String parent, String arrowLabel)
protected void
addCompTypeAndChildrenAndExtends(org.lemsml.jlems.core.type.ComponentType compType, String parent, String extendedType, int depth)
List<File>
convert()
protected String
getCompTypeInfo(org.lemsml.jlems.core.type.ComponentType compType)
protected String
getDimensionString(String dim)
String
getMainScript()
protected String
getValAndUnit(double value, String dimName)
static void
main(String[] args)
void
setSupportedFeatures()
-
Methods inherited from class org.lemsml.export.base.ABaseWriter
getOutputFileName, getOutputFolder, setOutputFileName, setOutputFolder
-
-
-
-
Constructor Detail
-
GraphWriter
public GraphWriter(org.lemsml.jlems.core.type.Lems lems) throws ModelFeatureSupportException, org.neuroml.model.util.NeuroMLException, org.lemsml.jlems.core.sim.LEMSException
- Throws:
ModelFeatureSupportException
org.neuroml.model.util.NeuroMLException
org.lemsml.jlems.core.sim.LEMSException
-
GraphWriter
public GraphWriter(org.lemsml.jlems.core.type.Lems lems, File outputFolder, String outputFileName) throws ModelFeatureSupportException, org.neuroml.model.util.NeuroMLException, org.lemsml.jlems.core.sim.LEMSException
- Throws:
ModelFeatureSupportException
org.neuroml.model.util.NeuroMLException
org.lemsml.jlems.core.sim.LEMSException
-
-
Method Detail
-
setSupportedFeatures
public void setSupportedFeatures()
-
addComment
protected void addComment(StringBuilder sb, String comment)
- Specified by:
addComment
in classABaseWriter
-
getMainScript
public String getMainScript() throws GenerationException
- Throws:
GenerationException
-
getCompTypeInfo
protected String getCompTypeInfo(org.lemsml.jlems.core.type.ComponentType compType) throws org.lemsml.jlems.core.sim.ContentError
- Throws:
org.lemsml.jlems.core.sim.ContentError
-
addCompTypeAndChildrenAndExtends
protected void addCompTypeAndChildrenAndExtends(org.lemsml.jlems.core.type.ComponentType compType, String parent, String extendedType, int depth) throws org.lemsml.jlems.core.sim.ContentError
- Throws:
org.lemsml.jlems.core.sim.ContentError
-
getValAndUnit
protected String getValAndUnit(double value, String dimName) throws org.lemsml.jlems.core.sim.ContentError
- Throws:
org.lemsml.jlems.core.sim.ContentError
-
addCompAndChildren
protected void addCompAndChildren(org.lemsml.jlems.core.type.Component comp, String parent, String arrowLabel) throws org.lemsml.jlems.core.sim.ContentError
- Throws:
org.lemsml.jlems.core.sim.ContentError
-
-