AlgNode for InputMaker Algs
Definition at line 171 of file MenuComponents.py.
◆ __init__()
def MenuComponents.InputMakerNode.__init__ |
( |
|
self, |
|
|
|
Alg |
|
) |
| |
Reimplemented from MenuComponents.Node.
Definition at line 173 of file MenuComponents.py.
174 assert isInputMakerBase(Alg),
"Error in creating InputMakerNode from Alg " + Alg.name
175 AlgNode.__init__(self, Alg,
'InputMakerInputDecisions',
'InputMakerOutputDecisions')
176 input_maker_output = CFNaming.inputMakerOutName(self.Alg.name)
177 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 83 of file MenuComponents.py.
84 inputs = self.readInputList()
86 log.debug(
"Input DH not added in %s: %s already set!", self.Alg.
getName(), name)
88 if self.inputProp !=
'':
89 self.setPar(self.inputProp, name)
91 log.debug(
"no InputProp set for input of %s", self.Alg.
getName())
92 Node.addInput(self, name)
93 return len(self.readInputList())
◆ addOutput()
def MenuComponents.AlgNode.addOutput |
( |
|
self, |
|
|
|
name |
|
) |
| |
|
inherited |
Reimplemented from MenuComponents.Node.
Reimplemented in MenuComponents.HypoAlgNode.
Definition at line 67 of file MenuComponents.py.
67 def addOutput(self, name):
68 outputs = self.readOutputList()
70 log.debug(
"Output DH not added in %s: %s already set!", self.Alg.
getName(), name)
72 if self.outputProp !=
'':
73 self.setPar(self.outputProp, name)
75 log.debug(
"no outputProp set for output of %s", self.Alg.
getName())
76 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 95 of file MenuComponents.py.
95 def readInputList(self):
96 cval = getattr(self.Alg, self.inputProp)
97 return (cval
if isinstance(cval, MutableSequence)
else
98 ([
str(cval)]
if cval
else []))
◆ readOutputList()
def MenuComponents.AlgNode.readOutputList |
( |
|
self | ) |
|
|
inherited |
Definition at line 78 of file MenuComponents.py.
78 def readOutputList(self):
79 cval = getattr(self.Alg, self.outputProp)
80 return (cval
if isinstance(cval, MutableSequence)
else
81 ([
str(cval)]
if cval
else []))
◆ setPar()
def MenuComponents.AlgNode.setPar |
( |
|
self, |
|
|
|
propname, |
|
|
|
value |
|
) |
| |
|
inherited |
Definition at line 59 of file MenuComponents.py.
59 def setPar(self, propname, value):
60 cval = getattr( self.Alg, propname)
61 if isinstance(cval, MutableSequence):
63 return setattr(self.Alg, propname, cval)
65 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: