Home > classes > @ltpda_obj > ltpda_obj.m

ltpda_obj

PURPOSE ^

LTPDA_OBJ is the abstract ltpda base class.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 LTPDA_OBJ is the abstract ltpda base class.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION:   LTPDA_OBJ is the ltpda base class.
                This ltpda_obj class is an abstract class and it is
                not possible to create an instance of this class.

 SUPER CLASSES: handle (MATLAB class)

 SUB CLASSES:   ltpda_nuc, ltpda_uc

 PROPERTIES:

     Protected Properties (read only)
       version          - cvs-version string.

 LTPDA_OBJ METHODS:

     Public Methods:
       eq               - equal operator for ltpda objects.
       isprop           - tests if the given field is one of the object properties.
       ne               - not equal operator for ltpda objects.

     Protected Methods:
       setVersion       - set the property 'version'
       prependVersion   - prepend the version string

     Abstract Methods:
       char             - returns one character string which represents the object
       copy             - copies an object
       display          - displays an object
       update_struct    - updates a object structure to the current tbx-version

 REMARK:      It is necessary to define the ABSTRACT methods and properties in the
              sub-classes because if they are not defined is the sub-class as well
              an abstract class. (See ltpda_nuo)

 M-FILE INFO: The following call returns an minfo object that contains
              information about the ltpda_obj constructor:
                   >> info = ltpda_obj.getInfo
              or   >> info = ltpda_obj.getInfo('ltpda_obj')

 VERSION:     $Id: ltpda_obj.m,v 1.22 2008/09/06 12:24:27 hewitson Exp $

 HISTORY:     19-05-2008 Diepholz
                 Creation.

 SEE ALSO:    ltpda_nuo, ltpda_uo, handle

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 % LTPDA_OBJ is the abstract ltpda base class.
0002 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0003 %
0004 % DESCRIPTION:   LTPDA_OBJ is the ltpda base class.
0005 %                This ltpda_obj class is an abstract class and it is
0006 %                not possible to create an instance of this class.
0007 %
0008 % SUPER CLASSES: handle (MATLAB class)
0009 %
0010 % SUB CLASSES:   ltpda_nuc, ltpda_uc
0011 %
0012 % PROPERTIES:
0013 %
0014 %     Protected Properties (read only)
0015 %       version          - cvs-version string.
0016 %
0017 % LTPDA_OBJ METHODS:
0018 %
0019 %     Public Methods:
0020 %       eq               - equal operator for ltpda objects.
0021 %       isprop           - tests if the given field is one of the object properties.
0022 %       ne               - not equal operator for ltpda objects.
0023 %
0024 %     Protected Methods:
0025 %       setVersion       - set the property 'version'
0026 %       prependVersion   - prepend the version string
0027 %
0028 %     Abstract Methods:
0029 %       char             - returns one character string which represents the object
0030 %       copy             - copies an object
0031 %       display          - displays an object
0032 %       update_struct    - updates a object structure to the current tbx-version
0033 %
0034 % REMARK:      It is necessary to define the ABSTRACT methods and properties in the
0035 %              sub-classes because if they are not defined is the sub-class as well
0036 %              an abstract class. (See ltpda_nuo)
0037 %
0038 % M-FILE INFO: The following call returns an minfo object that contains
0039 %              information about the ltpda_obj constructor:
0040 %                   >> info = ltpda_obj.getInfo
0041 %              or   >> info = ltpda_obj.getInfo('ltpda_obj')
0042 %
0043 % VERSION:     $Id: ltpda_obj.m,v 1.22 2008/09/06 12:24:27 hewitson Exp $
0044 %
0045 % HISTORY:     19-05-2008 Diepholz
0046 %                 Creation.
0047 %
0048 % SEE ALSO:    ltpda_nuo, ltpda_uo, handle
0049 %
0050 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0051 
0052 classdef ltpda_obj < handle
0053 
0054   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0055   %                            Property definition                            %
0056   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0057 
0058   %---------- Public (read/write) Properties  ----------
0059   properties
0060   end
0061 
0062   %---------- Protected read-only Properties ----------
0063   properties (SetAccess = protected)
0064   end
0065 
0066   %---------- Abstract Properties ----------
0067   properties (Abstract = true, SetAccess = protected)
0068 %     version
0069   end
0070 
0071   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0072   %                          Check property setting                           %
0073   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0074 
0075   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0076   %                                Constructor                                %
0077   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0078 
0079   methods
0080     function obj = ltpda_obj(varargin)
0081 
0082       %%%%%%%%%%   Set dafault values   %%%%%%%%%%
0083 
0084       if nargin == 1
0085 
0086         if isstruct(varargin{1})
0087           %%%%%%%%%%   obj = ltpda_uo(struct)   %%%%%%%%%%
0088         end
0089 
0090       end
0091 
0092     end
0093   end
0094 
0095   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0096   %                              Methods (public)                             %
0097   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0098 
0099   methods (Access = public)
0100     result    = eq(obj1, obj2, varargin)
0101     result    = ne(obj1, obj2, varargin)
0102     varargout = isprop(varargin)
0103   end
0104 
0105   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0106   %                             Methods (protected)                           %
0107   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0108 
0109   methods (Access = protected)
0110     obj = prependVersion(obj, val)
0111     setVersion(obj, val)
0112   end
0113 
0114   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0115   %                              Methods (static)                             %
0116   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0117 
0118   methods (Static)
0119 
0120     function ii = getInfo(varargin)
0121       ii = utils.helper.generic_getInfo(varargin{:}, 'ltpda_obj');
0122     end
0123 
0124     function out = VEROUT()
0125       out = '$Id: ltpda_obj.m,v 1.22 2008/09/06 12:24:27 hewitson Exp $';
0126     end
0127 
0128     function out = SETS()
0129       out = {};
0130     end
0131 
0132     function out = getDefaultPlist()
0133       out = [];
0134     end
0135 
0136   end
0137 
0138   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0139   %                              Methods (abstract)                           %
0140   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0141 
0142   methods (Abstract)
0143     varargout = char(varargin)
0144     varargout = copy(varargin)
0145     txt       = display(varargin)
0146   end
0147   
0148   methods (Abstract = true, Static = true)
0149     varargout = update_struct(varargin);
0150   end
0151 
0152 end
0153

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003