Home > classes > @pzmodel > ne.m

ne

PURPOSE ^

NE overloads the ~= operator for pzmodel objects.

SYNOPSIS ^

function result = ne(p1, p2, varargin)

DESCRIPTION ^

 NE overloads the ~= operator for pzmodel objects.

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

 DESCRIPTION: NE overloads the ~= operator for pzmodel objects.

 CALL:        result = ne(p1,p2)
              result = ne(p1,p2,  exc_list)
              result = ne(p1,p2, 'property1', 'property2')
              result = ne(p1,p2, 'class/property', 'class/property')
              result = ne(p1,p2,  plist('Exceptions', 'exception-list'))

 PLIST:       key:   'Exceptions'
              value:  String or cell-array with exceptions.

 INPUTS:      p1,p2 - input pzmodel objects

 OUTPUTS:     If the two pzmodel objects are considered equal, result == 0,
              otherwise, result == 1.

 VERSION:     $Id: ne.html,v 1.12 2008/03/31 10:27:37 hewitson Exp $

 HISTORY:     29-08-2007 M Hewitson
                 Creation

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function result = ne(p1, p2, varargin)
0002 % NE overloads the ~= operator for pzmodel objects.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: NE overloads the ~= operator for pzmodel objects.
0007 %
0008 % CALL:        result = ne(p1,p2)
0009 %              result = ne(p1,p2,  exc_list)
0010 %              result = ne(p1,p2, 'property1', 'property2')
0011 %              result = ne(p1,p2, 'class/property', 'class/property')
0012 %              result = ne(p1,p2,  plist('Exceptions', 'exception-list'))
0013 %
0014 % PLIST:       key:   'Exceptions'
0015 %              value:  String or cell-array with exceptions.
0016 %
0017 % INPUTS:      p1,p2 - input pzmodel objects
0018 %
0019 % OUTPUTS:     If the two pzmodel objects are considered equal, result == 0,
0020 %              otherwise, result == 1.
0021 %
0022 % VERSION:     $Id: ne.html,v 1.12 2008/03/31 10:27:37 hewitson Exp $
0023 %
0024 % HISTORY:     29-08-2007 M Hewitson
0025 %                 Creation
0026 %
0027 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0028 
0029 VERSION  = '$Id: ne.html,v 1.12 2008/03/31 10:27:37 hewitson Exp $';
0030 CATEGORY = 'Relational Operator';
0031 
0032 % Check if this is a call for parameters
0033 if nargin == 2
0034   if isa(p1, 'pzmodel') && ischar(p2)
0035     in = char(p2);
0036     if strcmp(in, 'Params')
0037       result = plist();
0038       return
0039     elseif strcmp(in, 'Version')
0040       result = VERSION;
0041       return
0042     elseif strcmp(in, 'Category')
0043       result = CATEGORY;
0044       return
0045     end
0046   end
0047 end
0048 
0049 if eq(p1, p2, varargin{:})
0050   result = 0;
0051 else
0052   result = 1;
0053 end
0054 
0055 % END

Generated on Mon 31-Mar-2008 12:20:24 by m2html © 2003