Class VariableStepConfigValue
- java.lang.Object
-
- org.intocps.maestro.interpreter.values.Value
-
- org.intocps.maestro.interpreter.values.variablestep.VariableStepConfigValue
-
public class VariableStepConfigValue extends Value
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVariableStepConfigValue.StepVal
-
Constructor Summary
Constructors Constructor Description VariableStepConfigValue(java.util.Map<org.intocps.maestro.framework.fmi2.ModelConnection.ModelInstance,org.intocps.maestro.fmi.FmiSimulationInstance> instances, java.util.Set<InitializationMsgJson.Constraint> constraints, StepsizeInterval stepsizeInterval, java.lang.Double initSize, java.lang.Double maxStepSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDataPoint(java.lang.Double time, java.util.List<Value> portValues)voidaddDerivatives(java.util.List<java.util.List<RealValue>> derivatives, double time)java.lang.DoublegetReducedStepSize()doublegetStepSize()booleanhasReducedStepSize()voidinitializePorts(java.util.List<java.lang.String> portNames)booleanisStepValid(java.lang.Double nextTime, java.util.List<Value> portValues, boolean supportsRollBack)voidsetEndTime(java.lang.Double endTime)-
Methods inherited from class org.intocps.maestro.interpreter.values.Value
checkArgLength, compareTo, deref
-
-
-
-
Constructor Detail
-
VariableStepConfigValue
public VariableStepConfigValue(java.util.Map<org.intocps.maestro.framework.fmi2.ModelConnection.ModelInstance,org.intocps.maestro.fmi.FmiSimulationInstance> instances, java.util.Set<InitializationMsgJson.Constraint> constraints, StepsizeInterval stepsizeInterval, java.lang.Double initSize, java.lang.Double maxStepSize) throws InterpreterException- Throws:
InterpreterException
-
-
Method Detail
-
initializePorts
public void initializePorts(java.util.List<java.lang.String> portNames)
-
addDataPoint
public void addDataPoint(java.lang.Double time, java.util.List<Value> portValues)
-
addDerivatives
public void addDerivatives(java.util.List<java.util.List<RealValue>> derivatives, double time)
-
getStepSize
public double getStepSize()
-
isStepValid
public boolean isStepValid(java.lang.Double nextTime, java.util.List<Value> portValues, boolean supportsRollBack)
-
hasReducedStepSize
public boolean hasReducedStepSize()
-
getReducedStepSize
public java.lang.Double getReducedStepSize()
-
setEndTime
public void setEndTime(java.lang.Double endTime)
-
-