Home > classes > @ao > get.m

get

PURPOSE ^

GET get ao properties.

SYNOPSIS ^

function val = get(ao, propName)

DESCRIPTION ^

 GET get ao properties.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: GET get ao properties.

 CALL: name        = set(ao, 'name');
       tag         = set(ao, 'tag');
       provenance  = set(ao, 'provenance');
       comment     = set(ao, 'comment');
       history     = set(ao, 'hist');
       data        = set(ao, 'data');
       mfile       = set(ao, 'mfile');
       amfilename  = set(ao, 'mfilename');
       mdlfile     = set(ao, 'mdlfile');
       mdlfilename = set(ao, 'mdlfilename');

 VERSION: $Id: get.m,v 1.8 2007/07/18 13:58:44 ingo Exp $

 HISTORY: 30-01-07 M Hewitson
             Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val = get(ao, propName)
0002 % GET get ao properties.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: GET get ao properties.
0007 %
0008 % CALL: name        = set(ao, 'name');
0009 %       tag         = set(ao, 'tag');
0010 %       provenance  = set(ao, 'provenance');
0011 %       comment     = set(ao, 'comment');
0012 %       history     = set(ao, 'hist');
0013 %       data        = set(ao, 'data');
0014 %       mfile       = set(ao, 'mfile');
0015 %       amfilename  = set(ao, 'mfilename');
0016 %       mdlfile     = set(ao, 'mdlfile');
0017 %       mdlfilename = set(ao, 'mdlfilename');
0018 %
0019 % VERSION: $Id: get.m,v 1.8 2007/07/18 13:58:44 ingo Exp $
0020 %
0021 % HISTORY: 30-01-07 M Hewitson
0022 %             Creation
0023 %
0024 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0025 
0026 switch propName
0027   case 'tag'
0028     val = ao.tag;
0029   case 'name'
0030     val = ao.name;
0031   case 'data'
0032     val = ao.data;
0033   case 'hist'
0034     val = ao.hist;
0035   case 'provenance'
0036     val = ao.provenance;
0037   case 'comment'
0038     val = ao.comment;
0039   case 'mfile'
0040     val = ao.mfile;
0041   case 'mfilename'
0042     val = ao.mfilename;
0043   case 'mdlfile'
0044     val = ao.mdlfile;
0045   case 'mdlfilename'
0046     val = ao.mdlfilename;
0047 
0048   %% Pass through some requests to data object
0049   case 'fs'
0050     val = get(ao.data, 'fs');
0051 
0052   otherwise
0053     error([propName, ' is not a valid ao property.']);
0054 end

Generated on Mon 03-Sep-2007 12:12:34 by m2html © 2003