[ ABSTRACT CLASS ] - Abstract dependency class.
More...
[ ABSTRACT CLASS ] - Abstract dependency class.
◆ __init__()
def sProcess.dependencyAbs.Dependency.__init__ |
( |
|
self, |
|
|
|
parent = None , |
|
|
|
data = None , |
|
|
|
kwargs |
|
) |
| |
Constructor.
- Parameters
-
parent | [ QObject | None | in ] - Parent. |
data | [ sProcess.dataLib.Data | None | in ] - Data. |
kwargs | [ dict | None | in ] - Keyword arguments. |
- Exceptions
-
- Returns
- None - None.
◆ data()
def sProcess.dependencyAbs.Dependency.data |
( |
|
self | ) |
|
◆ kwargs()
def sProcess.dependencyAbs.Dependency.kwargs |
( |
|
self | ) |
|
Keyword arguments.
- Exceptions
-
- Returns
- dict - Keyword arguments.
◆ name()
def sProcess.dependencyAbs.Dependency.name |
( |
|
self | ) |
|
Name of the dependency.
- Exceptions
-
- Returns
- str - Name.
◆ description()
def sProcess.dependencyAbs.Dependency.description |
( |
|
self | ) |
|
Description about the dependency.
- Exceptions
-
- Returns
- str - Description.
◆ isActive()
def sProcess.dependencyAbs.Dependency.isActive |
( |
|
self | ) |
|
Whether this dependency is active.
- Exceptions
-
- Returns
- bool - Value.
◆ hasFix()
def sProcess.dependencyAbs.Dependency.hasFix |
( |
|
self | ) |
|
Whether this dependency has fix.
- Exceptions
-
- Returns
- bool - Value.
◆ runFixAutomatically()
def sProcess.dependencyAbs.Dependency.runFixAutomatically |
( |
|
self | ) |
|
Whether auto fix should run automatically.
- Exceptions
-
- Returns
- bool - Value.
◆ hasAction()
def sProcess.dependencyAbs.Dependency.hasAction |
( |
|
self | ) |
|
Whether this dependency has action.
- Exceptions
-
- Returns
- bool - Value.
◆ isIgnorable()
def sProcess.dependencyAbs.Dependency.isIgnorable |
( |
|
self | ) |
|
Whether this dependency is ignorable.
- Exceptions
-
- Returns
- bool - Value.
◆ isIgnored()
def sProcess.dependencyAbs.Dependency.isIgnored |
( |
|
self | ) |
|
Whether this dependency is ignored.
- Exceptions
-
- Returns
- bool - Value.
◆ requiresDescriptionWhenIgnored()
def sProcess.dependencyAbs.Dependency.requiresDescriptionWhenIgnored |
( |
|
self | ) |
|
Whether this dependency requires description when ignored.
- Exceptions
-
- Returns
- bool - Value.
◆ failureMessage()
def sProcess.dependencyAbs.Dependency.failureMessage |
( |
|
self | ) |
|
The last failure message that was recorded for this dependency.
- Exceptions
-
- Returns
- str - Message.
◆ isExecuted()
def sProcess.dependencyAbs.Dependency.isExecuted |
( |
|
self | ) |
|
Whether this dependency is executed.
- Exceptions
-
- Returns
- bool - Value.
◆ isSucceeded()
def sProcess.dependencyAbs.Dependency.isSucceeded |
( |
|
self | ) |
|
Whether this dependency succeeded after execution.
- Exceptions
-
- Returns
- bool - Value.
◆ displayAutoIgnoredMessage()
def sProcess.dependencyAbs.Dependency.displayAutoIgnoredMessage |
( |
|
self | ) |
|
Display auto ignored message.
Ignorable dependencies could be ignored by the container if they fail. In such case, this method will be invoked to notify the user.
- Exceptions
-
- Returns
- None - None.
◆ reset()
def sProcess.dependencyAbs.Dependency.reset |
( |
|
self | ) |
|
Reset this dependency.
- Exceptions
-
- Returns
- None - None.
◆ run()
def sProcess.dependencyAbs.Dependency.run |
( |
|
self | ) |
|
Run the dependency.
- Exceptions
-
- Returns
- bool - Result.
◆ runFix()
def sProcess.dependencyAbs.Dependency.runFix |
( |
|
self | ) |
|
Run fix.
- Exceptions
-
- Returns
- bool - Result.
◆ runAction()
def sProcess.dependencyAbs.Dependency.runAction |
( |
|
self | ) |
|
Run action.
- Exceptions
-
NotImplementedError | - If this method is not implemented in child class when _hasAction True. |
- Returns
- None - None.
◆ isActionRunnable()
def sProcess.dependencyAbs.Dependency.isActionRunnable |
( |
|
self | ) |
|
Whether action is runnable for given condition.
This method is provided so GUI can decide whether to show the run action button.
- Exceptions
-
- Returns
- bool - Result.
◆ shouldInitialize()
def sProcess.dependencyAbs.Dependency.shouldInitialize |
( |
|
self | ) |
|
Whether this dependency should be initialized.
Implement this method to prevent child class instances from being initialized by raising sProcess.exceptionLib.DependencyError exception. Method must return True explicitly otherwise.
- Exceptions
-
- Returns
- bool - Result.
◆ MESSAGE_PADDING
int sProcess.dependencyAbs.Dependency.MESSAGE_PADDING = 52 |
|
static |
[ int ] - Message padding.
◆ signalInfoOccurred
sProcess.dependencyAbs.Dependency.signalInfoOccurred = QtCore.Signal(str) |
|
static |
[ Signal ] - Signal emitted by _setInfo method.
◆ signalSuccessOccurred
sProcess.dependencyAbs.Dependency.signalSuccessOccurred = QtCore.Signal(str) |
|
static |
[ Signal ] - Signal emitted by _setSuccess method.
◆ signalWarningOccurred
sProcess.dependencyAbs.Dependency.signalWarningOccurred = QtCore.Signal(str) |
|
static |
[ Signal ] - Signal emitted by _setWarning method.
◆ signalFailureOccurred
sProcess.dependencyAbs.Dependency.signalFailureOccurred = QtCore.Signal(str) |
|
static |
[ Signal ] - Signal emitted by _setFailure method.
The documentation for this class was generated from the following file: