AlgNode for InputMaker Algs
Definition at line 170 of file MenuComponents.py.
◆ __init__()
def MenuComponents.InputMakerNode.__init__ |
( |
|
self, |
|
|
|
Alg |
|
) |
| |
Reimplemented from MenuComponents.Node.
Definition at line 172 of file MenuComponents.py.
173 assert isInputMakerBase(Alg),
"Error in creating InputMakerNode from Alg " + Alg.name
174 AlgNode.__init__(self, Alg,
'InputMakerInputDecisions',
'InputMakerOutputDecisions')
175 input_maker_output = CFNaming.inputMakerOutName(self.Alg.name)
176 self.addOutput(input_maker_output)
◆ __repr__()
def MenuComponents.AlgNode.__repr__ |
( |
|
self | ) |
|
|
inherited |
◆ addInput()
def MenuComponents.AlgNode.addInput |
( |
|
self, |
|
|
|
name |
|
) |
| |
|
inherited |
Reimplemented from MenuComponents.Node.
Definition at line 82 of file MenuComponents.py.
83 inputs = self.readInputList()
85 log.debug(
"Input DH not added in %s: %s already set!", self.Alg.
getName(), name)
87 if self.inputProp !=
'':
88 self.setPar(self.inputProp, name)
90 log.debug(
"no InputProp set for input of %s", self.Alg.
getName())
91 Node.addInput(self, name)
92 return len(self.readInputList())
◆ addOutput()
def MenuComponents.AlgNode.addOutput |
( |
|
self, |
|
|
|
name |
|
) |
| |
|
inherited |
Reimplemented from MenuComponents.Node.
Reimplemented in MenuComponents.HypoAlgNode.
Definition at line 66 of file MenuComponents.py.
66 def addOutput(self, name):
67 outputs = self.readOutputList()
69 log.debug(
"Output DH not added in %s: %s already set!", self.Alg.
getName(), name)
71 if self.outputProp !=
'':
72 self.setPar(self.outputProp, name)
74 log.debug(
"no outputProp set for output of %s", self.Alg.
getName())
75 Node.addOutput(self, name)
◆ getInputList()
def MenuComponents.Node.getInputList |
( |
|
self | ) |
|
|
inherited |
◆ getOutputList()
def MenuComponents.Node.getOutputList |
( |
|
self | ) |
|
|
inherited |
◆ readInputList()
def MenuComponents.AlgNode.readInputList |
( |
|
self | ) |
|
|
inherited |
Definition at line 94 of file MenuComponents.py.
94 def readInputList(self):
95 cval = getattr(self.Alg, self.inputProp)
96 return (cval
if isinstance(cval, MutableSequence)
else
97 ([
str(cval)]
if cval
else []))
◆ readOutputList()
def MenuComponents.AlgNode.readOutputList |
( |
|
self | ) |
|
|
inherited |
Definition at line 77 of file MenuComponents.py.
77 def readOutputList(self):
78 cval = getattr(self.Alg, self.outputProp)
79 return (cval
if isinstance(cval, MutableSequence)
else
80 ([
str(cval)]
if cval
else []))
◆ setPar()
def MenuComponents.AlgNode.setPar |
( |
|
self, |
|
|
|
propname, |
|
|
|
value |
|
) |
| |
|
inherited |
Definition at line 58 of file MenuComponents.py.
58 def setPar(self, propname, value):
59 cval = getattr( self.Alg, propname)
60 if isinstance(cval, MutableSequence):
62 return setattr(self.Alg, propname, cval)
64 return setattr(self.Alg, propname, value)
◆ Alg
◆ inputProp
MenuComponents.AlgNode.inputProp |
|
inherited |
◆ inputs
MenuComponents.Node.inputs |
|
inherited |
◆ name
◆ outputProp
MenuComponents.AlgNode.outputProp |
|
inherited |
◆ outputs
MenuComponents.Node.outputs |
|
inherited |
The documentation for this class was generated from the following file: