* ModuleFunction """ from db.domain import DBFunction from core.utils import enum, VistrailsInternalError, all, eprint from core.vistrail.module_param import ModuleParam from core.vistrail.port_spec import PortSpec from itertools import izip import copy import __builtin__ ################################################################################ PipelineElementType = enum('PipelineElementType', ['Module', 'Connection', 'Function', 'Parameter']) ################################################################################ class ModuleFunction(DBFunction): __fields__ = ['name', 'returnType', 'params'] """ Stores a function from a vistrail module """ ########################################################################## # Constructors and copy def __init__(self, *args, **kwargs): DBFunction.__init__(self, *args, **kwargs) if self.name is None: self.name = "" if self.real_id is None:
* ModuleFunction """ from db.domain import DBFunction from core.utils import enum, VistrailsInternalError, all, eprint from core.vistrail.module_param import ModuleParam from core.vistrail.port_spec import PortSpec from itertools import izip import copy import __builtin__ ################################################################################ PipelineElementType = enum("PipelineElementType", ["Module", "Connection", "Function", "Parameter"]) ################################################################################ class ModuleFunction(DBFunction): __fields__ = ["name", "returnType", "params"] """ Stores a function from a vistrail module """ ########################################################################## # Constructors and copy def __init__(self, *args, **kwargs): DBFunction.__init__(self, *args, **kwargs) if self.name is None: self.name = ""
## WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR ## OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ## ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." ## ############################################################################### import __builtin__ from itertools import izip from core.data_structures.bijectivedict import Bidict from core.utils import enum, VistrailsInternalError from db.domain import DBPortSpec ################################################################################ PortEndPoint = enum('PortEndPoint', ['Invalid', 'Source', 'Destination']) ################################################################################ class PortSpec(DBPortSpec): port_type_map = Bidict([('input', 'destination'), ('output', 'source'), ('invalid', 'invalid')]) end_point_map = Bidict([('source', PortEndPoint.Source), ('destination', PortEndPoint.Destination), ('invalid', PortEndPoint.Invalid)]) ########################################################################## # Constructors and copy
* ModuleFunction """ from db.domain import DBFunction from core.utils import enum, VistrailsInternalError, all, eprint from core.vistrail.port import PortEndPoint from core.vistrail.module_param import ModuleParam from itertools import izip import copy import __builtin__ ################################################################################ PipelineElementType = enum('PipelineElementType', ['Module', 'Connection', 'Function', 'Parameter']) ################################################################################ class ModuleFunction(DBFunction): __fields__ = ['name', 'returnType', 'params'] """ Stores a function from a vistrail module """ ########################################################################## # Constructors and copy def __init__(self, *args, **kwargs): DBFunction.__init__(self, *args, **kwargs) if self.name is None: self.name = "" if self.real_id is None: