graphics/FBD_Objects.py
changeset 1872 866fb3ab8778
parent 1852 70c1cc354a8f
child 1881 091005ec69c4
equal deleted inserted replaced
1871:933fbe9a5e2c 1872:866fb3ab8778
   199     def GetInputTypes(self):
   199     def GetInputTypes(self):
   200         return tuple([input.GetType(True) for input in self.Inputs if input.GetName() != "EN"])
   200         return tuple([input.GetType(True) for input in self.Inputs if input.GetName() != "EN"])
   201 
   201 
   202     def SetOutputValues(self, values):
   202     def SetOutputValues(self, values):
   203         for output in self.Outputs:
   203         for output in self.Outputs:
   204             output.SetValue(values.get(ouput.getName(), None))
   204             output.SetValue(values.get(output.getName(), None))
   205 
   205 
   206     def GetConnectionResultType(self, connector, connectortype):
   206     def GetConnectionResultType(self, connector, connectortype):
   207         if not TestConnectorName(connector.GetName(), self.Type):
   207         if not TestConnectorName(connector.GetName(), self.Type):
   208             return connectortype
   208             return connectortype
   209         resulttype = connectortype
   209         resulttype = connectortype