NE overloads the ~= operator for ltpda objects. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: NE overloads the ~= operator for ltpda objects. CALL: result = ne(obj1,obj2) result = ne(obj1,obj2, exc_list) result = ne(obj1,obj2, 'property1', 'property2') result = ne(obj1,obj2, 'class/property', 'class/property') result = ne(obj1,obj2, plist('Exceptions', 'exception-list')) PLIST: key: 'Exceptions' value: String or cell-array with exceptions. EXAMPLES: result = ne(obj1,obj2, 'name', 'created') result = ne(obj1,obj2, 'ao/name') INPUTS: obj1,obj2 - input objects exc_list - exception list List of properties which are not checked. OUTPUTS: If the two objects are considered equal, result == 0, otherwise, result == 1. M-FILE INFO: Get information about this methods by calling >> ao.getInfo('ne') Get information about a specified set-plist by calling: >> ao.getInfo('ne', 'set') VERSION: $Id: ne.m,v 1.5 2008/09/04 15:29:30 ingo Exp $ HISTORY: 29-08-2007 M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 % NE overloads the ~= operator for ltpda objects. 0002 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0003 % 0004 % DESCRIPTION: NE overloads the ~= operator for ltpda objects. 0005 % 0006 % CALL: result = ne(obj1,obj2) 0007 % result = ne(obj1,obj2, exc_list) 0008 % result = ne(obj1,obj2, 'property1', 'property2') 0009 % result = ne(obj1,obj2, 'class/property', 'class/property') 0010 % result = ne(obj1,obj2, plist('Exceptions', 'exception-list')) 0011 % 0012 % PLIST: key: 'Exceptions' 0013 % value: String or cell-array with exceptions. 0014 % 0015 % EXAMPLES: result = ne(obj1,obj2, 'name', 'created') 0016 % result = ne(obj1,obj2, 'ao/name') 0017 % 0018 % INPUTS: obj1,obj2 - input objects 0019 % exc_list - exception list 0020 % List of properties which are not checked. 0021 % 0022 % OUTPUTS: If the two objects are considered equal, result == 0, 0023 % otherwise, result == 1. 0024 % 0025 % M-FILE INFO: Get information about this methods by calling 0026 % >> ao.getInfo('ne') 0027 % 0028 % Get information about a specified set-plist by calling: 0029 % >> ao.getInfo('ne', 'set') 0030 % 0031 % VERSION: $Id: ne.m,v 1.5 2008/09/04 15:29:30 ingo Exp $ 0032 % 0033 % HISTORY: 29-08-2007 M Hewitson 0034 % Creation 0035 % 0036 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0037 0038 function result = ne(obj1, obj2, varargin) 0039 0040 % Check if this is a call for parameters 0041 hh = {obj1, obj2, varargin{:}}; 0042 if utils.helper.isinfocall(hh{:}) 0043 result = getInfo(varargin{1}); 0044 return 0045 end 0046 0047 if eq(obj1, obj2, varargin{:}) 0048 result = 0; 0049 else 0050 result = 1; 0051 end 0052 end 0053 0054 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0055 % Local Functions % 0056 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0057 0058 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0059 % 0060 % FUNCTION: getInfo 0061 % 0062 % DESCRIPTION: Get Info Object 0063 % 0064 % HISTORY: 11-07-07 M Hewitson 0065 % Creation. 0066 % 0067 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0068 0069 function ii = getInfo(varargin) 0070 if nargin == 1 && strcmpi(varargin{1}, 'None') 0071 sets = {}; 0072 pl = []; 0073 else 0074 sets = {'Default'}; 0075 pl = getDefaultPlist; 0076 end 0077 % Build info object 0078 ii = minfo(mfilename, 'ltpda_obj', '', utils.const.categories.relop, '$Id: ne.m,v 1.5 2008/09/04 15:29:30 ingo Exp $', sets, pl); 0079 end 0080 0081 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0082 % 0083 % FUNCTION: getDefaultPlist 0084 % 0085 % DESCRIPTION: Get Default Plist 0086 % 0087 % HISTORY: 11-07-07 M Hewitson 0088 % Creation. 0089 % 0090 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0091 0092 function plo = getDefaultPlist() 0093 plo = plist(); 0094 end 0095