Class NeuronWriter

    • Constructor Detail

      • NeuronWriter

        public NeuronWriter​(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
      • NeuronWriter

        public NeuronWriter​(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()
      • setParallelMode

        public void setParallelMode​(boolean parallel)
      • setNoGui

        public void setNoGui​(boolean nogui)
      • isNoGui

        public boolean isNoGui()
      • setGenerateAlphabetical

        public void setGenerateAlphabetical​(boolean generateAlphabetical)
      • generateMainScriptAndMods

        public List<File> generateMainScriptAndMods()
                                             throws org.lemsml.jlems.core.sim.LEMSException,
                                                    GenerationException,
                                                    org.neuroml.model.util.NeuroMLException
        Throws:
        org.lemsml.jlems.core.sim.LEMSException
        GenerationException
        org.neuroml.model.util.NeuroMLException
      • saveModToFile

        public File saveModToFile​(org.lemsml.jlems.core.type.Component comp,
                                  String mod)
                           throws org.lemsml.jlems.core.sim.ContentError
        Throws:
        org.lemsml.jlems.core.sim.ContentError
      • getMembraneProperties

        public org.neuroml.model.MembraneProperties getMembraneProperties​(org.neuroml.model.Cell cell)
      • convertCellWithMorphology

        public org.neuroml.model.IntracellularProperties convertCellWithMorphology​(org.lemsml.jlems.core.type.Component cellComponent)
                                                                            throws org.lemsml.jlems.core.sim.LEMSException,
                                                                                   org.neuroml.model.util.NeuroMLException
        Throws:
        org.lemsml.jlems.core.sim.LEMSException
        org.neuroml.model.util.NeuroMLException
      • generateCellFile

        public static String generateCellFile​(org.neuroml.model.Cell cell)
                                       throws org.lemsml.jlems.core.sim.LEMSException,
                                              org.neuroml.model.util.NeuroMLException
        Throws:
        org.lemsml.jlems.core.sim.LEMSException
        org.neuroml.model.util.NeuroMLException
      • formatDefault

        public static String formatDefault​(float num)
      • generateModFile

        public String generateModFile​(org.lemsml.jlems.core.type.Component comp)
                               throws org.lemsml.jlems.core.sim.LEMSException
        Throws:
        org.lemsml.jlems.core.sim.LEMSException
      • generateModFile

        public String generateModFile​(org.lemsml.jlems.core.type.Component comp,
                                      NeuronWriter.ChannelConductanceOption condOption)
                               throws org.lemsml.jlems.core.sim.LEMSException
        Throws:
        org.lemsml.jlems.core.sim.LEMSException
      • generateFilesForNeuroMLElements

        public void generateFilesForNeuroMLElements​(boolean compileMods)
                                             throws org.lemsml.jlems.core.sim.LEMSException,
                                                    org.neuroml.model.util.NeuroMLException,
                                                    IOException
        Throws:
        org.lemsml.jlems.core.sim.LEMSException
        org.neuroml.model.util.NeuroMLException
        IOException