Пример #1
0
 def __init__(self):
     Decorable.__init__(self)
     self.input_area = {}
     self.processing_area = {}
     self.output_area = {}
     self.log_area = {}
     self.tag = None
     self.location = None
Пример #2
0
 def __init__(self):
     Decorable.__init__(self)
     self.input_area = {}
     self.processing_area = {}
     self.output_area = {}
     self.log_area = {}
     self.tag = None
     self.location = None
Пример #3
0
 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
Пример #4
0
 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