generates an IDetailedModel instance from a description structure. More...
Go to the source code of this file.
Functions | |
function dmodel = | gen_detailed_model (ModelDescr descr) |
generates an IDetailedModel instance from a description structure. More... | |
generates an IDetailedModel instance from a description structure.
Definition in file gen_detailed_model.m.
function dmodel = gen_detailed_model | ( | ModelDescr | descr | ) |
generates an IDetailedModel instance from a description structure.
This function constructs the correct IDetailedModel instance for a ModelDescr structure. The field rb_problem_type
should contain the package name of the DetailedModel
class. If e.g. descr.rb_problem_type
equals the string LinEvol
, an object of type LinEvol.DetailedModel is returned.
The class type of the returned object can also be chosen explictly by specifying the field descr.dmodel_constructor
.
descr | a Matlab structure |
dmodel | dmodel |
dmodel_constructor —
dmodel constructor rb_problem_type —
rb problem type Definition at line 17 of file gen_detailed_model.m.