Beispiel #1
0
 def __init__(self, *args, **kwargs):
     super(MulArray, self).__init__(*args, **kwargs)
     self._mulValue = self._makeDataInputSlot('mulVal', SLOT_TYPE.INT)
     self._arrayIn = self._makeDataInputSlot('array',
                                             arrayOf(SLOT_TYPE.INT))
     self._arrayOut = self._makeDataOutputSlot('res_array',
                                               arrayOf(SLOT_TYPE.INT),
                                               MulArray._execute)
Beispiel #2
0
 def __init__(self, *args, **kwargs):
     super(TestIdentifier, self).__init__(*args, **kwargs)
     self._nameType = self._getInitParams()
     if self._nameType == 'single id':
         self.inInt = self._makeDataInputSlot('test_id', SLOT_TYPE.INT)
         self.outID = self._makeDataOutputSlot('Identifier', SLOT_TYPE.ID, self._execute)
     elif self._nameType == 'array of IDs':
         self.inInt = self._makeDataInputSlot('multiple_test_ids', arrayOf(SLOT_TYPE.INT))
         self.outID = self._makeDataOutputSlot('Array of Identifiers', arrayOf(SLOT_TYPE.ID), self._execute)
Beispiel #3
0
 def __init__(self, *args, **kwargs):
     super(EquipmentParams, self).__init__(*args, **kwargs)
     self.eqName = self._getInitParams()
     self._inSlot = self._makeEventInputSlot('in', self._execute)
     self._params = self._makeDataInputSlot('Parameters',
                                            arrayOf('ConfigParamStruct'))
     self._out = self._makeEventOutputSlot('out')
Beispiel #4
0
 def __init__(self, *args, **kwargs):
     super(MakeTestTypeArray, self).__init__(*args, **kwargs)
     self._out = self._makeDataOutputSlot('data',
                                          arrayOf(TestType.slotType()),
                                          None)
     self._out.setValue([TestType('Bob', 1945), TestType('Marley', 1981)])
     return
Beispiel #5
0
 def __init__(self, *args, **kwargs):
     super(SumArray, self).__init__(*args, **kwargs)
     self._inArray = self._makeDataInputSlot('array', arrayOf(SLOT_TYPE.FLOAT))
     self._out = self._makeDataOutputSlot('res', SLOT_TYPE.FLOAT, SumArray._execute)
Beispiel #6
0
 def __init__(self, *args, **kwargs):
     super(IntCompDescrDecoder, self).__init__(*args, **kwargs)
     self._intCDs = self._makeDataInputSlot('incCD', arrayOf(SLOT_TYPE.INT))
Beispiel #7
0
 def __init__(self, *args, **kwargs):
     super(TestSlotPyObjectToArrayVSEBlock, self).__init__(*args, **kwargs)
     self._res = self._makeDataOutputSlot('res', arrayOf(SLOT_TYPE.STR), self._exec)