GenericBacktrackingTask#
- class GenericBacktrackingTask#
Bases:
Generic
[StateType
,CandidateType
,OptionType
]- __init__()#
Methods
__init__
()apply_option
(candidate, option)- rtype:
None
is_option_allowed
(candidate, option)- rtype:
bool
- rtype:
bool
reset_candidate_to_initial_state
(candidate)- rtype:
None
Attributes
- rtype:
TypeVar
(OptionType
)
- rtype:
TypeVar
(StateType
)
- abstract apply_option(candidate, option)#
- Return type:
None
- abstract property default_option: OptionType#
- Return type:
TypeVar
(OptionType
)
- property get_candidates: list[CandidateType]#
- property get_non_default_options: list[OptionType]#
- abstract is_option_allowed(candidate, option)#
- Return type:
bool
- abstract is_solved()#
- Return type:
bool
- abstract reset_candidate_to_initial_state(candidate)#
- Return type:
None
- property state: StateType#
- Return type:
TypeVar
(StateType
)