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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMablScopeactivate()voidadd(org.intocps.maestro.ast.node.PStm... commands)voidaddAfter(org.intocps.maestro.ast.node.PStm item, org.intocps.maestro.ast.node.PStm... commands)voidaddAfterOrTop(org.intocps.maestro.ast.node.PStm item, org.intocps.maestro.ast.node.PStm... commands)voidaddAll(java.util.Collection<org.intocps.maestro.ast.node.PStm> commands)voidaddBefore(org.intocps.maestro.ast.node.PStm item, org.intocps.maestro.ast.node.PStm... commands)<Var extends VariableFmi2Api>
Varcopy(java.lang.String name, Var variable)FmuVariableFmi2ApicreateFMU(java.lang.String name, java.lang.String loaderName, java.lang.String... args)FmuVariableFmi2ApicreateFMU(java.lang.String name, org.intocps.maestro.fmi.Fmi2ModelDescription modelDescription, java.net.URI path)IfMaBlScopeenterIf(org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Predicate predicate)IMablScopeenterScope()TryMaBlScopeenterTry()WhileMaBLScopeenterWhile(org.intocps.maestro.framework.fmi2.api.Fmi2Builder.Predicate predicate)<S> SfindParentScope(java.lang.Class<S> type)java.util.Set<ComponentVariableFmi2Api>getAllComponentFmi2Variables()Retrieves a set of allComponentFmi2Variables including those of parentsIntVariableFmi2ApigetFmiStatusVariable()java.lang.StringgetName(java.lang.String prefix)intindexOf(org.intocps.maestro.ast.node.PStm stm)ScopeFmi2Apileave()IMablScopeparallel()org.intocps.maestro.framework.fmi2.api.Fmi2Builder.ScopeElement<org.intocps.maestro.ast.node.PStm>parent()voidregisterComponentVariableFmi2Api(ComponentVariableFmi2Api componentVariableFmi2Api)This is used to maintain a register of stored ComponentVariableFmi2API, such that they can be freed in case of an error.BooleanVariableFmi2Apistore(boolean value)DoubleVariableFmi2Apistore(double value)IntVariableFmi2Apistore(int value)StringVariableFmi2Apistore(java.lang.String value)BooleanVariableFmi2Apistore(java.lang.String name, boolean value)DoubleVariableFmi2Apistore(java.lang.String name, double value)IntVariableFmi2Apistore(java.lang.String name, int value)StringVariableFmi2Apistore(java.lang.String name, java.lang.String value)IntVariableFmi2Apistore(java.lang.String stabilisation_loop, IntVariableFmi2Api stabilisation_loop_max_iterations)<V> ArrayVariableFmi2Api<V>store(java.lang.String name, V[] value)<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)ArrayVariableFmi2ApistoreInArray(java.lang.String name, VariableFmi2Api[] variables)
-
-
-
Method Detail
-
parent
org.intocps.maestro.framework.fmi2.api.Fmi2Builder.ScopeElement<org.intocps.maestro.ast.node.PStm> parent()
- Specified by:
parentin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.ScopeElement<org.intocps.maestro.ast.node.PStm>
-
getFmiStatusVariable
IntVariableFmi2Api getFmiStatusVariable()
-
getName
java.lang.String getName(java.lang.String prefix)
-
enterScope
IMablScope enterScope()
- Specified by:
enterScopein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
-
enterTry
TryMaBlScope enterTry()
- Specified by:
enterTryin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
-
store
BooleanVariableFmi2Api store(boolean value)
- Specified by:
storein interfaceorg.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:
enterWhilein interfaceorg.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:
enterIfin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
-
parallel
IMablScope parallel()
- Specified by:
parallelin interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
-
leave
ScopeFmi2Api leave()
- Specified by:
leavein interfaceorg.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:
addin interfaceorg.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:
addAllin interfaceorg.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:
addBeforein interfaceorg.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:
addAfterin interfaceorg.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:
activatein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>- Specified by:
activatein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scoping<org.intocps.maestro.ast.node.PStm>
-
store
DoubleVariableFmi2Api store(double value)
- Specified by:
storein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
-
store
IntVariableFmi2Api store(int value)
- Specified by:
storein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
-
store
StringVariableFmi2Api store(java.lang.String value)
- Specified by:
storein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
-
store
DoubleVariableFmi2Api store(java.lang.String name, double value)
- Specified by:
storein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
-
store
BooleanVariableFmi2Api store(java.lang.String name, boolean value)
- Specified by:
storein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
-
store
IntVariableFmi2Api store(java.lang.String name, int value)
- Specified by:
storein interfaceorg.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:
storein interfaceorg.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:
storein interfaceorg.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:
storein interfaceorg.intocps.maestro.framework.fmi2.api.Fmi2Builder.Scope<org.intocps.maestro.ast.node.PStm>
-
store
IntVariableFmi2Api store(java.lang.String stabilisation_loop, IntVariableFmi2Api stabilisation_loop_max_iterations)
-
storeInArray
ArrayVariableFmi2Api storeInArray(java.lang.String name, VariableFmi2Api[] variables)
-
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:
createFMUin interfaceorg.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)
-
-