Пример #1
0
 def __init__(self):
     GenericPE.__init__(self)
     self.inputconnections['input'] = { NAME : 'input' }
     out1 = {}
     out1[NAME] = "output"
     out1[TYPE] = ['word']
     self.outputconnections["output"] = out1
Пример #2
0
 def __init__(self):
     GenericPE.__init__(self)
     self.inputconnections['input'] = {NAME: 'input'}
     out1 = {}
     out1[NAME] = "output"
     out1[TYPE] = ['word']
     self.outputconnections["output"] = out1
Пример #3
0
 def __init__(self):
     GenericPE.__init__(self)
     self.inputconnections['input'] = { NAME : 'input', GROUPING : [0] }
     out1 = {}
     out1[NAME] = "output"
     out1[TYPE] = ['word', 'count']
     self.outputconnections["output"] = out1
     self.mywords = {}
Пример #4
0
 def __init__(self):
     GenericPE.__init__(self)
     self.inputconnections['input'] = {NAME: 'input', GROUPING: [0]}
     out1 = {}
     out1[NAME] = "output"
     out1[TYPE] = ['word', 'count']
     self.outputconnections["output"] = out1
     self.mywords = {}
Пример #5
0
 def __init__(self, numOutputs=1):
     GenericPE.__init__(self)
     if numOutputs == 1:
         self.outputconnections = { 'output' : { NAME : 'output', TYPE: ['number'] } }
     else:
         for i in range(numOutputs):
             self.outputconnections['output%s' % i] = { NAME : 'output%s' % i, TYPE: ['number'] } 
     self.counter = 0
     self.outputnames = list(self.outputconnections.keys())
Пример #6
0
 def __init__(self):
     GenericPE.__init__(self)
     self.inputconnections = {
         'input0': {
             NAME: 'input0'
         },
         'input1': {
             NAME: 'input1'
         }
     }
     self.outputconnections = {'output': {NAME: 'output', TYPE: ['result']}}
Пример #7
0
 def __init__(self, numOutputs=1):
     GenericPE.__init__(self)
     if numOutputs == 1:
         self.outputconnections = {
             'output': {
                 NAME: 'output',
                 TYPE: ['number']
             }
         }
     else:
         for i in range(numOutputs):
             self.outputconnections['output%s' % i] = {
                 NAME: 'output%s' % i,
                 TYPE: ['number']
             }
     self.counter = 0
     self.outputnames = list(self.outputconnections.keys())
Пример #8
0
 def __init__(self, name='ProvenanceRecorder'):
     GenericPE.__init__(self)
     self.name = name
     in1 = {self.INPUT_NAME: {NAME: self.INPUT_NAME}}
Пример #9
0
 def __init__(self):
     GenericPE.__init__(self)
     self.inputconnections = {'input': {NAME: 'input'}}
     self.outputconnections = {'output': {NAME: 'output', TYPE: ['number']}}
Пример #10
0
 def __init__(self, numIterations=1):
     GenericPE.__init__(self)
     self.outputconnections = {'output': {NAME: 'output', TYPE: ['number']}}
     self.counter = 0
     self.numIterations = numIterations
Пример #11
0
 def __init__(self):
     GenericPE.__init__(self)
     self.inputconnections = {'metadata': {NAME: 'metadata'}}
Пример #12
0
 def __init__(self):
     GenericPE.__init__(self)
     out1 = {}
     out1[NAME] = "output"
     out1[TYPE] = ['word']
     self.outputconnections["output"] = out1
Пример #13
0
 def __init__(self, name='ProvenanceRecorder'):
     GenericPE.__init__(self)
     self.name = name
     in1 = { self.INPUT_NAME : { NAME : self.INPUT_NAME }}
Пример #14
0
 def __init__(self):
     GenericPE.__init__(self)
     out1 = {}
     out1[NAME] = "output"
     out1[TYPE] = ['word']
     self.outputconnections["output"] = out1
Пример #15
0
 def __init__(self):
     GenericPE.__init__(self)
     self.inputconnections = { 'input0' : { NAME : 'input0' }, 'input1' : { NAME : 'input1' } }
     self.outputconnections = { 'output' : { NAME : 'output', TYPE: ['result'] } }
Пример #16
0
 def __init__(self):
     GenericPE.__init__(self)
     self.inputconnections = { 'input' : { NAME : 'input' } }
     self.outputconnections = { 'output' : { NAME : 'output', TYPE: ['number'] } }
Пример #17
0
 def __init__(self, numIterations=1):
     GenericPE.__init__(self)
     self.outputconnections = { 'output' : { NAME : 'output', TYPE: ['number'] } }
     self.counter = 0
     self.numIterations = numIterations
Пример #18
0
 def __init__(self):
     GenericPE.__init__(self)
     self.inputconnections = { 'metadata' : { NAME : 'metadata' } }