Package org.lemsml.export.dlems
Class DLemsWriter
- java.lang.Object
-
- org.lemsml.export.base.ABaseWriter
-
- org.lemsml.export.dlems.DLemsWriter
-
- All Implemented Interfaces:
IBaseWriter
public class DLemsWriter extends ABaseWriter
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_SEED
-
Fields inherited from class org.lemsml.export.base.ABaseWriter
format, lems, sli
-
-
Constructor Summary
Constructors Constructor Description DLemsWriter(org.lemsml.jlems.core.type.Lems lems)
DLemsWriter(org.lemsml.jlems.core.type.Lems lems, File outputFolder, String outputFileName)
DLemsWriter(org.lemsml.jlems.core.type.Lems lems, File outputFolder, String outputFileName, CommonLangWriter writer)
DLemsWriter(org.lemsml.jlems.core.type.Lems lems, File outputFolder, String outputFileName, CommonLangWriter writer, boolean checkSupportedFeatures)
DLemsWriter(org.lemsml.jlems.core.type.Lems lems, CommonLangWriter writer)
DLemsWriter(org.lemsml.jlems.core.type.Lems lems, CommonLangWriter writer, boolean checkSupportedFeatures)
-
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()
String
getMainScript()
static void
main(String[] args)
static void
putIntoVelocityContext(String dlems, org.apache.velocity.VelocityContext context)
void
setFlattenSynapses(boolean flattenSynapses)
void
setNeuronMode(boolean mode)
void
setOnlyFlattenIfNecessary(boolean onlyFlattenIfNecessary)
void
setPopulationMode(boolean mode)
void
setSupportedFeatures()
void
setUnitConverter(UnitConverter unitConv)
-
Methods inherited from class org.lemsml.export.base.ABaseWriter
getOutputFileName, getOutputFolder, setOutputFileName, setOutputFolder
-
-
-
-
Field Detail
-
DEFAULT_SEED
public static final int DEFAULT_SEED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DLemsWriter
public DLemsWriter(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
-
DLemsWriter
public DLemsWriter(org.lemsml.jlems.core.type.Lems lems, CommonLangWriter writer, boolean checkSupportedFeatures) 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
-
DLemsWriter
public DLemsWriter(org.lemsml.jlems.core.type.Lems lems, CommonLangWriter writer) 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
-
DLemsWriter
public DLemsWriter(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
-
DLemsWriter
public DLemsWriter(org.lemsml.jlems.core.type.Lems lems, File outputFolder, String outputFileName, CommonLangWriter writer, boolean checkSupportedFeatures) 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
-
DLemsWriter
public DLemsWriter(org.lemsml.jlems.core.type.Lems lems, File outputFolder, String outputFileName, CommonLangWriter writer) 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
-
setPopulationMode
public void setPopulationMode(boolean mode)
-
setNeuronMode
public void setNeuronMode(boolean mode)
-
setOnlyFlattenIfNecessary
public void setOnlyFlattenIfNecessary(boolean onlyFlattenIfNecessary)
-
setFlattenSynapses
public void setFlattenSynapses(boolean flattenSynapses)
-
setUnitConverter
public void setUnitConverter(UnitConverter unitConv)
-
setSupportedFeatures
public void setSupportedFeatures()
-
putIntoVelocityContext
public static void putIntoVelocityContext(String dlems, org.apache.velocity.VelocityContext context) throws IOException
- Throws:
IOException
-
getMainScript
public String getMainScript() throws org.lemsml.jlems.core.sim.LEMSException, IOException
- Throws:
org.lemsml.jlems.core.sim.LEMSException
IOException
-
convert
public List<File> convert() throws GenerationException, IOException
- Throws:
GenerationException
IOException
-
addComment
protected void addComment(StringBuilder sb, String comment)
- Specified by:
addComment
in classABaseWriter
-
-