saealib.EvaluationApplyStage#
- class saealib.EvaluationApplyStage(*, name='', label='', notation='')[ソース]#
ベースクラス:
StageValidate and apply delivered result rows atomically.
- パラメータ:
name (str)
label (str)
notation (str)
Methods
Initialize base Stage attributes. |
|
Return this stage's structural and direct state-access contract. |
|
Execute this stage and return the updated state. |
|
Render this stage as a LaTeX algorithmic line. |
|
Render this stage as a plain-text algorithmic line. |
Method Details
- EvaluationApplyStage.__init__(*, name='', label='', notation='')#
Initialize base Stage attributes.
- パラメータ:
name (str, optional) -- Override the class-level
name.label (str, optional) -- Override the class-level
label.notation (str, optional) -- Override the class-level
notation.
- 戻り値の型:
None
- EvaluationApplyStage.contract()[ソース]#
Return this stage's structural and direct state-access contract.
- 戻り値の型:
- EvaluationApplyStage.execute(state)[ソース]#
Execute this stage and return the updated state.
- パラメータ:
state (OptimizationState) -- Current optimization state.
- 戻り値:
Updated state.
- 戻り値の型:
OptimizationState
- EvaluationApplyStage.to_pseudocode(*, expand=False, indent=0)#
Render this stage as a LaTeX algorithmic line.
- パラメータ:
expand (bool) -- If True and this stage has sub-stages, recursively expand them.
indent (int) -- Current indentation level (number of
\Stateindent steps).
- 戻り値:
LaTeX algorithmic fragment.
- 戻り値の型:
str
- EvaluationApplyStage.to_text(*, expand=False, indent=0)#
Render this stage as a plain-text algorithmic line.
- パラメータ:
expand (bool)
indent (int)
- 戻り値の型:
str