A Composite to hold and execute Components
Composite Constructor
| Param: |
|
|---|
Composite Constructor
| Param: |
|
|---|
Methods
| __init__([error, error_message, identifier, ...]) | Composite Constructor |
| add(component) | appends the component to self.components |
| check_rep() | Checks the representation invariant |
| one_call(*args, **kwargs) | |
| remove(component) | Removes the component from the components (if it was there) |
Attributes
| components | The list of components | ||
| logger |
|
appends the component to self.components
| Param: |
|
|---|---|
| Postcondition: | component appended to components |
Checks the representation invariant
| Raise: | ConfigurationError |
|---|
calls the close method on each component
| Postcondition: | comuponents closed and self.components is None |
|---|
Logs the error in bold red
| Param: |
|
|---|
Removes the component from the components (if it was there)
The list of components
| Returns: | A logging object. |
|---|
| Returns: | TimeTracker (default) or CountdownTimer object |
|---|