@@ -75,8 +75,8 @@ function simulate(fmu::FMU3, c::Union{FMU3Instance, Nothing}=nothing, tspan::Uni
75
75
error (unknownFMUType)
76
76
end
77
77
end
78
- simulate (c:: FMUInstance , tspan:: Union{ Tuple{Float64, Float64}, Nothing} = nothing ; kwargs... ) = simulate (c. fmu, c, tspan; kwargs... )
79
- simulate (fmu:: FMU , tspan:: Union{ Tuple{Float64, Float64}, Nothing} = nothing ; kwargs... ) = simulate (fmu, nothing , tspan; kwargs... )
78
+ simulate (c:: FMUInstance , tspan:: Tuple{Float64, Float64} ; kwargs... ) = simulate (c. fmu, c, tspan; kwargs... )
79
+ simulate (fmu:: FMU , tspan:: Tuple{Float64, Float64} ; kwargs... ) = simulate (fmu, nothing , tspan; kwargs... )
80
80
export simulate
81
81
82
82
"""
@@ -125,7 +125,7 @@ State- and Time-Events are handled correctly.
125
125
126
126
See also [`simulate`](@ref), [`simulateCS`](@ref), [`simulateSE`](@ref).
127
127
"""
128
- function simulateME (fmu:: FMU , c:: Union{FMUInstance, Nothing} , tspan:: Tuple{Real, Real} ;
128
+ function simulateME (fmu:: FMU , c:: Union{FMUInstance, Nothing} , tspan:: Union{ Tuple{Float64, Float64}, Nothing} = nothing ;
129
129
solver = nothing , # [ToDo] type
130
130
recordValues:: fmi2ValueReferenceFormat = nothing ,
131
131
recordEventIndicators:: Union{AbstractArray{<:Integer, 1}, UnitRange{<:Integer}, Nothing} = nothing ,
@@ -240,8 +240,8 @@ function simulateME(fmu::FMU, c::Union{FMUInstance, Nothing}, tspan::Tuple{Real,
240
240
241
241
return c. solution
242
242
end
243
- simulateME (c:: FMUInstance , tspan:: Union{ Tuple{Float64, Float64}, Nothing} = nothing ; kwargs... ) = simulateME (c. fmu, c, tspan; kwargs... )
244
- simulateME (fmu:: FMU , tspan:: Union{ Tuple{Float64, Float64}, Nothing} = nothing ; kwargs... ) = simulateME (fmu, nothing , tspan; kwargs... )
243
+ simulateME (c:: FMUInstance , tspan:: Tuple{Float64, Float64} ; kwargs... ) = simulateME (c. fmu, c, tspan; kwargs... )
244
+ simulateME (fmu:: FMU , tspan:: Tuple{Float64, Float64} ; kwargs... ) = simulateME (fmu, nothing , tspan; kwargs... )
245
245
export simulateME
246
246
247
247
# ########### Co-Simulation ############
@@ -438,8 +438,8 @@ function simulateCS(fmu::FMU, c::Union{FMUInstance, Nothing}, tspan::Union{Tuple
438
438
439
439
return fmusol
440
440
end
441
- simulateCS (c:: FMUInstance , tspan:: Union{ Tuple{Float64, Float64}, Nothing} = nothing ; kwargs... ) = simulateCS (c. fmu, c, tspan; kwargs... )
442
- simulateCS (fmu:: FMU , tspan:: Union{ Tuple{Float64, Float64}, Nothing} = nothing ; kwargs... ) = simulateCS (fmu, nothing , tspan; kwargs... )
441
+ simulateCS (c:: FMUInstance , tspan:: Tuple{Float64, Float64} ; kwargs... ) = simulateCS (c. fmu, c, tspan; kwargs... )
442
+ simulateCS (fmu:: FMU , tspan:: Tuple{Float64, Float64} ; kwargs... ) = simulateCS (fmu, nothing , tspan; kwargs... )
443
443
export simulateCS
444
444
445
445
# [TODO ] simulate ScheduledExecution
@@ -463,13 +463,13 @@ To be implemented ...
463
463
464
464
See also [`simulate`](@ref), [`simulateME`](@ref), [`simulateCS`](@ref).
465
465
"""
466
- function simulateSE (fmu:: FMU2 , c:: Union{FMU2Component, Nothing} )
466
+ function simulateSE (fmu:: FMU2 , c:: Union{FMU2Component, Nothing} , tspan :: Union{Tuple{Float64, Float64}, Nothing} = nothing )
467
467
@assert false " This is a FMI2-FMU, scheduled execution is not supported in FMI2."
468
468
end
469
- function simulateSE (fmu:: FMU3 , c:: Union{FMU3Instance, Nothing} )
469
+ function simulateSE (fmu:: FMU3 , c:: Union{FMU3Instance, Nothing} , tspan :: Union{Tuple{Float64, Float64}, Nothing} = nothing )
470
470
# [ToDo]
471
471
@assert false " Not implemented yet. Please open an issue if this is needed."
472
472
end
473
- simulateSE (c:: FMUInstance , tspan:: Union{ Tuple{Float64, Float64}, Nothing} = nothing ; kwargs... ) = simulateSE (c. fmu, c, tspan; kwargs... )
474
- simulateSE (fmu:: FMU , tspan:: Union{ Tuple{Float64, Float64}, Nothing} = nothing ; kwargs... ) = simulateSE (fmu, nothing , tspan; kwargs... )
473
+ simulateSE (c:: FMUInstance , tspan:: Tuple{Float64, Float64} ; kwargs... ) = simulateSE (c. fmu, c, tspan; kwargs... )
474
+ simulateSE (fmu:: FMU , tspan:: Tuple{Float64, Float64} ; kwargs... ) = simulateSE (fmu, nothing , tspan; kwargs... )
475
475
export simulateSE
0 commit comments