Class 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>
    • Constructor Detail

      • MablApiBuilder

        public MablApiBuilder()
      • 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:
        isDirty in interface 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>
      • resetDirty

        public void resetDirty()
        Specified by:
        resetDirty in interface 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>
      • setRuntimeLogger

        public void setRuntimeLogger​(LoggerFmi2Api runtimeLogger)
      • getSettings

        public MablApiBuilder.MablSettings getSettings()
        Specified by:
        getSettings in interface 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>
      • getRootScope

        public IMablScope getRootScope()
        Specified by:
        getRootScope in interface 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>
      • getDynamicScope

        public DynamicActiveBuilderScope getDynamicScope()
        Specified by:
        getDynamicScope in interface 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>
      • 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:
        getCurrentLinkedValue in interface 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>
      • getDoubleVariableFrom

        public DoubleVariableFmi2Api getDoubleVariableFrom​(org.intocps.maestro.ast.node.PExp exp)
        Specified by:
        getDoubleVariableFrom in interface 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>
      • getIntVariableFrom

        public IntVariableFmi2Api getIntVariableFrom​(org.intocps.maestro.ast.node.PExp exp)
        Specified by:
        getIntVariableFrom in interface 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>
      • getStringVariableFrom

        public StringVariableFmi2Api getStringVariableFrom​(org.intocps.maestro.ast.node.PExp exp)
        Specified by:
        getStringVariableFrom in interface 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>
      • getBooleanVariableFrom

        public BooleanVariableFmi2Api getBooleanVariableFrom​(org.intocps.maestro.ast.node.PExp exp)
        Specified by:
        getBooleanVariableFrom in interface 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>
      • getFmuVariableFrom

        public FmuVariableFmi2Api getFmuVariableFrom​(org.intocps.maestro.ast.node.PExp exp)
        Specified by:
        getFmuVariableFrom in interface 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>
      • buildRaw

        public org.intocps.maestro.ast.node.PStm buildRaw()
                                                   throws org.intocps.maestro.ast.analysis.AnalysisException
        Specified by:
        buildRaw in interface 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>
        Throws:
        org.intocps.maestro.ast.analysis.AnalysisException
      • loadRuntimeModule

        public RuntimeModuleVariable loadRuntimeModule​(java.lang.String name,
                                                       java.lang.Object... args)
        Specified by:
        loadRuntimeModule in interface 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>
      • 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:
        loadRuntimeModule in interface 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>
      • 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:
        build in interface 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>
        Throws:
        org.intocps.maestro.ast.analysis.AnalysisException
      • addExternalLoadedModuleIdentifier

        public void addExternalLoadedModuleIdentifier​(java.lang.String name)
      • getExternalLoadedModuleIdentifiers

        public java.util.Set<java.lang.String> getExternalLoadedModuleIdentifiers()
      • getDerivativeEstimator

        public org.intocps.maestro.framework.fmi2.api.DerivativeEstimator getDerivativeEstimator()
      • getDataWriter

        public DataWriter getDataWriter()
      • getRealTimeModule

        public RealTime getRealTimeModule()