@@ -174,8 +174,6 @@ function setstate!(model::SimModel, x)
174174 return model
175175end
176176
177- detailstr (model:: SimModel ) = " "
178-
179177@doc raw """
180178 initstate!(model::SimModel, u, d=[]) -> x
181179
@@ -374,15 +372,17 @@ function Base.show(io::IO, model::SimModel)
374372 nu, nd = model. nu, model. nd
375373 nx, ny = model. nx, model. ny
376374 n = maximum (ndigits .((nu, nx, ny, nd))) + 1
377- details = detailstr (model)
378375 println (io, " $(nameof (typeof (model))) with a sample time Ts = $(model. Ts) s:" )
379- ! isempty (details) && println ( io, " ├ $details " )
376+ print_details ( io, model )
380377 println (io, " └ dimensions:" )
381378 println (io, " ├$(lpad (nu, n)) manipulated inputs u" )
382379 println (io, " ├$(lpad (nx, n)) states x" )
383380 println (io, " ├$(lpad (ny, n)) outputs y" )
384381 print (io, " └$(lpad (nd, n)) measured disturbances d" )
385382end
386383
384+ " Print additional details of `model` if any (no details by default)."
385+ print_details (:: IO , :: SimModel ) = nothing
386+
387387" Functor allowing callable `SimModel` object as an alias for `evaloutput`."
388388(model:: SimModel )(d= model. buffer. empty) = evaloutput (model:: SimModel , d)
0 commit comments