Class Fmi2SimulationEnvironment
java.lang.Object
org.intocps.maestro.framework.fmi2.Fmi2SimulationEnvironment
- All Implemented Interfaces:
ISimulationEnvironment,ISimulationEnvironmentTransfer
public class Fmi2SimulationEnvironment
extends Object
implements ISimulationEnvironment, ISimulationEnvironmentTransfer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFmi2SimulationEnvironment(Fmi2SimulationEnvironmentConfiguration msg, Fmi2SimulationEnvironment.ModelDescriptionResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ModelConnection> buildConnections(Map<String, List<String>> connections) voidcheck(IErrorReporter reporter) getInstanceByLexName(String lexName) Set<? extends Map.Entry<String, ? extends FrameworkUnitInfo>> org.intocps.maestro.fmi.ModelDescriptiongetModelDescription(String name) getRelations(String... identifiers) getRelations(List<org.intocps.maestro.ast.LexIdentifier> identifiers) Finds all the relations for the given FMU Component LexIdentifiersgetRelations(org.intocps.maestro.ast.LexIdentifier... identifiers) Finds all the relations for the given FMU Component LexIdentifiers<T extends FrameworkUnitInfo>
TgetUnitInfo(org.intocps.maestro.ast.LexIdentifier identifier, Framework framework) getUriFromFMUName(String fmuName) getVariablesToLog(String instanceName) Retrieves all variables that should be logged for the given instance.static Fmi2SimulationEnvironmentof(File file, IErrorReporter reporter) static Fmi2SimulationEnvironmentof(InputStream inputStream, IErrorReporter reporter) static Fmi2SimulationEnvironmentof(Fmi2SimulationEnvironmentConfiguration msg, IErrorReporter reporter) static Fmi2SimulationEnvironmentof(Fmi2SimulationEnvironmentConfiguration msg, IErrorReporter reporter, Fmi2SimulationEnvironment.ModelDescriptionResolver resolver) voidsetLexNameToInstanceNameMapping(String lexName, String instanceName)
-
Constructor Details
-
Fmi2SimulationEnvironment
protected Fmi2SimulationEnvironment(Fmi2SimulationEnvironmentConfiguration msg, Fmi2SimulationEnvironment.ModelDescriptionResolver resolver) throws Exception - Throws:
Exception
-
-
Method Details
-
of
- Throws:
Exception
-
of
public static Fmi2SimulationEnvironment of(Fmi2SimulationEnvironmentConfiguration msg, IErrorReporter reporter, Fmi2SimulationEnvironment.ModelDescriptionResolver resolver) throws Exception - Throws:
Exception
-
of
public static Fmi2SimulationEnvironment of(Fmi2SimulationEnvironmentConfiguration msg, IErrorReporter reporter) throws Exception - Throws:
Exception
-
of
public static Fmi2SimulationEnvironment of(InputStream inputStream, IErrorReporter reporter) throws Exception - Throws:
Exception
-
buildConnections
public static List<ModelConnection> buildConnections(Map<String, List<String>> connections) throws Exception- Throws:
Exception
-
getConnectedOutputs
- Specified by:
getConnectedOutputsin interfaceISimulationEnvironment
-
getModelTransfers
- Specified by:
getModelTransfersin interfaceISimulationEnvironmentTransfer
-
getModelSwapInfoByInstanceName
-
getModelSwaps
-
getModelSwapRelations
-
setLexNameToInstanceNameMapping
-
getInstanceByLexName
-
getVariablesToLog
Retrieves all variables that should be logged for the given instance. This is a combination of specified logvariables and connected outputs- Specified by:
getVariablesToLogin interfaceISimulationEnvironment- Parameters:
instanceName-- Returns:
-
getFmusWithModelDescriptions
-
getInstances
- Specified by:
getInstancesin interfaceISimulationEnvironment
-
getFmuToUri
-
getUriFromFMUName
-
getLogLevels
-
getRelations
public Set<Fmi2SimulationEnvironment.Relation> getRelations(List<org.intocps.maestro.ast.LexIdentifier> identifiers) Finds all the relations for the given FMU Component LexIdentifiers- Specified by:
getRelationsin interfaceISimulationEnvironment- Parameters:
identifiers- FMU Component LexIdentifiers- Returns:
-
getRelations
public Set<Fmi2SimulationEnvironment.Relation> getRelations(org.intocps.maestro.ast.LexIdentifier... identifiers) Finds all the relations for the given FMU Component LexIdentifiers- Specified by:
getRelationsin interfaceISimulationEnvironment- Parameters:
identifiers- FMU Component LexIdentifiers- Returns:
-
getRelations
- Specified by:
getRelationsin interfaceISimulationEnvironment
-
getUnitInfo
public <T extends FrameworkUnitInfo> T getUnitInfo(org.intocps.maestro.ast.LexIdentifier identifier, Framework framework) - Specified by:
getUnitInfoin interfaceISimulationEnvironment
-
check
- Specified by:
checkin interfaceISimulationEnvironment- Throws:
Exception
-
getModelDescription
-
getFaultInjectionConfigurationPath
-