rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
Functions
gen_detailed_model.m File Reference

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...
 

Detailed Description

generates an IDetailedModel instance from a description structure.

Definition in file gen_detailed_model.m.

Function Documentation

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.

Parameters
descra Matlab structure
Return values
dmodeldmodel
Required fields of descr:
  • dmodel_constructor —  dmodel constructor
  • rb_problem_type —  rb problem type

Definition at line 17 of file gen_detailed_model.m.

Here is the caller graph for this function: