TransformationPlugin

TransformationPlugin is a class wrapping the supported transformation plugins

class DIRAC.TransformationSystem.Agent.TransformationPlugin.TransformationPlugin(plugin, transClient=None, dataManager=None, fc=None)

Bases: DIRAC.TransformationSystem.Client.PluginBase.PluginBase

A TransformationPlugin object should be instantiated by every transformation.

__init__(plugin, transClient=None, dataManager=None, fc=None)

plugin name has to be passed in: it will then be executed as one of the functions below, e.g. plugin = ‘BySize’ will execute TransformationPlugin(‘BySize’)._BySize()

isOK()

Check if all information is present

run()

this is a wrapper to invoke the plugin (self._%s()” % self.plugin)

setInputData(data)

Set the replica information as data member

setParameters(params)

Need to pass parameters also to self.util

setTransformationFiles(files)

Set the TS files as data member