|
Last change
on this file since 10937 was 9853, checked in by Mathieu Morlighem, 15 years ago |
|
Checkmodelconsistency passes solution and analyses to the objects for further checks
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | %NONE class definition
|
|---|
| 2 | %
|
|---|
| 3 | % Usage:
|
|---|
| 4 | % cluster=none();
|
|---|
| 5 | % cluster=none('np',3);
|
|---|
| 6 | % cluster=none('np',3,'login','username');
|
|---|
| 7 |
|
|---|
| 8 | classdef none
|
|---|
| 9 | properties (SetAccess=public)
|
|---|
| 10 | name='none'
|
|---|
| 11 | end
|
|---|
| 12 | methods
|
|---|
| 13 | function cluster=none(varargin) % {{{1
|
|---|
| 14 | options=pairoptions(varargin{:});
|
|---|
| 15 | for i=1:size(options.list,1),
|
|---|
| 16 | fieldname=options.list{i,1};
|
|---|
| 17 | fieldvalue=options.list{i,2};
|
|---|
| 18 | if ismember(fieldname,properties('none')),
|
|---|
| 19 | cluster.(fieldname)=fieldvalue;
|
|---|
| 20 | else
|
|---|
| 21 | disp(['''' fieldname ''' is not a property of cluster none']);
|
|---|
| 22 | end
|
|---|
| 23 | end
|
|---|
| 24 | end
|
|---|
| 25 | %}}}
|
|---|
| 26 | function disp(cluster) % {{{1
|
|---|
| 27 | % display the object
|
|---|
| 28 | disp(sprintf('cluster class ''%s'' object ''%s'' = ',class(cluster),inputname(1)));
|
|---|
| 29 | disp(sprintf(' name: %s',cluster.name));
|
|---|
| 30 | end
|
|---|
| 31 | %}}}
|
|---|
| 32 | function checkconsistency(cluster,md,solution,analyses) % {{{1
|
|---|
| 33 | end
|
|---|
| 34 | %}}}
|
|---|
| 35 | function BuildQueueScript(cluster,md) % {{{1
|
|---|
| 36 | error('none.BuildQueueScript error message: serial cluster cannot build queue script');
|
|---|
| 37 | end
|
|---|
| 38 | %}}}
|
|---|
| 39 | end
|
|---|
| 40 | end
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.