view m-toolbox/classes/@ltpda_uoh/fromStruct.m @ 47:dd93c9ba6624
database-connection-manager
Fix Java dialog
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Tue, 06 Dec 2011 19:07:27 +0100 (2011-12-06)
parents
f0afece42f48
children
line source
+ − % FROMSTRUCT sets all properties which are defined in the ltpda_uoh class from the structure to the input object.
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % FUNCTION: fromStruct
+ − %
+ − % DESCRIPTION: Sets all properties which are defined in the ltpda_uoh class
+ − % from the structure to the input object.
+ − %
+ − % REMARK: Abstract classes handle only one input object and a
+ − % structure with the size 1.
+ − %
+ − % CALL: obj = fromStruct(obj, struct)
+ − %
+ − % VERSION: $Id: fromStruct.m,v 1.1 2010/12/20 20:41:40 ingo Exp $
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − function obj = fromStruct(obj, obj_struct)
+ −
+ − % Call super-class
+ − obj = fromStruct@ltpda_uo(obj, obj_struct);
+ −
+ − % Set 'hist' object
+ − if isfield(obj_struct, 'hist')
+ − obj.hist = utils.helper.getObjectFromStruct(obj_struct.hist);
+ − end
+ −
+ − % Set 'procinfo' object
+ − if isfield(obj_struct, 'procinfo')
+ − obj.procinfo = utils.helper.getObjectFromStruct(obj_struct.procinfo);
+ − end
+ −
+ − % Set 'plotinfo' object
+ − if isfield(obj_struct, 'plotinfo')
+ − obj.plotinfo = utils.helper.getObjectFromStruct(obj_struct.plotinfo);
+ − end
+ −
+ − end