def __init__(self): Decorable.__init__(self) self.input_area = {} self.processing_area = {} self.output_area = {} self.log_area = {} self.tag = None self.location = None
def __init__(self): Decorable.__init__(self) self.input_area = {} self.processing_area = {} self.output_area = {} self.log_area = {} self.tag = None self.location = None
def __init__(self, source, destination): Decorable.__init__(self) try: source |should| be_instance_of(Node) except: raise ContractError('Source: Node instance expected, instead %s passed' % type(source)) self.source = source try: destination |should| be_instance_of(Node) except: raise ContractError('Destination: Node instance expected, instead %s passed' % type(destination)) self.destination = destination
def __init__(self, source, destination): Decorable.__init__(self) try: source | should | be_instance_of(Node) except: raise ContractError( 'Source: Node instance expected, instead %s passed' % type(source)) self.source = source try: destination | should | be_instance_of(Node) except: raise ContractError( 'Destination: Node instance expected, instead %s passed' % type(destination)) self.destination = destination