def docker_execparam(name, value, description): return prf.simple(id_=name, value=value, type_='string', commandline='true', kind=[prf.kind(kindtype='property')], action=prf.action(type_='external'), description=description)
def addStructSequencProperty(self, id, values={}, struct_id="", type={}, mode="readwrite", kindtypes=["configure"]): structseq = prf.structSequence(id_=id, mode=mode) struct = prf.struct(id_=struct_id, mode=None) for name in type: simp = prf.simple(id_=name, type_=type[name], complex=None, mode=None) struct.add_simple(simp) structseq.set_struct(struct) self.prf.add_structsequence(structseq)
def addSimpleProperty(self, id, value, complex=True, type="double", mode="readwrite", kindtypes=["configure"]): complexStr = "false" if complex: # convert from Octave complex to BulkIO complex value = standardizeComplexFormat(value) complexStr = "true" simple = prf.simple( complex=complexStr, type_=type, id_=id, mode=mode, value=value, action=prf.action(type_="external") ) for kindtype in kindtypes: simple.add_kind(value=prf.kind(kindtype=kindtype)) self.prf.add_simple(simple)
def addSimpleProperty(self, id, value, complex=True, type="double", mode="readwrite", kindtypes=["configure"]): complexStr = "false" if complex: # convert from Octave complex to BulkIO complex value = standardizeComplexFormat(value) complexStr = "true" simple = prf.simple(complex=complexStr, type_=type, id_=id, mode=mode, value=value, action=prf.action(type_="external")) for kindtype in kindtypes: simple.add_kind(value=prf.kind(kindtype=kindtype)) self.prf.add_simple(simple)