Package org.lemsml.export.vhdl
Class VHDLDynamics
- java.lang.Object
-
- org.lemsml.export.vhdl.VHDLDynamics
-
public class VHDLDynamics extends Object
-
-
Constructor Summary
Constructors Constructor Description VHDLDynamics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
optimiseDerivedVariables(EDComponent edComponent, org.lemsml.jlems.core.type.ComponentType ct)
static String
writeConditionList(org.lemsml.jlems.core.type.ComponentType ct, String ineq, StringBuilder sensitivityList, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues)
static ArrayList<EDCondition>
writeConditions(org.lemsml.jlems.core.type.ComponentType ct, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.dynamics.OnCondition> onConditions, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues)
static void
writeDerivedVariables(EDComponent edComponent, org.lemsml.jlems.core.type.ComponentType ct, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.dynamics.DerivedVariable> derivedVariables, org.lemsml.jlems.core.type.Component comp, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues, org.lemsml.jlems.core.type.Lems lems)
static ArrayList<EDOnEntry>
writeEntrys(org.lemsml.jlems.core.type.ComponentType ct, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.dynamics.OnEntry> onEntrys, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues)
static ArrayList<EDEvent>
writeEvents(org.lemsml.jlems.core.type.ComponentType ct, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.dynamics.OnEvent> onEvents, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues)
static void
writeRegimes(EDComponent edComponent, org.lemsml.jlems.core.type.Component comp, boolean writeChildren, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues, org.lemsml.jlems.core.type.Lems lems)
static void
writeState(EDComponent edComponent, org.lemsml.jlems.core.type.Component comp, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues)
static void
writeStateFunctions(EDComponent edComponent, org.lemsml.jlems.core.type.Component comp)
static ArrayList<EDDynamic>
writeTimeDerivatives(org.lemsml.jlems.core.type.ComponentType ct, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.dynamics.TimeDerivative> timeDerivatives, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues, String regimeAddition)
-
-
-
Method Detail
-
writeEntrys
public static ArrayList<EDOnEntry> writeEntrys(org.lemsml.jlems.core.type.ComponentType ct, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.dynamics.OnEntry> onEntrys, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues) throws org.lemsml.jlems.core.sim.ContentError, com.fasterxml.jackson.core.JsonGenerationException, IOException
- Throws:
org.lemsml.jlems.core.sim.ContentError
com.fasterxml.jackson.core.JsonGenerationException
IOException
-
writeTimeDerivatives
public static ArrayList<EDDynamic> writeTimeDerivatives(org.lemsml.jlems.core.type.ComponentType ct, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.dynamics.TimeDerivative> timeDerivatives, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues, String regimeAddition) throws org.lemsml.jlems.core.sim.ContentError, com.fasterxml.jackson.core.JsonGenerationException, IOException
- Throws:
org.lemsml.jlems.core.sim.ContentError
com.fasterxml.jackson.core.JsonGenerationException
IOException
-
writeConditionList
public static String writeConditionList(org.lemsml.jlems.core.type.ComponentType ct, String ineq, StringBuilder sensitivityList, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues) throws org.lemsml.jlems.core.sim.ContentError, com.fasterxml.jackson.core.JsonGenerationException, IOException
- Throws:
org.lemsml.jlems.core.sim.ContentError
com.fasterxml.jackson.core.JsonGenerationException
IOException
-
writeRegimes
public static void writeRegimes(EDComponent edComponent, org.lemsml.jlems.core.type.Component comp, boolean writeChildren, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues, org.lemsml.jlems.core.type.Lems lems) throws com.fasterxml.jackson.core.JsonGenerationException, IOException, org.lemsml.jlems.core.sim.ContentError
- Throws:
com.fasterxml.jackson.core.JsonGenerationException
IOException
org.lemsml.jlems.core.sim.ContentError
-
writeStateFunctions
public static void writeStateFunctions(EDComponent edComponent, org.lemsml.jlems.core.type.Component comp) throws org.lemsml.jlems.core.sim.ContentError, com.fasterxml.jackson.core.JsonGenerationException, IOException
- Throws:
org.lemsml.jlems.core.sim.ContentError
com.fasterxml.jackson.core.JsonGenerationException
IOException
-
writeState
public static void writeState(EDComponent edComponent, org.lemsml.jlems.core.type.Component comp, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues) throws org.lemsml.jlems.core.sim.ContentError, com.fasterxml.jackson.core.JsonGenerationException, IOException
- Throws:
org.lemsml.jlems.core.sim.ContentError
com.fasterxml.jackson.core.JsonGenerationException
IOException
-
writeEvents
public static ArrayList<EDEvent> writeEvents(org.lemsml.jlems.core.type.ComponentType ct, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.dynamics.OnEvent> onEvents, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues) throws org.lemsml.jlems.core.sim.ContentError, com.fasterxml.jackson.core.JsonGenerationException, IOException
- Throws:
org.lemsml.jlems.core.sim.ContentError
com.fasterxml.jackson.core.JsonGenerationException
IOException
-
optimiseDerivedVariables
public static void optimiseDerivedVariables(EDComponent edComponent, org.lemsml.jlems.core.type.ComponentType ct)
-
writeDerivedVariables
public static void writeDerivedVariables(EDComponent edComponent, org.lemsml.jlems.core.type.ComponentType ct, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.dynamics.DerivedVariable> derivedVariables, org.lemsml.jlems.core.type.Component comp, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues, org.lemsml.jlems.core.type.Lems lems) throws org.lemsml.jlems.core.sim.ContentError, com.fasterxml.jackson.core.JsonGenerationException, IOException
- Throws:
org.lemsml.jlems.core.sim.ContentError
com.fasterxml.jackson.core.JsonGenerationException
IOException
-
writeConditions
public static ArrayList<EDCondition> writeConditions(org.lemsml.jlems.core.type.ComponentType ct, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.dynamics.OnCondition> onConditions, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.FinalParam> params, org.lemsml.jlems.core.type.LemsCollection<org.lemsml.jlems.core.type.ParamValue> combinedParameterValues) throws org.lemsml.jlems.core.sim.ContentError, com.fasterxml.jackson.core.JsonGenerationException, IOException
- Throws:
org.lemsml.jlems.core.sim.ContentError
com.fasterxml.jackson.core.JsonGenerationException
IOException
-
-