def allPossibleOutputTypes(self): """ Returns a list of all type data packet types this node can output. """ outputTypeList = set([self.dataPacketType]) outputTypeList |= set(depends_util.allClassChildren(self.dataPacketType)) return outputTypeList
def allPossibleOutputTypes(self): """ Returns a list of all type data packet types this node can output. """ outputTypeList = set([self.dataPacketType]) outputTypeList |= set( depends_util.allClassChildren(self.dataPacketType)) return outputTypeList
def allPossibleInputTypes(self): """ Return a list of all possible DataPacket types this input accepts. This is interesting because inputs can accept DataPakcets of a type that is inherited from its base type. """ inputTypeList = set([self.dataPacketType]) inputTypeList |= set(depends_util.allClassChildren(self.dataPacketType)) return inputTypeList
def allPossibleInputTypes(self): """ Return a list of all possible DataPacket types this input accepts. This is interesting because inputs can accept DataPakcets of a type that is inherited from its base type. """ inputTypeList = set([self.dataPacketType]) inputTypeList |= set(depends_util.allClassChildren( self.dataPacketType)) return inputTypeList
def generateReadDagNodes(): """ Construct a collection of dag nodes for each type of data packet loaded in the current session. """ for packetType in depends_util.allClassChildren(depends_data_packet.DataPacket): # Create a new class based on all child objects of DataPacket NewClassType = readNodeClassFactory(packetType) # Install class into current module globals()[NewClassType.__name__] = NewClassType del NewClassType
def generateReadDagNodes(): """ Construct a collection of dag nodes for each type of data packet loaded in the current session. """ for packetType in depends_util.allClassChildren( depends_data_packet.DataPacket): # Create a new class based on all child objects of DataPacket NewClassType = readNodeClassFactory(packetType) # Install class into current module globals()[NewClassType.__name__] = NewClassType del NewClassType