Class NRNUtils

    • Constructor Detail

      • NRNUtils

        public NRNUtils()
    • Method Detail

      • getSafeName

        public static String getSafeName​(String id)
      • checkCommentLineLength

        protected static String checkCommentLineLength​(String comment)
      • getStateVarName

        protected static String getStateVarName​(String sv)
      • checkForBinaryOperators

        protected static String checkForBinaryOperators​(String expr)
      • getThreshold

        protected static float getThreshold​(org.lemsml.jlems.core.type.Component comp,
                                            org.lemsml.jlems.core.type.Lems lems)
                                     throws org.lemsml.jlems.core.expression.ParseError,
                                            org.lemsml.jlems.core.sim.ContentError,
                                            org.lemsml.jlems.core.sim.LEMSException
        Throws:
        org.lemsml.jlems.core.expression.ParseError
        org.lemsml.jlems.core.sim.ContentError
        org.lemsml.jlems.core.sim.LEMSException
      • getMechanismName

        public static String getMechanismName​(org.lemsml.jlems.core.type.Component comp,
                                              String popName)
      • getNeuronUnit

        protected static String getNeuronUnit​(String dimensionName)
      • convertToNeuronUnits

        protected static float convertToNeuronUnits​(String neuromlQuantity,
                                                    org.lemsml.jlems.core.type.Lems lems)
                                             throws org.lemsml.jlems.core.expression.ParseError,
                                                    org.lemsml.jlems.core.sim.ContentError,
                                                    org.lemsml.jlems.core.sim.LEMSException
        Throws:
        org.lemsml.jlems.core.expression.ParseError
        org.lemsml.jlems.core.sim.ContentError
        org.lemsml.jlems.core.sim.LEMSException
      • convert

        public float convert​(float siValue,
                             String dimensionName)
                      throws org.lemsml.jlems.core.sim.LEMSException
        Specified by:
        convert in interface UnitConverter
        Throws:
        org.lemsml.jlems.core.sim.LEMSException
      • convertToNeuronUnits

        protected static float convertToNeuronUnits​(float siVal,
                                                    String dimensionName)
                                             throws org.lemsml.jlems.core.sim.LEMSException
        Throws:
        org.lemsml.jlems.core.sim.LEMSException
      • getNeuronUnitFactor

        public static float getNeuronUnitFactor​(String dimensionName)
                                         throws org.lemsml.jlems.core.sim.LEMSException
        Throws:
        org.lemsml.jlems.core.sim.LEMSException
      • getDerivativeUnit

        protected static String getDerivativeUnit​(String dimensionName)
      • isPlottingSavingSynVariables

        public static boolean isPlottingSavingSynVariables​(org.lemsml.jlems.core.type.Component simCpt,
                                                           boolean nogui)
      • main

        public static void main​(String[] args)
                         throws org.lemsml.jlems.core.sim.LEMSException
        Throws:
        org.lemsml.jlems.core.sim.LEMSException