Interface FmiBuilder.FmiSimulationInstance<AST,PORT_SCALAR_TYPE>
- Type Parameters:
AST- the construction type. Often a kind of AST statementPORT_SCALAR_TYPE- the port internal reference type. Often a kind of scalar variable from FMI
- All Superinterfaces:
FmiBuilder.ProvidesTypedReferenceExp,FmiBuilder.SimulationInstance<AST>,FmiBuilder.Variable<AST,FmiBuilder.NamedVariable<AST>>
- All Known Subinterfaces:
FmiBuilder.Fmi2ComponentVariable<AST,,PORT_SCALAR_TYPE> FmiBuilder.Fmi3InstanceVariable<AST,PORT_SCALAR_TYPE>
- Enclosing interface:
FmiBuilder<AST,B, E, SETTINGS>
public static interface FmiBuilder.FmiSimulationInstance<AST,PORT_SCALAR_TYPE>
extends FmiBuilder.SimulationInstance<AST>
Type that represents common FMI functions accross versions for now 2 and 3
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescription<V> Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE, AST>, ? extends FmiBuilder.Variable<AST, V>> get()Get all (linked) port values<V> Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE, AST>, ? extends FmiBuilder.Variable<AST, V>> get(int... valueReferences) get filter by value reference<V> Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE, AST>, ? extends FmiBuilder.Variable<AST, V>> Get filter by names<V> Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE, AST>, ? extends FmiBuilder.Variable<AST, V>> get(FmiBuilder.Port<PORT_SCALAR_TYPE, AST>... ports) Get port values aka fmiGet<V> Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE, AST>, ? extends FmiBuilder.Variable<AST, V>> get(FmiBuilder.Scope<AST> scope, FmiBuilder.Port<PORT_SCALAR_TYPE, AST>... ports) <V> Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE, AST>, ? extends FmiBuilder.Variable<AST, V>> <V> Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE, AST>, ? extends FmiBuilder.Variable<AST, V>> getAndShare(String... names) <V> Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE, AST>, ? extends FmiBuilder.Variable<AST, V>> getAndShare(FmiBuilder.Port<PORT_SCALAR_TYPE, AST>... ports) getPort(int valueReference) Get port by ref valGet port by nameList<? extends FmiBuilder.Port<PORT_SCALAR_TYPE, AST>> getPorts()List<? extends FmiBuilder.Port<PORT_SCALAR_TYPE, AST>> getPorts(int... valueReferences) Get ports by ref valList<? extends FmiBuilder.Port<PORT_SCALAR_TYPE, AST>> Get ports by name<V> FmiBuilder.Variable<AST, V> <V> FmiBuilder.Variable<AST, V> <V> FmiBuilder.Variable<AST, V> Get the value of a single port<V> FmiBuilder.Variable<AST, V> getState()Get the current stategetState(FmiBuilder.Scope<AST> scope) Get the current state<V> voidSet port values (if ports is not from this fmu then the links are used to remap)<V> void<V> voidset(FmiBuilder.Port<PORT_SCALAR_TYPE, AST> port, FmiBuilder.Value<V> value) <V> voidset(FmiBuilder.Port<PORT_SCALAR_TYPE, AST> port, FmiBuilder.Variable<AST, V> value) <V> voidset(FmiBuilder.Scope<AST> scope, FmiBuilder.FmiSimulationInstance.PortValueMap<V, PORT_SCALAR_TYPE, AST> value) <V> voidset(FmiBuilder.Scope<AST> scope, FmiBuilder.FmiSimulationInstance.PortVariableMap<V, PORT_SCALAR_TYPE, AST> value) <V> voidset(FmiBuilder.Scope<AST> scope, FmiBuilder.Port<PORT_SCALAR_TYPE, AST> port, FmiBuilder.Variable<AST, V> value) voidsetDebugLogging(List<String> categories, boolean enableLogging) voidsetInt(Map<? extends Integer, ? extends FmiBuilder.Value<Integer>> values) Set this fmu ports by val refvoidvoidsetLinked(long... filterValueReferences) voidvoidsetLinked(FmiBuilder.Port<PORT_SCALAR_TYPE, AST>... filterPorts) voidsetLinked(FmiBuilder.Scope<AST> scope, FmiBuilder.Port<PORT_SCALAR_TYPE, AST>... filterPorts) Set this fmu port by name and linkvoidsetString(Map<? extends String, ? extends FmiBuilder.Value<String>> value) Set this fmy ports by name<V> voidshare(Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE, AST>, ? extends FmiBuilder.Variable<AST, V>> values) Makes the values publicly available to all linked connections.<V> voidshare(FmiBuilder.Port<PORT_SCALAR_TYPE, AST> port, FmiBuilder.Variable<AST, V> value) Makes the value publicly available to all linked connections.Methods inherited from interface org.intocps.maestro.framework.fmi2.api.FmiBuilder.ProvidesTypedReferenceExp
getExp, getTypeMethods inherited from interface org.intocps.maestro.framework.fmi2.api.FmiBuilder.Variable
getDeclaredScope, getName, setValue, setValue, setValue, setValue
-
Method Details
-
setDebugLogging
-
getPorts
List<? extends FmiBuilder.Port<PORT_SCALAR_TYPE,AST>> getPorts() -
getPorts
Get ports by name- Parameters:
names-- Returns:
-
getPorts
Get ports by ref val- Parameters:
valueReferences-- Returns:
-
getPort
Get port by name- Parameters:
name-- Returns:
-
getPort
Get port by ref val- Parameters:
valueReference-- Returns:
-
get
<V> Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE,AST>, get? extends FmiBuilder.Variable<AST, V>> (FmiBuilder.Port<PORT_SCALAR_TYPE, AST>... ports) Get port values aka fmiGet- Parameters:
ports-- Returns:
-
get
<V> Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE,AST>, get? extends FmiBuilder.Variable<AST, V>> (FmiBuilder.Scope<AST> scope, FmiBuilder.Port<PORT_SCALAR_TYPE, AST>... ports) -
get
Get all (linked) port values- Returns:
-
get
<V> Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE,AST>, get? extends FmiBuilder.Variable<AST, V>> (int... valueReferences) get filter by value reference- Parameters:
valueReferences-- Returns:
-
get
<V> Map<? extends FmiBuilder.Port<PORT_SCALAR_TYPE,AST>, get? extends FmiBuilder.Variable<AST, V>> (String... names) Get filter by names- Parameters:
names-- Returns:
-
getSingle
Get the value of a single port- Parameters:
name-- Returns:
-
getSingle
-
set
<V> void set(FmiBuilder.Scope<AST> scope, FmiBuilder.FmiSimulationInstance.PortValueMap<V, PORT_SCALAR_TYPE, AST> value) -
set
<V> void set(FmiBuilder.Scope<AST> scope, FmiBuilder.FmiSimulationInstance.PortVariableMap<V, PORT_SCALAR_TYPE, AST> value) -
set
Set port values (if ports is not from this fmu then the links are used to remap)- Parameters:
value-
-
set
-
set
-
set
<V> void set(FmiBuilder.Scope<AST> scope, FmiBuilder.Port<PORT_SCALAR_TYPE, AST> port, FmiBuilder.Variable<AST, V> value) -
set
-
setLinked
Set this fmu port by name and link -
setLinked
void setLinked() -
setLinked
-
setLinked
-
setLinked
void setLinked(long... filterValueReferences) -
setInt
Set this fmu ports by val ref- Parameters:
values-
-
setString
Set this fmy ports by name- Parameters:
value-
-
getState
Get the current state- Returns:
- Throws:
XPathExpressionException
-
getState
Get the current state- Returns:
- Throws:
XPathExpressionException
-