Interface IMablScope

  • All Superinterfaces:
    org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.ScopeElement<org.intocps.maestro.ast.node.PStm>, org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
    All Known Implementing Classes:
    DynamicActiveBuilderScope, ScopeFmi2Api, WhileMaBLScope

    public interface IMablScope
    extends org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
    • Method Detail

      • parent

        org.intocps.maestro.framework.fmi2.api.Fmi2Builder.ScopeElement<org.intocps.maestro.ast.node.PStm> parent()
        Specified by:
        parent in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.ScopeElement<org.intocps.maestro.ast.node.PStm>
      • getName

        java.lang.String getName​(java.lang.String prefix)
      • enterScope

        IMablScope enterScope()
        Specified by:
        enterScope in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
      • enterTry

        TryMaBlScope enterTry()
        Specified by:
        enterTry in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
      • store

        BooleanVariableFmi2Api store​(boolean value)
        Specified by:
        store in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
      • enterWhile

        WhileMaBLScope enterWhile​(org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Predicate predicate)
        Specified by:
        enterWhile in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
      • enterIf

        IfMaBlScope enterIf​(org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Predicate predicate)
        Specified by:
        enterIf in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
      • parallel

        IMablScope parallel()
        Specified by:
        parallel in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
      • leave

        ScopeFmi2Api leave()
        Specified by:
        leave in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
      • add

        void add​(org.intocps.maestro.ast.node.PStm... commands)
        Specified by:
        add in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
      • addAll

        void addAll​(java.util.Collection<org.intocps.maestro.ast.node.PStm> commands)
        Specified by:
        addAll in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
      • addBefore

        void addBefore​(org.intocps.maestro.ast.node.PStm item,
                       org.intocps.maestro.ast.node.PStm... commands)
        Specified by:
        addBefore in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
      • addAfter

        void addAfter​(org.intocps.maestro.ast.node.PStm item,
                      org.intocps.maestro.ast.node.PStm... commands)
        Specified by:
        addAfter in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
      • addAfterOrTop

        void addAfterOrTop​(org.intocps.maestro.ast.node.PStm item,
                           org.intocps.maestro.ast.node.PStm... commands)
      • indexOf

        int indexOf​(org.intocps.maestro.ast.node.PStm stm)
      • activate

        IMablScope activate()
        Specified by:
        activate in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
        Specified by:
        activate in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
      • store

        DoubleVariableFmi2Api store​(double value)
        Specified by:
        store in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
      • store

        IntVariableFmi2Api store​(int value)
        Specified by:
        store in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
      • store

        StringVariableFmi2Api store​(java.lang.String value)
        Specified by:
        store in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
      • store

        DoubleVariableFmi2Api store​(java.lang.String name,
                                    double value)
        Specified by:
        store in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
      • store

        BooleanVariableFmi2Api store​(java.lang.String name,
                                     boolean value)
        Specified by:
        store in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
      • store

        IntVariableFmi2Api store​(java.lang.String name,
                                 int value)
        Specified by:
        store in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
      • store

        StringVariableFmi2Api store​(java.lang.String name,
                                    java.lang.String value)
        Specified by:
        store in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
      • store

        <V> ArrayVariableFmi2Api<V> store​(java.lang.String name,
                                          V[] value)
        Specified by:
        store in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
      • store

        <V> org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Variable<org.intocps.maestro.ast.node.PStm,​V> store​(org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Value<V> tag)
        Specified by:
        store in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
      • createFMU

        FmuVariableFmi2Api createFMU​(java.lang.String name,
                                     org.intocps.maestro.fmi.Fmi2ModelDescription modelDescription,
                                     java.net.URI path)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createFMU

        FmuVariableFmi2Api createFMU​(java.lang.String name,
                                     java.lang.String loaderName,
                                     java.lang.String... args)
                              throws java.lang.Exception
        Specified by:
        createFMU in interface org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
        Throws:
        java.lang.Exception
      • copy

        <Var extends VariableFmi2Api> Var copy​(java.lang.String name,
                                               Var variable)
      • getAllComponentFmi2Variables

        java.util.Set<ComponentVariableFmi2Api> getAllComponentFmi2Variables()
        Retrieves a set of allComponentFmi2Variables including those of parents
        Returns:
      • registerComponentVariableFmi2Api

        void registerComponentVariableFmi2Api​(ComponentVariableFmi2Api componentVariableFmi2Api)
        This is used to maintain a register of stored ComponentVariableFmi2API, such that they can be freed in case of an error.
      • findParentScope

        <S> S findParentScope​(java.lang.Class<S> type)