21 profile_yaml =
"""rtcProfile: 26 name: [basicInfo.name] 28 description: [basicInfo.description] 30 version: [basicInfo.version] 32 vendor: [basicInfo.vendor] 34 category: [basicInfo.category] 36 componentType: [basicInfo.componentType] 38 activityType: [basicInfo.activityType] 40 componentKind: [basicInfo.componentKind] 42 maxInstances: [basicInfo.maxInstances] 44 abstract: [basicInfo.abstract] 46 executionRate: [basicInfo.executionRate] 48 executionType: [basicInfo.executionType] 51 year: [basicInfo.creationDate.year] 53 month: [basicInfo.creationDate.month] 55 day: [basicInfo.creationDate.day] 57 hour: [basicInfo.creationDate.hour] 59 minute: [basicInfo.creationDate.minute] 61 second: [basicInfo.creationDate.second] 64 year: [basicInfo.updateDate.year] 66 month: [basicInfo.updateDate.month] 68 day: [basicInfo.updateDate.day] 70 hour: [basicInfo.updateDate.hour] 72 minute: [basicInfo.updateDate.minute] 74 second: [basicInfo.updateDate.second] 77 algorithm: [basicInfo.rtcDoc::doc.algorithm] 79 creator: [basicInfo.rtcDoc::doc.creator] 81 description: [basicInfo.rtcDoc::doc.description] 83 inout: [basicInfo.rtcDoc::doc.inout] 85 license: [basicInfo.rtcDoc::doc.license] 87 reference: [basicInfo.rtcDoc::doc.reference] 89 "rtcExt::versionUpLog": 90 [for log in basicInfo.rtcExt::versionUpLog] 94 [if-any language.java] 97 [for javalib in language.java.library] 103 implemented: [actions.onInitialize.implemented] 106 description: [actions.onInitialize.rtcDoc::doc.description] 108 postCondition: [actions.onInitialize.rtcDoc::doc.postCondition] 110 preCondition: [actions.onInitialize.rtcDoc::doc.preCondition] 113 implemented: [actions.onActivated.implemented] 116 description: [actions.onActivated.rtcDoc::doc.description] 118 postCondition: [actions.onActivated.rtcDoc::doc.postCondition] 120 preCondition: [actions.onActivated.rtcDoc::doc.preCondition] 123 implemented: [actions.onDeactivated.implemented] 126 description: [actions.onDeactivated.rtcDoc::doc.description] 128 postCondition: [actions.onDeactivated.rtcDoc::doc.postCondition] 130 preCondition: [actions.onDeactivated.rtcDoc::doc.preCondition] 133 implemented: [actions.onAborting.implemented] 136 description: [actions.onAborting.rtcDoc::doc.description] 138 postCondition: [actions.onAborting.rtcDoc::doc.postCondition] 140 preCondition: [actions.onAborting.rtcDoc::doc.preCondition] 143 implemented: [actions.onError.implemented] 146 description: [actions.onError.rtcDoc::doc.description] 148 postCondition: [actions.onError.rtcDoc::doc.postCondition] 150 preCondition: [actions.onError.rtcDoc::doc.preCondition] 153 implemented: [actions.onReset.implemented] 156 description: [actions.onReset.rtcDoc::doc.description] 158 postCondition: [actions.onReset.rtcDoc::doc.postCondition] 160 preCondition: [actions.onReset.rtcDoc::doc.preCondition] 163 implemented: [actions.onFinalize.implemented] 166 description: [actions.onFinalize.rtcDoc::doc.description] 168 postCondition: [actions.onFinalize.rtcDoc::doc.postCondition] 170 preCondition: [actions.onFinalize.rtcDoc::doc.preCondition] 173 implemented: [actions.onStartup.implemented] 176 description: [actions.onStartup.rtcDoc::doc.description] 178 postCondition: [actions.onStartup.rtcDoc::doc.postCondition] 180 preCondition: [actions.onStartup.rtcDoc::doc.preCondition] 183 implemented: [actions.onRateChanged.implemented] 186 description: [actions.onRateChanged.rtcDoc::doc.description] 188 postCondition: [actions.onRateChanged.rtcDoc::doc.postCondition] 190 preCondition: [actions.onRateChanged.rtcDoc::doc.preCondition] 193 implemented: [actions.onShutdown.implemented] 196 description: [actions.onShutdown.rtcDoc::doc.description] 198 postCondition: [actions.onShutdown.rtcDoc::doc.postCondition] 200 preCondition: [actions.onShutdown.rtcDoc::doc.preCondition] 203 implemented: [actions.onExecute.implemented] 206 description: [actions.onExecute.rtcDoc::doc.description] 208 postCondition: [actions.onExecute.rtcDoc::doc.postCondition] 210 preCondition: [actions.onExecute.rtcDoc::doc.preCondition] 213 implemented: [actions.onStateUpdate.implemented] 216 description: [actions.onStateUpdate.rtcDoc::doc.description] 218 postCondition: [actions.onStateUpdate.rtcDoc::doc.postCondition] 220 preCondition: [actions.onStateUpdate.rtcDoc::doc.preCondition] 223 [for dport in dataPorts] 225 portType: [dport.portType] 231 interfaceType: [dport.interfaceType] 233 dataflowType: [dport.dataflowType] 235 subscriptionType: [dport.subscriptionType] 237 idlFile: [dport.idlFile] 240 type: [dport.rtcDoc::doc.type] 242 description: [dport.rtcDoc::doc.description] 244 number: [dport.rtcDoc::doc.number] 246 occerrence: [dport.rtcDoc::doc.occerrence] 248 operation: [dport.rtcDoc::doc.operation] 250 semantics: [dport.rtcDoc::doc.semantics] 252 unit: [dport.rtcDoc::doc.unit] 254 "rtcExt::position": [dport.rtcExt::position] 256 "rtcExt::varname": [dport.rtcExt::varname] 260 [for sport in servicePorts] 265 description: [sport.rtcDoc::doc.description] 267 ifdescription: [sport.rtcDoc::doc.ifdescription] 269 "rtcExt::position": [sport.rtcExt::position] 272 [for sif in sport.serviceInterface] 274 direction: [sif.direction] 280 varname: [sif.varname] 282 instanceName: [sif.instanceName] 284 idlFile: [sif.idlFile] 289 description: [sif.rtcDoc::doc.description] 291 docArgument: [sif.rtcDoc::doc.docArgument] 293 docException: [sif.rtcDoc::doc.docException] 295 docPostCondition: [sif.rtcDoc::doc.docPostCondition] 297 docPreCondition: [sif.rtcDoc::doc.docPreCondition] 299 docReturn: [sif.rtcDoc::doc.docReturn] 305 [for conf in configurationSet.configuration] 311 varname: [conf.varname] 313 defaultValue: [conf.defaultValue] 316 constraint: [conf.rtcDoc::doc.constraint] 318 dataname: [conf.rtcDoc::doc.dataname] 320 defaultValue: [conf.rtcDoc::doc.defaultValue] 322 description: [conf.rtcDoc::doc.description] 324 range: [conf.rtcDoc::doc.range] 326 unit: [conf.rtcDoc::doc.unit] 331 [for param in parameters] 335 defaultValue: [param.defaultValue] 345 self.
data[
"fname"] = data[
"basicInfo"][
"name"] +
".yaml" def print_yamlprofile(self)
def gen(self, fname, temp_txt, data, tags)