Class: T2Flow::Dataflow

Inherits:
Object
  • Object
show all
Defined in:
lib/t2flow/model.rb

Overview

The entities within the Taverna 2 mdoel which contains the different elements of the workflows; processors, sinks, sources, etc…

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDataflow

Creates a new Dataflow object.



90
91
92
93
94
95
96
97
# File 'lib/t2flow/model.rb', line 90

def initialize
  @annotations = DataflowAnnotation.new
  @processors = []
  @datalinks = []
  @sources = []
  @sinks = []
  @coordinations = []
end

Instance Attribute Details

#annotationsObject (readonly)

This returns a DataflowAnnotation object.



69
70
71
# File 'lib/t2flow/model.rb', line 69

def annotations
  @annotations
end

#coordinationsObject (readonly)

Retrieve the list of coordinations specific to the dataflow.



84
85
86
# File 'lib/t2flow/model.rb', line 84

def coordinations
  @coordinations
end

#dataflow_idObject

The unique identifier of the dataflow.



87
88
89
# File 'lib/t2flow/model.rb', line 87

def dataflow_id
  @dataflow_id
end

Retrieve the list of datalinks specific to the dataflow.



75
76
77
# File 'lib/t2flow/model.rb', line 75

def datalinks
  @datalinks
end

#processorsObject (readonly)

Retrieve the list of processors specific to the dataflow.



72
73
74
# File 'lib/t2flow/model.rb', line 72

def processors
  @processors
end

#sinksObject (readonly)

Retrieve the list of sinks specific to the dataflow.



81
82
83
# File 'lib/t2flow/model.rb', line 81

def sinks
  @sinks
end

#sourcesObject (readonly)

Retrieve the list of sources specific to the dataflow.



78
79
80
# File 'lib/t2flow/model.rb', line 78

def sources
  @sources
end

Instance Method Details

#beanshellsObject

Retrieve beanshell processors specific to this dataflow.



100
101
102
# File 'lib/t2flow/model.rb', line 100

def beanshells
  @processors.select { |x| x.type == "beanshell" }
end