Interface FmiBuilder<AST,B,E,SETTINGS>
public interface FmiBuilder<AST,B,E,SETTINGS>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfaceDynamic scope which always reflects the current active scope of the builderstatic interfacestatic interfacestatic interfacestatic interfaceInterface for an fmi component.static interfaceSimulation instance for FMI3static interfaceType that represents common FMI functions accross versions for now 2 and 3static interfaceHandle for an fmu for the creation of componentstatic interfaceHandle for an fmu for the creation of componentstatic interfaceIf scope, default scope is thenstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfaceFmiBuilder.Numeric<A extends Number>static interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfaceBasic scope.static interfaceScoping element which defines a scope like a block, if, while etc.static interfaceScoping functionsstatic interfaceGeneric type for all simulation instancesstatic interfacestatic interfacestatic interfacestatic interfaceTry finally scope, default scope is bodystatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfaceWhile -
Method Summary
Modifier and TypeMethodDescriptionbuild()org.intocps.maestro.ast.node.PStmbuildRaw()getBooleanVariableFrom(E exp) <V,T> FmiBuilder.Variable <T, V> Gets a tag to the last value obtained for the given portgetDoubleVariableFrom(E exp) <V,T> FmiBuilder.Variable <T, V> getFmuVariableFrom(E exp) getIntVariableFrom(E exp) Gets the default scopegetStringVariableFrom(E exp) booleanisDirty()Returns whether the build has been usedloadRuntimeModule(String name, Object... args) loadRuntimeModule(FmiBuilder.TryScope<AST> scope, String name, Object... args) voidReset the dirty flag
-
Method Details
-
build
- Throws:
Exception
-
getSettings
SETTINGS getSettings() -
getFunctionBuilder
FmiBuilder.IFunctionBuilder getFunctionBuilder() -
isDirty
boolean isDirty()Returns whether the build has been used- Returns:
- true if the builder contains user added statements
-
resetDirty
void resetDirty()Reset the dirty flag -
buildRaw
- Throws:
Exception
-
loadRuntimeModule
-
loadRuntimeModule
FmiBuilder.RuntimeModule<AST> loadRuntimeModule(FmiBuilder.TryScope<AST> scope, String name, Object... args) -
getRootScope
FmiBuilder.Scope<AST> getRootScope()Gets the default scope- Returns:
-
getDynamicScope
FmiBuilder.DynamicActiveScope<AST> getDynamicScope() -
getCurrentLinkedValue
Gets a tag to the last value obtained for the given port- Parameters:
port-- Returns:
-
getDoubleVariableFrom
-
getIntVariableFrom
-
getStringVariableFrom
-
getBooleanVariableFrom
-
getFmuVariableFrom
-