Package org.neuroml.export.pynn
Class PyNNWriter
- java.lang.Object
-
- org.lemsml.export.base.ABaseWriter
-
- org.neuroml.export.base.ANeuroMLBaseWriter
-
- org.neuroml.export.pynn.PyNNWriter
-
- All Implemented Interfaces:
IBaseWriter
public class PyNNWriter extends ANeuroMLBaseWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.neuroml.export.base.ANeuroMLBaseWriter
ANeuroMLBaseWriter.CompInfo
-
-
Field Summary
Fields Modifier and Type Field Description String
CELL_DEFINITION_SUFFIX
String
INPUT_DEFINITION_SUFFIX
-
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 PyNNWriter(org.lemsml.jlems.core.type.Lems lems)
PyNNWriter(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()
List<File>
generateAndRun(boolean nogui, boolean runNrn)
String
getMainScript()
static void
main(String[] args)
void
setOutputFolder(File outputFolder)
void
setSupportedFeatures()
-
Methods inherited from class org.lemsml.export.base.ABaseWriter
getOutputFileName, getOutputFolder, setOutputFileName
-
-
-
-
Field Detail
-
CELL_DEFINITION_SUFFIX
public final String CELL_DEFINITION_SUFFIX
- See Also:
- Constant Field Values
-
INPUT_DEFINITION_SUFFIX
public final String INPUT_DEFINITION_SUFFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PyNNWriter
public PyNNWriter(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
-
PyNNWriter
public PyNNWriter(org.lemsml.jlems.core.type.Lems lems, File outputFolder, String outputFileName) 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
-
-
Method Detail
-
setOutputFolder
public void setOutputFolder(File outputFolder)
- Specified by:
setOutputFolder
in interfaceIBaseWriter
- Overrides:
setOutputFolder
in classABaseWriter
-
setSupportedFeatures
public void setSupportedFeatures()
-
addComment
protected void addComment(StringBuilder sb, String comment)
- Specified by:
addComment
in classABaseWriter
-
generateAndRun
public List<File> generateAndRun(boolean nogui, boolean runNrn) throws org.lemsml.jlems.core.sim.LEMSException, GenerationException, org.neuroml.model.util.NeuroMLException, IOException, ModelFeatureSupportException
- Throws:
org.lemsml.jlems.core.sim.LEMSException
GenerationException
org.neuroml.model.util.NeuroMLException
IOException
ModelFeatureSupportException
-
getMainScript
public String getMainScript() throws GenerationException
- Throws:
GenerationException
-
convert
public List<File> convert() throws GenerationException, IOException
- Throws:
GenerationException
IOException
-
-