AlgNode for InputMaker Algs
Definition at line 197 of file MenuComponents.py.
◆ __init__()
def MenuComponents.InputMakerNode.__init__ |
( |
|
self, |
|
|
|
Alg |
|
) |
| |
Reimplemented from MenuComponents.Node.
Definition at line 199 of file MenuComponents.py.
200 assert isInputMakerBase(Alg),
"Error in creating InputMakerNode from Alg " + Alg.name
201 AlgNode.__init__(self, Alg,
'InputMakerInputDecisions',
'InputMakerOutputDecisions')
204 input_maker_output = CFNaming.inputMakerOutName(self.Alg.name)
205 self.addOutput(input_maker_output)
◆ __repr__()
def MenuComponents.AlgNode.__repr__ |
( |
|
self | ) |
|
|
inherited |
◆ addDefaultOutput()
def MenuComponents.AlgNode.addDefaultOutput |
( |
|
self | ) |
|
|
inherited |
Definition at line 60 of file MenuComponents.py.
60 def addDefaultOutput(self):
61 if self.outputProp !=
'':
62 self.addOutput((
"%s_%s"%(self.Alg.
getName(),self.outputProp)))
◆ addInput()
def MenuComponents.AlgNode.addInput |
( |
|
self, |
|
|
|
name |
|
) |
| |
|
inherited |
Reimplemented from MenuComponents.Node.
Definition at line 104 of file MenuComponents.py.
105 inputs = self.readInputList()
107 log.debug(
"Input DH not added in %s: %s already set!", self.Alg.
getName(), name)
109 if self.inputProp !=
'':
110 self.setPar(self.inputProp, name)
112 log.debug(
"no InputProp set for input of %s", self.Alg.
getName())
113 Node.addInput(self, name)
114 return len(self.readInputList())
◆ addOutput()
def MenuComponents.AlgNode.addOutput |
( |
|
self, |
|
|
|
name |
|
) |
| |
|
inherited |
Reimplemented from MenuComponents.Node.
Reimplemented in MenuComponents.HypoAlgNode.
Definition at line 88 of file MenuComponents.py.
88 def addOutput(self, name):
89 outputs = self.readOutputList()
91 log.debug(
"Output DH not added in %s: %s already set!", self.Alg.
getName(), name)
93 if self.outputProp !=
'':
94 self.setPar(self.outputProp, name)
96 log.debug(
"no outputProp set for output of %s", self.Alg.
getName())
97 Node.addOutput(self, name)
◆ getInputList()
def MenuComponents.Node.getInputList |
( |
|
self | ) |
|
|
inherited |
◆ getOutputList()
def MenuComponents.Node.getOutputList |
( |
|
self | ) |
|
|
inherited |
◆ getPar()
def MenuComponents.AlgNode.getPar |
( |
|
self, |
|
|
|
prop |
|
) |
| |
|
inherited |
Definition at line 79 of file MenuComponents.py.
79 def getPar(self, prop):
80 return getattr(self.Alg, prop)
◆ readInputList()
def MenuComponents.AlgNode.readInputList |
( |
|
self | ) |
|
|
inherited |
Definition at line 116 of file MenuComponents.py.
116 def readInputList(self):
117 cval = self.getPar(self.inputProp)
118 return (cval
if isinstance(cval, MutableSequence)
else
119 ([
str(cval)]
if cval
else []))
◆ readOutputList()
def MenuComponents.AlgNode.readOutputList |
( |
|
self | ) |
|
|
inherited |
Definition at line 99 of file MenuComponents.py.
99 def readOutputList(self):
100 cval = self.getPar(self.outputProp)
101 return (cval
if isinstance(cval, MutableSequence)
else
102 ([
str(cval)]
if cval
else []))
◆ resetInput()
def MenuComponents.AlgNode.resetInput |
( |
|
self | ) |
|
|
inherited |
◆ resetOutput()
def MenuComponents.AlgNode.resetOutput |
( |
|
self | ) |
|
|
inherited |
Definition at line 82 of file MenuComponents.py.
82 def resetOutput(self):
83 self.resetPar(self.outputProp)
◆ resetPar()
def MenuComponents.AlgNode.resetPar |
( |
|
self, |
|
|
|
prop |
|
) |
| |
|
inherited |
Definition at line 72 of file MenuComponents.py.
72 def resetPar(self, prop):
73 cval = getattr(self.Alg, prop)
74 if isinstance(cval, MutableSequence):
75 return setattr(self.Alg, prop, [])
77 return setattr(self.Alg, prop,
"")
◆ setPar()
def MenuComponents.AlgNode.setPar |
( |
|
self, |
|
|
|
propname, |
|
|
|
value |
|
) |
| |
|
inherited |
Definition at line 64 of file MenuComponents.py.
64 def setPar(self, propname, value):
65 cval = getattr( self.Alg, propname)
66 if isinstance(cval, MutableSequence):
68 return setattr(self.Alg, propname, cval)
70 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: