|
|
|
|
|
preProcess(self,
_edObject=None)
Writes xml data input in the working dir (if required) Connects a
slot for generating the executive summary after the plugin execution
Connects a slot for checking output data to the finally process
Initialize the base directory Configures the plugin Checks the input
data |
source code
|
|
|
|
tellFinished(self,
_edObject=None)
Tell EDStatus that the plugin has finished, either in success either
in error |
source code
|
|
|
|
checkDataOutput(self,
_edObject=None)
Checks if output data is available, if not issues a warning and sets
an empty XSDataResult as output data Writes xml data output in the
working dir (if required) |
source code
|
|
|
|
synchronize(self)
This method calls EDAction.synchronize and if a time-out occurs an
error message is added to the list of error messages. |
source code
|
|
|
|
|
|
|
|
|
|
getConfig(self)
Gets the Plugin Configuration as a dictionary |
source code
|
|
|
|
setConfig(self,
_dict,
_bLocal=False)
Receives a dictionary (Plugin Configuration) from the application. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
configure(self)
Should be overridden by the Final Plugin If needed This method should
set its proper members attributes from a Plugin configuration Object |
source code
|
|
|
|
|
|
|
checkParameters(self)
Should be overridden by the Final Plugin If needed This method should
check that the data input are consistent |
source code
|
|
|
|
setXSDataInputClass(self,
_xsDataInputClass,
_strDataInputKey=None)
This method should be called in the constructor of the derived
plugins in order to set the XSData type of the input data, e.g. |
source code
|
|
|
|
getXSDataInputClass(self,
_strDataInputKey=None)
Returns the XSData type of the input data. |
source code
|
|
|
|
|
|
|
hasDataInput(self,
_strDataInputKey=None)
Returns True if the plugin has Input Data for a particular key. |
source code
|
|
|
|
|
|
|
|
|
|
setDataOutput(self,
_xsDataOutput,
_strDataOutputKey=None)
Sets the plugin output data for a particular key. |
source code
|
|
|
|
getDataOutput(self,
_strDataOutputKey=None)
Returns the Plugin Output Data |
source code
|
|
|
|
hasDataOutput(self,
_strDataOutputKey=None)
Returns True if the plugin has the specified Output Data |
source code
|
|
|
|
|
|
|
exportDataOutput(self,
_edPlugin=None)
Deprecated Exports the Plugin Output Data to slot |
source code
|
|
|
|
connectExportDataOutput(self,
_oMethod)
Deprecated |
source code
|
|
|
|
generateExecutiveSummary(self,
_edPlugin)
This method, which should be implemented by sub-classes, generates an
executive summary (user-related output summary). |
source code
|
|
|
|
addErrorMessage(self,
_strErrorMessage)
Adds an error message to the error messages list |
source code
|
|
|
|
getErrorMessages(self)
Returns the error messages list OBS! This method is deprecated,
please use getListOfErrorMessages instead. |
source code
|
|
|
|
getListOfErrorMessages(self)
Returns the error messages list |
source code
|
|
|
|
addWarningMessage(self,
_strWarningMessage)
Adds a warning message to the warning messages list |
source code
|
|
|
|
getWarningMessages(self)
Returns the warning messages list OBS! This method is deprecated,
please use getListOfWarningMessages instead. |
source code
|
|
|
|
getListOfWarningMessages(self)
Returns the warning messages list |
source code
|
|
|
|
writeDataInput(self,
_edObject=None)
Writes the input data object(s) into a working dir xml file |
source code
|
|
|
|
writeDataOutput(self,
_edObject=None)
Writes the output data object(s) into a working dir xml file |
source code
|
|
|
|
getBaseName(self)
Returns the plugin base name |
source code
|
|
|
|
setBaseName(self,
_strBaseName)
Sets the plugin base name |
source code
|
|
|
|
createBaseName(self)
Generates the plugin base name: (<prefix>-<object ID>) |
source code
|
|
|
|
compactPluginName(self,
_pluginName)
The prefix is constructed from the plugin name with the following
renaming: EDPlugin -> "" EDPluginExec -> ""
EDPluginControl -> "Control" |
source code
|
|
|
|
setBaseDirectory(self,
_strBaseDirectory)
Sets the plugin base directory |
source code
|
|
|
|
getBaseDirectory(self)
Returns the plugin base directory |
source code
|
|
|
|
setWorkingDirectory(self,
_strWorkingDirectory)
Sets the plugin working directory |
source code
|
|
|
|
getWorkingDirectory(self)
Returns the plugin base directory |
source code
|
|
|
|
checkMandatoryParameters(self,
_xsData,
_strParamName)
Checks that a mandatory parameter exists in the data If not, an error
message is added in the list and the plugin fails |
source code
|
|
|
|
checkImportantParameters(self,
_xsData,
_strParamName)
Checks that a specific parameter exists in the data If not, a warning
message is added in the list |
source code
|
|
|
|
addExecutiveSummaryLine(self,
_strExecutiveSummaryLine)
Add a line to the executive summary string. |
source code
|
|
|
|
addExecutiveSummarySeparator(self,
_strSeparator=None)
Adds a separator to split the executive summary into different parts
Default is a dotted line |
source code
|
|
|
|
getListExecutiveSummaryLines(self)
Returns the executive summary (list of text lines) |
source code
|
|
|
|
verboseScreenExecutiveSummary(self)
Prints the executive summary on the screen |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ERROR(self,
_strErrorMessage)
Uses the overloaded self.error method above. |
source code
|
|
|
Inherited from EDAction.EDAction:
abort,
addExtraTime,
connectFAILURE,
connectFinallyProcess,
connectPostProcess,
connectPreProcess,
connectProcess,
connectSUCCESS,
executeAction,
executeActionSynchronous,
executeKernel,
executeSynchronous,
finallyProcess,
getDefaultTimeOut,
getLogTiming,
getSlotFAILURE,
getSlotSUCCESS,
getTimeOut,
hasTimedOut,
isEnded,
isFailure,
isRunning,
isStarted,
isTimeOut,
postProcess,
process,
run,
setFailure,
setLogTiming,
setTimeOut
Inherited from EDLogging.EDLogging:
ASSERT,
DEBUG,
WARNING,
isVerboseDebug,
log,
screen,
setAllLogLevels,
setLogFileName,
setLogFileOff,
setLogLevel,
setTestOff,
setTestOn,
setVerboseDebugOff,
setVerboseDebugOn,
setVerboseOff,
setVerboseOn,
unitTest,
warning,
writeErrorTrace
Inherited from EDObject.EDObject:
getClassName,
getId,
getRunTime,
getSemaphoreValue,
getTimeEnd,
getTimeInit,
locked,
setTimeEnd,
setTimeInit,
synchronizeOff,
synchronizeOn
Inherited from threading.Thread:
__repr__,
getName,
isAlive,
isDaemon,
is_alive,
join,
setDaemon,
setName,
start
Inherited from threading.Thread (private):
_reset_internal_locks,
_set_daemon,
_set_ident
Inherited from threading._Verbose (private):
_note
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|