Example #1
0
	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
Example #2
0
 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
Example #3
0
	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
Example #4
0
 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
Example #5
0
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
Example #6
0
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