public interface IFmiComponent
| Modifier and Type | Method and Description |
|---|---|
Fmi2Status |
doStep(double currentCommunicationPoint,
double communicationStepSize,
boolean noSetFMUStatePriorToCurrentPoint) |
Fmi2Status |
enterInitializationMode() |
Fmi2Status |
exitInitializationMode() |
void |
freeInstance() |
Fmi2Status |
freeState(IFmiComponentState state) |
FmuResult<boolean[]> |
getBooleans(long[] scalarValueIndices)
Obtains the values of the selected scalar values
|
FmuResult<Boolean> |
getBooleanStatus(Fmi2StatusKind kind) |
FmuResult<double[]> |
getDirectionalDerivative(long[] vUnknownRef,
long[] vKnownRef,
double[] dvKnown) |
IFmu |
getFmu() |
FmuResult<int[]> |
getInteger(long[] scalarValueIndices) |
FmuResult<Integer> |
getIntegerStatus(Fmi2StatusKind kind) |
FmuResult<Double> |
getMaxStepSize()
Extension method suggested in Broman et al
|
FmuResult<double[]> |
getReal(long[] scalarValueIndices)
Obtains the values of the selected scalar values
|
FmuResult<double[]> |
getRealOutputDerivatives(long[] scalarValueIndices,
int[] order) |
FmuResult<Double> |
getRealStatus(Fmi2StatusKind kind) |
FmuResult<IFmiComponentState> |
getState() |
FmuResult<Fmi2Status> |
getStatus(Fmi2StatusKind kind) |
FmuResult<String[]> |
getStrings(long[] scalarValueIndices) |
FmuResult<String> |
getStringStatus(Fmi2StatusKind kind) |
boolean |
isValid() |
Fmi2Status |
reset() |
Fmi2Status |
setBooleans(long[] scalarValueIndices,
boolean[] values) |
Fmi2Status |
setDebugLogging(boolean loggingOn,
String[] categories) |
Fmi2Status |
setIntegers(long[] scalarValueIndices,
int[] values) |
Fmi2Status |
setRealInputDerivatives(long[] scalarValueIndices,
int[] order,
double[] derivatives) |
Fmi2Status |
setReals(long[] scalarValueIndices,
double[] values) |
Fmi2Status |
setState(IFmiComponentState state) |
Fmi2Status |
setStrings(long[] scalarValueIndices,
String[] values) |
Fmi2Status |
setupExperiment(boolean toleranceDefined,
double tolerance,
double startTime,
boolean stopTimeDefined,
double stopTime) |
Fmi2Status |
terminate() |
IFmu getFmu()
Fmi2Status setDebugLogging(boolean loggingOn, String[] categories) throws FmuInvocationException
FmuInvocationExceptionFmi2Status setupExperiment(boolean toleranceDefined, double tolerance, double startTime, boolean stopTimeDefined, double stopTime) throws FmuInvocationException
FmuInvocationExceptionFmi2Status enterInitializationMode() throws FmuInvocationException
FmuInvocationExceptionFmi2Status exitInitializationMode() throws FmuInvocationException
FmuInvocationExceptionFmi2Status reset() throws FmuInvocationException
FmuInvocationExceptionFmi2Status setRealInputDerivatives(long[] scalarValueIndices, int[] order, double[] derivatives) throws FmuInvocationException
FmuInvocationExceptionFmuResult<double[]> getRealOutputDerivatives(long[] scalarValueIndices, int[] order) throws FmuInvocationException
FmuInvocationExceptionFmuResult<double[]> getDirectionalDerivative(long[] vUnknownRef, long[] vKnownRef, double[] dvKnown) throws FmuInvocationException
FmuInvocationExceptionFmi2Status doStep(double currentCommunicationPoint, double communicationStepSize, boolean noSetFMUStatePriorToCurrentPoint) throws FmuInvocationException
currentCommunicationPoint - Argument currentCommunicationPoint is the current communication point of the master (𝑡𝑐𝑖)communicationStepSize - argument communicationStepSize is the communication step size (ℎ𝑐𝑖). The latter must be > 0.0. The
slave must integrate until time instant 𝑡𝑐𝑖+1 = 𝑡𝑐𝑖 + ℎ𝑐noSetFMUStatePriorToCurrentPoint - Argument noSetFMUStatePriorToCurrentPoint is fmi2True if fmi2SetFMUState will no longer be called for
time instants prior to currentCommunicationPoint in this simulation runFmuInvocationExceptionFmuResult<double[]> getReal(long[] scalarValueIndices) throws FmuInvocationException
scalarValueIndices - FmuInvocationExceptionFmuResult<int[]> getInteger(long[] scalarValueIndices) throws FmuInvocationException
FmuInvocationExceptionFmuResult<boolean[]> getBooleans(long[] scalarValueIndices) throws FmuInvocationException
scalarValueIndices - FmuInvocationExceptionFmuResult<String[]> getStrings(long[] scalarValueIndices) throws FmuInvocationException
FmuInvocationExceptionFmi2Status setBooleans(long[] scalarValueIndices, boolean[] values) throws InvalidParameterException, FmiInvalidNativeStateException
Fmi2Status setReals(long[] scalarValueIndices, double[] values) throws InvalidParameterException, FmiInvalidNativeStateException
Fmi2Status setIntegers(long[] scalarValueIndices, int[] values) throws InvalidParameterException, FmiInvalidNativeStateException
Fmi2Status setStrings(long[] scalarValueIndices, String[] values) throws InvalidParameterException, FmiInvalidNativeStateException
FmuResult<Boolean> getBooleanStatus(Fmi2StatusKind kind) throws FmuInvocationException
FmuInvocationExceptionFmuResult<Fmi2Status> getStatus(Fmi2StatusKind kind) throws FmuInvocationException
FmuInvocationExceptionFmuResult<Integer> getIntegerStatus(Fmi2StatusKind kind) throws FmuInvocationException
FmuInvocationExceptionFmuResult<Double> getRealStatus(Fmi2StatusKind kind) throws FmuInvocationException
FmuInvocationExceptionFmuResult<String> getStringStatus(Fmi2StatusKind kind) throws FmuInvocationException
FmuInvocationExceptionFmi2Status terminate() throws FmuInvocationException
FmuInvocationExceptionvoid freeInstance()
throws FmuInvocationException
FmuInvocationExceptionFmuResult<IFmiComponentState> getState() throws FmuInvocationException
FmuInvocationExceptionFmi2Status setState(IFmiComponentState state) throws FmuInvocationException
FmuInvocationExceptionFmi2Status freeState(IFmiComponentState state) throws FmuInvocationException
FmuInvocationExceptionboolean isValid()
FmuResult<Double> getMaxStepSize() throws FmiInvalidNativeStateException
FmiInvalidNativeStateExceptionCopyright © 2015–2020 INTO CPS. All rights reserved.