|
62 | 62 | properties |
63 | 63 | % Add any user-defined parameters grouped in context-specific sets that are not covered in the standardized properties of this activity. |
64 | 64 | customPropertySet (1,:) openminds.core.research.CustomPropertySet ... |
65 | | - {mustBeListOfUniqueItems(customPropertySet)} |
| 65 | + {mustBeMinLength(customPropertySet, 1), mustBeListOfUniqueItems(customPropertySet)} |
66 | 66 |
|
67 | 67 | % Enter a description of this activity. |
68 | 68 | description (1,1) string |
69 | 69 |
|
70 | 70 | % Enter the date and/or time on when this activity ended, formatted as either '2023-02-07T16:00:00+00:00' (date-time) or '16:00:00+00:00' (time). |
71 | 71 | endTime (1,:) datetime ... |
72 | | - {mustBeSpecifiedLength(endTime, 0, 1)} |
| 72 | + {mustBeScalarOrEmpty(endTime), mustBeValidTime(endTime)} |
73 | 73 |
|
74 | 74 | % Add the computational environment in which this computation was executed. |
75 | 75 | environment (1,:) openminds.internal.mixedtype.genericcomputation.Environment ... |
76 | | - {mustBeSpecifiedLength(environment, 0, 1)} |
| 76 | + {mustBeScalarOrEmpty(environment)} |
77 | 77 |
|
78 | 78 | % Add all inputs used by this activity. |
79 | 79 | input (1,:) openminds.internal.mixedtype.genericcomputation.Input ... |
80 | | - {mustBeListOfUniqueItems(input)} |
| 80 | + {mustBeMinLength(input, 1), mustBeListOfUniqueItems(input)} |
81 | 81 |
|
82 | 82 | % Add the launch configuration of this computation (e.g., command-line arguments). |
83 | 83 | launchConfiguration (1,:) openminds.computation.LaunchConfiguration ... |
84 | | - {mustBeSpecifiedLength(launchConfiguration, 0, 1)} |
| 84 | + {mustBeScalarOrEmpty(launchConfiguration)} |
85 | 85 |
|
86 | 86 | % Enter a lookup label for this activity that may help you to find this instance more easily. |
87 | 87 | lookupLabel (1,1) string |
88 | 88 |
|
89 | 89 | % Add all outputs generated by this activity. |
90 | 90 | output (1,:) openminds.internal.mixedtype.genericcomputation.Output ... |
91 | | - {mustBeListOfUniqueItems(output)} |
| 91 | + {mustBeMinLength(output, 1), mustBeListOfUniqueItems(output)} |
92 | 92 |
|
93 | 93 | % Add all agents that performed this activity. |
94 | 94 | performedBy (1,:) openminds.internal.mixedtype.genericcomputation.PerformedBy ... |
95 | | - {mustBeListOfUniqueItems(performedBy)} |
| 95 | + {mustBeMinLength(performedBy, 1), mustBeListOfUniqueItems(performedBy)} |
96 | 96 |
|
97 | 97 | % Add the workflow recipe version used for this computation. |
98 | 98 | recipe (1,:) openminds.computation.WorkflowRecipeVersion ... |
99 | | - {mustBeSpecifiedLength(recipe, 0, 1)} |
| 99 | + {mustBeScalarOrEmpty(recipe)} |
100 | 100 |
|
101 | 101 | % Enter all resources used during this computation (e.g., core-hours or energy). |
102 | 102 | resourceUsage (1,:) openminds.internal.mixedtype.genericcomputation.ResourceUsage ... |
103 | | - {mustBeListOfUniqueItems(resourceUsage)} |
| 103 | + {mustBeMinLength(resourceUsage, 1), mustBeListOfUniqueItems(resourceUsage)} |
104 | 104 |
|
105 | 105 | % Enter the date and/or time on when this activity started, formatted as either '2023-02-07T16:00:00+00:00' (date-time) or '16:00:00+00:00' (time). |
106 | 106 | startTime (1,:) datetime ... |
107 | | - {mustBeSpecifiedLength(startTime, 0, 1)} |
| 107 | + {mustBeScalarOrEmpty(startTime), mustBeValidTime(startTime)} |
108 | 108 |
|
109 | 109 | % Add the agent that started this computation. |
110 | 110 | startedBy (1,:) openminds.internal.mixedtype.genericcomputation.StartedBy ... |
111 | | - {mustBeSpecifiedLength(startedBy, 0, 1)} |
| 111 | + {mustBeScalarOrEmpty(startedBy)} |
112 | 112 |
|
113 | 113 | % Enter the current status of this computation. |
114 | 114 | status (1,:) openminds.controlledterms.ActionStatusType ... |
115 | | - {mustBeSpecifiedLength(status, 0, 1)} |
| 115 | + {mustBeScalarOrEmpty(status)} |
116 | 116 |
|
117 | 117 | % Add all study targets of this activity. |
118 | 118 | studyTarget (1,:) openminds.internal.mixedtype.genericcomputation.StudyTarget ... |
119 | | - {mustBeListOfUniqueItems(studyTarget)} |
| 119 | + {mustBeMinLength(studyTarget, 1), mustBeListOfUniqueItems(studyTarget)} |
120 | 120 |
|
121 | 121 | % Enter any custom tags for this computation. |
122 | 122 | tag (1,:) string ... |
123 | | - {mustBeListOfUniqueItems(tag)} |
| 123 | + {mustBeMinLength(tag, 1), mustBeListOfUniqueItems(tag)} |
124 | 124 |
|
125 | 125 | % Add all analysis techniques that were used in this computation. |
126 | 126 | technique (1,:) openminds.controlledterms.AnalysisTechnique ... |
127 | | - {mustBeListOfUniqueItems(technique)} |
| 127 | + {mustBeMinLength(technique, 1), mustBeListOfUniqueItems(technique)} |
128 | 128 |
|
129 | 129 | % Add another computation that sent data to this one during runtime. |
130 | 130 | wasInformedBy (1,:) openminds.internal.mixedtype.genericcomputation.WasInformedBy ... |
131 | | - {mustBeSpecifiedLength(wasInformedBy, 0, 1)} |
| 131 | + {mustBeScalarOrEmpty(wasInformedBy)} |
132 | 132 | end |
133 | 133 |
|
134 | 134 | properties (Access = protected) |
|
0 commit comments