Class MablApiBuilder
- java.lang.Object
-
- org.intocps.maestro.framework.fmi2.api.mabl.MablApiBuilder
-
- All Implemented Interfaces:
org.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
public class MablApiBuilder extends java.lang.Object implements org.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMablApiBuilder.FmiStatusstatic classMablApiBuilder.MablSettings-
Nested classes/interfaces inherited from interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder
org.intocps.maestro.framework.fmi2.api.Fmi2Builder.ArrayVariable<T extends java.lang.Object,CV extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.BooleanExpressionValue, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.BoolVariable<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.DoubleExpressionValue, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.DoubleVariable<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.DynamicActiveScope<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.ExpressionValue, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Fmi2ComponentVariable<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Fmu2Variable<S extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.IfScope<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.IntExpressionValue, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.IntVariable<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.NamedValue, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.NamedVariable<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Numeric<A extends java.lang.Number>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.NumericExpressionValue, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.NumericTypedReferenceExp, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.NumericValue, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Port, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Predicate, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.ProvidesTypedReferenceExp, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.RuntimeFunction, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.RuntimeModule<S extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.ScopeElement<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.StateVariable<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.StringExpressionValue, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.StringVariable<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.TryScope<T extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Type, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Value<V extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Variable<T extends java.lang.Object,V extends java.lang.Object>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.WhileScope<T extends java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description MablApiBuilder()MablApiBuilder(MablApiBuilder.MablSettings settings)MablApiBuilder(MablApiBuilder.MablSettings settings, org.intocps.maestro.ast.node.INode lastNodePriorToBuilderTakeOver)Create a MablApiBuilder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExternalLoadedModuleIdentifier(java.lang.String name)org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnitbuild()org.intocps.maestro.ast.node.PStmbuildRaw()BooleanBuilderFmi2ApigetBooleanBuilder()BooleanVariableFmi2ApigetBooleanVariableFrom(org.intocps.maestro.ast.node.PExp exp)ConsolePrintergetConsolePrinter()<V,T>
org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Variable<T,V>getCurrentLinkedValue(org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Port port)DataWritergetDataWriter()org.intocps.maestro.framework.fmi2.api.DerivativeEstimatorgetDerivativeEstimator()DoubleVariableFmi2ApigetDoubleVariableFrom(org.intocps.maestro.ast.node.PExp exp)DynamicActiveBuilderScopegetDynamicScope()ExecutionEnvironmentFmi2ApigetExecutionEnvironment()java.util.Set<java.lang.String>getExternalLoadedModuleIdentifiers()IntVariableFmi2ApigetFmiStatusConstant(MablApiBuilder.FmiStatus status)FmuVariableFmi2ApigetFmuVariableFrom(org.intocps.maestro.ast.node.PExp exp)FunctionBuildergetFunctionBuilder()IntVariableFmi2ApigetGlobalFmiStatus()IntVariableFmi2ApigetIntVariableFrom(org.intocps.maestro.ast.node.PExp exp)LoggerFmi2ApigetLogger()MablToMablAPIgetMablToMablAPI()MathBuilderFmi2ApigetMathBuilder()TagNameGeneratorgetNameGenerator()RealTimegetRealTimeModule()IMablScopegetRootScope()MablApiBuilder.MablSettingsgetSettings()StringVariableFmi2ApigetStringVariableFrom(org.intocps.maestro.ast.node.PExp exp)VariableStepgetVariableStep(StringVariableFmi2Api config)booleanisDirty()RuntimeModuleVariableloadRuntimeModule(java.lang.String name, java.lang.Object... args)RuntimeModuleVariableloadRuntimeModule(org.intocps.maestro.framework.fmi2.api.Fmi2Builder.TryScope<org.intocps.maestro.ast.node.PStm> scope, java.lang.String name, java.lang.Object... args)RuntimeModuleVariableloadRuntimeModule(org.intocps.maestro.framework.fmi2.api.Fmi2Builder.TryScope<org.intocps.maestro.ast.node.PStm> scope, java.util.function.BiConsumer<org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>,java.util.List<org.intocps.maestro.ast.node.PStm>> variableStoreFunc, java.lang.String name, java.lang.Object... args)voidresetDirty()voidsetRuntimeLogger(LoggerFmi2Api runtimeLogger)
-
-
-
Constructor Detail
-
MablApiBuilder
public MablApiBuilder()
-
MablApiBuilder
public MablApiBuilder(MablApiBuilder.MablSettings settings)
-
MablApiBuilder
public MablApiBuilder(MablApiBuilder.MablSettings settings, org.intocps.maestro.ast.node.INode lastNodePriorToBuilderTakeOver)
Create a MablApiBuilder- Parameters:
settings-
-
-
Method Detail
-
isDirty
public boolean isDirty()
- Specified by:
isDirtyin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
resetDirty
public void resetDirty()
- Specified by:
resetDirtyin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
setRuntimeLogger
public void setRuntimeLogger(LoggerFmi2Api runtimeLogger)
-
getSettings
public MablApiBuilder.MablSettings getSettings()
- Specified by:
getSettingsin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
getFmiStatusConstant
public IntVariableFmi2Api getFmiStatusConstant(MablApiBuilder.FmiStatus status)
-
getMablToMablAPI
public MablToMablAPI getMablToMablAPI()
-
getGlobalFmiStatus
public IntVariableFmi2Api getGlobalFmiStatus()
-
getNameGenerator
public TagNameGenerator getNameGenerator()
-
getMathBuilder
public MathBuilderFmi2Api getMathBuilder()
-
getRootScope
public IMablScope getRootScope()
- Specified by:
getRootScopein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
getDynamicScope
public DynamicActiveBuilderScope getDynamicScope()
- Specified by:
getDynamicScopein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
getCurrentLinkedValue
public <V,T> org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Variable<T,V> getCurrentLinkedValue(org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Port port)
- Specified by:
getCurrentLinkedValuein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
getDoubleVariableFrom
public DoubleVariableFmi2Api getDoubleVariableFrom(org.intocps.maestro.ast.node.PExp exp)
- Specified by:
getDoubleVariableFromin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
getIntVariableFrom
public IntVariableFmi2Api getIntVariableFrom(org.intocps.maestro.ast.node.PExp exp)
- Specified by:
getIntVariableFromin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
getStringVariableFrom
public StringVariableFmi2Api getStringVariableFrom(org.intocps.maestro.ast.node.PExp exp)
- Specified by:
getStringVariableFromin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
getBooleanVariableFrom
public BooleanVariableFmi2Api getBooleanVariableFrom(org.intocps.maestro.ast.node.PExp exp)
- Specified by:
getBooleanVariableFromin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
getFmuVariableFrom
public FmuVariableFmi2Api getFmuVariableFrom(org.intocps.maestro.ast.node.PExp exp)
- Specified by:
getFmuVariableFromin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
buildRaw
public org.intocps.maestro.ast.node.PStm buildRaw() throws org.intocps.maestro.ast.analysis.AnalysisException- Specified by:
buildRawin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>- Throws:
org.intocps.maestro.ast.analysis.AnalysisException
-
loadRuntimeModule
public RuntimeModuleVariable loadRuntimeModule(java.lang.String name, java.lang.Object... args)
- Specified by:
loadRuntimeModulein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
loadRuntimeModule
public RuntimeModuleVariable loadRuntimeModule(org.intocps.maestro.framework.fmi2.api.Fmi2Builder.TryScope<org.intocps.maestro.ast.node.PStm> scope, java.lang.String name, java.lang.Object... args)
- Specified by:
loadRuntimeModulein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>
-
loadRuntimeModule
public RuntimeModuleVariable loadRuntimeModule(org.intocps.maestro.framework.fmi2.api.Fmi2Builder.TryScope<org.intocps.maestro.ast.node.PStm> scope, java.util.function.BiConsumer<org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>,java.util.List<org.intocps.maestro.ast.node.PStm>> variableStoreFunc, java.lang.String name, java.lang.Object... args)
-
build
public org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit build() throws org.intocps.maestro.ast.analysis.AnalysisException- Specified by:
buildin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder<org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit,org.intocps.maestro.ast.node.PExp,MablApiBuilder.MablSettings>- Throws:
org.intocps.maestro.ast.analysis.AnalysisException
-
getFunctionBuilder
public FunctionBuilder getFunctionBuilder()
-
addExternalLoadedModuleIdentifier
public void addExternalLoadedModuleIdentifier(java.lang.String name)
-
getExternalLoadedModuleIdentifiers
public java.util.Set<java.lang.String> getExternalLoadedModuleIdentifiers()
-
getBooleanBuilder
public BooleanBuilderFmi2Api getBooleanBuilder()
-
getExecutionEnvironment
public ExecutionEnvironmentFmi2Api getExecutionEnvironment()
-
getLogger
public LoggerFmi2Api getLogger()
-
getVariableStep
public VariableStep getVariableStep(StringVariableFmi2Api config)
-
getDerivativeEstimator
public org.intocps.maestro.framework.fmi2.api.DerivativeEstimator getDerivativeEstimator()
-
getDataWriter
public DataWriter getDataWriter()
-
getConsolePrinter
public ConsolePrinter getConsolePrinter()
-
getRealTimeModule
public RealTime getRealTimeModule()
-
-