Package org.neuroml.export.brian
Class BrianWriter
- java.lang.Object
-
- org.lemsml.export.base.ABaseWriter
-
- org.neuroml.export.base.ANeuroMLBaseWriter
-
- org.neuroml.export.brian.BrianWriter
-
- All Implemented Interfaces:
IBaseWriter
public class BrianWriter 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 BrianWriter(org.lemsml.jlems.core.type.Lems lems)
BrianWriter(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)
List<File>
convert()
void
getCompEqns(ANeuroMLBaseWriter.CompInfo compInfo, org.lemsml.jlems.core.type.Component compOrig, String popName, ArrayList<String> stateVars, String prefix)
String
getMainScript()
static void
main(String[] args)
void
setBrian2(boolean brian2)
void
setSupportedFeatures()
-
Methods inherited from class org.lemsml.export.base.ABaseWriter
getOutputFileName, getOutputFolder, setOutputFileName, setOutputFolder
-
-
-
-
Constructor Detail
-
BrianWriter
public BrianWriter(org.lemsml.jlems.core.type.Lems lems) throws ModelFeatureSupportException, org.lemsml.jlems.core.sim.LEMSException, org.neuroml.model.util.NeuroMLException
- Throws:
ModelFeatureSupportException
org.lemsml.jlems.core.sim.LEMSException
org.neuroml.model.util.NeuroMLException
-
BrianWriter
public BrianWriter(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()
-
setBrian2
public void setBrian2(boolean brian2)
-
addComment
protected void addComment(StringBuilder sb, String comment)
- Specified by:
addComment
in classABaseWriter
-
getMainScript
public String getMainScript() throws GenerationException, org.neuroml.model.util.NeuroMLException
- Throws:
GenerationException
org.neuroml.model.util.NeuroMLException
-
getCompEqns
public void getCompEqns(ANeuroMLBaseWriter.CompInfo compInfo, org.lemsml.jlems.core.type.Component compOrig, String popName, ArrayList<String> stateVars, String prefix) throws org.lemsml.jlems.core.sim.ContentError, org.lemsml.jlems.core.expression.ParseError
- Throws:
org.lemsml.jlems.core.sim.ContentError
org.lemsml.jlems.core.expression.ParseError
-
convert
public List<File> convert() throws GenerationException, IOException
- Throws:
GenerationException
IOException
-
-