% UTP_SSM_COPY a set of UTPs for the ssm/copy method
%
% M Hewitson 06-08-08
%
% $Id: utp_ssm_copy.m,v 1.2 2009/08/06 16:56:25 hewitson Exp $
%

% <MethodDescription>
%
% The copy method of the ssm class copies the input object depending of the
% second input.
%
% </MethodDescription>

function results = utp_ssm_copy(varargin)

  % Check the inputs
  if nargin == 0

    % Some keywords
    class   = 'ssm';
    mthd    = 'copy';

    results = [];
    disp('******************************************************');
    disp(['****  Running UTPs for ' class '/' mthd]);
    disp('******************************************************');

    % Test miir objects
    [sys1, sys2] = get_test_objects_ssm;

    % Exception list for the UTPs:
    [ple1,ple2,ple3,ple4,ple5,ple6] = get_test_ples();

    % Run the tests
    results = [results utp_69(class, 1, 1, ple2)]; 
    results = [results utp_69(class, 1, 3, ple2)]; 
    results = [results utp_69(class, 2, 3, ple2)]; 

    disp('Done.');
    disp('******************************************************');

  elseif nargin == 1 % Check for UTP functions
    if strcmp(varargin{1}, 'isutp')
      results = 1;
    else
      results = 0;
    end
  else
    error('### Incorrect inputs')
  end
  
end
