The SUMO toolbox  2018a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Functions
instantiateClassOrFunction.m File Reference

Functions

function instantiateClassOrFunction (var node, var parentConfig, var defaultType)
 This function is responsible for instantiating an object based on a node from the config. More...
 
function severe (var msg)
 
function error (var msg)
 

Detailed Description

Authors
SUMO Lab Team
Version
2018a
Date
Copyright 2006-2018

This file is part of the Surrogate Modeling Toolbox ("SUMO Toolbox") and you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation. With the additional provision that a commercial license must be purchased if the SUMO Toolbox is used, modified, or extended in a commercial setting. For details see the included LICENSE.txt file. When referring to the SUMO Toolbox please make reference to the corresponding publication:

Contact : sumo@.nosp@m.sumo.nosp@m..inte.nosp@m.c.ug.nosp@m.ent.b.nosp@m.e - http://sumo.intec.ugent.be Signature [object] = instantiateClassOrFunction(node, parentConfig, defaultType)

Function Documentation

function error ( var  msg)
function instantiateClassOrFunction ( var  node,
var  parentConfig,
var  defaultType 
)

This function is responsible for instantiating an object based on a node from the config.

If the type specified in the node corresponds to a function, the defaultType is instantiated instead, and the defaultType should use the function internally. If it is a class, the type is instantiated using instantiate().

Todo:
problem if type is not a class and defaultType is an abstract class
function severe ( var  msg)