Design Pattern Examples
Overview of object-oriented design patterns
state_class.py
Go to the documentation of this file.
1
6
7
from
._state_class_private
import
StateContext_ClassImpl
8
9
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11
# State context definition
12
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14
15
16
30
class
StateContext_Class
:
31
32
33
def
__init__
(self) -> None:
34
self.
_stateContextimpl
=
StateContext_ClassImpl
()
35
36
38
39
#--------------------------------------------------------------------
40
# StateContext_Class public entry points.
41
#--------------------------------------------------------------------
42
43
50
def
RemoveComments
(self, text : str) -> str:
51
return
self.
_stateContextimpl
.
RemoveComments
(text)
DesignPatternExamples_python.state._state_class_private.StateContext_ClassImpl
Implementation of the state machine.
Definition:
_state_class_private.py:593
DesignPatternExamples_python.state.state_class.StateContext_Class
Represents the State Machine to the application.
Definition:
state_class.py:30
DesignPatternExamples_python.state.state_class.StateContext_Class._stateContextimpl
_stateContextimpl
The actual implementation.
Definition:
state_class.py:34
DesignPatternExamples_python.state.state_class.StateContext_Class.RemoveComments
str RemoveComments(self, str text)
Entry point for callers to filter text.
Definition:
state_class.py:50
DesignPatternExamples_python.state.state_class.StateContext_Class.__init__
None __init__(self)
Constructor.
Definition:
state_class.py:33
python
DesignPatternExamples_python
state
state_class.py
Generated on Tue Aug 29 2023 19:47:44 for Design Pattern Examples by
1.9.6