comparison m-toolbox/classes/tests/database/@ltpda_objmeta_table/ltpda_objmeta_table.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 classdef ltpda_objmeta_table < ltpda_database
2
3 properties
4 objIdsStruct = [];
5 sinfoStruct = [];
6 end
7
8 methods
9 function utp = ltpda_objmeta_table(varargin)
10 utp = utp@ltpda_database();
11
12 t = time();
13 tStr = t.format('dd-mmm-yyyy HH:MM (z)');
14
15 experiment_title = 'Unit test - My experiment title';
16 experiment_description = 'Unit test - My experiment description';
17 analysis_description = 'Unit test - My analysis description';
18 quantity = 'Unit test - My quantity';
19 keywords = 'Unit test - My keywords';
20 reference_ids = 'Unit test - My reference IDs';
21 additional_comments = 'Unit test - My additional comments';
22 additional_authors = 'Unit test - My additional authors';
23
24 s.experiment_title = sprintf('%s with a struct - %s', experiment_title, tStr);
25 s.experiment_description = sprintf('%s with a struct - %s', experiment_description, tStr);
26 s.analysis_description = sprintf('%s with a struct - %s', analysis_description, tStr);
27 s.quantity = sprintf('%s with a struct - %s', quantity, tStr);
28 s.keywords = sprintf('%s with a struct - %s', keywords, tStr);
29 s.reference_ids = sprintf('%s with a struct - %s', reference_ids, tStr);
30 s.additional_comments = sprintf('%s with a struct - %s', additional_comments, tStr);
31 s.additional_authors = sprintf('%s with a struct - %s', additional_authors, tStr);
32
33 utp.sinfoStruct = s;
34
35 end
36 end
37
38 methods
39 function varargout = submitTestDataWithStruct(varargin)
40 utp = varargin{1};
41 if ~utp.testRunner.skipRepoTests()
42 utp.objIdsStruct = utp.testData.submit(utp.testRunner.repositoryPlist, utp.sinfoStruct);
43 end
44 end
45 end
46
47 end