def of_tcds(a: TcdsArrangement) -> 'TcdsArrangementPostAct': return TcdsArrangementPostAct( tcds_contents=a.tcds_contents, hds_contents=a.hds_contents, non_hds_contents=a.non_hds_contents, act_result=reduce_optional(lambda x: x, NULL_ACT_RESULT_PRODUCER, a.act_result), pre_population_action=a.pre_population_action, post_population_action=a.post_population_action, )
def main( self, environment: InstructionEnvironmentForPostSdsStep, settings: InstructionSettings, os_services: OsServices, ): def resolve(x: Optional[IntegerSdv]) -> Optional[int]: return x.resolve(environment.symbols).value_of_any_dependency( environment.tcds) value = functional.reduce_optional(resolve, None, self._value) settings.set_timeout(value)
def symbol_usages(self) -> Sequence[SymbolUsage]: return functional.reduce_optional(sdv_structure.get_references, (), self._value)
def _mk_tcds_arrangement_post_act( tcds: Optional[TcdsArrangement]) -> TcdsArrangementPostAct: return reduce_optional(TcdsArrangementPostAct.of_tcds, _NEUTRAL_TCDS_POST_ACT, tcds)
def render_timeout_value(x: Optional[int]) -> str: return functional.reduce_optional(str, TIMEOUT__NONE_TOKEN, x)