Package org.neuroml.export.neuron
Class NRNUtils
- java.lang.Object
-
- org.neuroml.export.neuron.NRNUtils
-
- All Implemented Interfaces:
UnitConverter
public class NRNUtils extends Object implements UnitConverter
- Author:
- Boris Marin, Padraig Gleeson
-
-
Constructor Summary
Constructors Constructor Description NRNUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static String
checkCommentLineLength(String comment)
protected static String
checkForBinaryOperators(String expr)
protected static String
checkForStateVarsAndNested(String expr, org.lemsml.jlems.core.type.Component comp, LinkedHashMap<String,LinkedHashMap<String,String>> paramMappings)
float
convert(float siValue, String dimensionName)
protected static float
convertToNeuronUnits(float siVal, String dimensionName)
protected static float
convertToNeuronUnits(String neuromlQuantity, org.lemsml.jlems.core.type.Lems lems)
protected static String
getDerivativeUnit(String dimensionName)
static String
getMechanismName(org.lemsml.jlems.core.type.Component comp, String popName)
protected static String
getNeuronUnit(String dimensionName)
static float
getNeuronUnitFactor(String dimensionName)
static String
getSafeName(String id)
protected static String
getStateVarName(String sv)
protected static float
getThreshold(org.lemsml.jlems.core.type.Component comp, org.lemsml.jlems.core.type.Lems lems)
static boolean
isPlottingSavingSynVariables(org.lemsml.jlems.core.type.Component simCpt, boolean nogui)
static void
main(String[] args)
-
-
-
Method Detail
-
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
-
checkForStateVarsAndNested
protected static String checkForStateVarsAndNested(String expr, org.lemsml.jlems.core.type.Component comp, LinkedHashMap<String,LinkedHashMap<String,String>> paramMappings)
-
getMechanismName
public static String getMechanismName(org.lemsml.jlems.core.type.Component comp, String popName)
-
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 interfaceUnitConverter
- 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
-
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
-
-