def addSimpleSequencProperty( self, id, values, complex=True, type="double", mode="readwrite", kindtypes=["configure"] ): complexStr = "false" if complex: # convert from Octave complex to BulkIO complex for index in range(len(values)): values[index] = standardizeComplexFormat(values[index]) complexStr = "true" simplesequence = prf.simpleSequence( complex=complexStr, type_=type, id_=id, mode=mode, action=prf.action(type_="external") ) if len(values) > 0: if values[0] != "": # only create value entries if there is actual content in the list valuesXml = prf.values() for value in values: valuesXml.add_value(value=value) simplesequence.values = valuesXml for kindtype in kindtypes: simplesequence.add_kind(value=prf.kind(kindtype=kindtype)) self.prf.add_simplesequence(simplesequence)
def addSimpleSequencProperty(self, id, values, complex=True, type="double", mode="readwrite", kindtypes=["configure"]): complexStr = "false" if complex: # convert from Octave complex to BulkIO complex for index in range(len(values)): values[index] = standardizeComplexFormat(values[index]) complexStr = "true" simplesequence = prf.simpleSequence( complex=complexStr, type_=type, id_=id, mode=mode, action=prf.action(type_="external")) if len(values) > 0: if values[0] != "": # only create value entries if there is actual content in the list valuesXml = prf.values() for value in values: valuesXml.add_value(value=value) simplesequence.values = valuesXml for kindtype in kindtypes: simplesequence.add_kind(value=prf.kind(kindtype=kindtype)) self.prf.add_simplesequence(simplesequence)
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 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)