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.



178
179
180
181
182
183
184
185
# File 'lib/t2flow/model.rb', line 178

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

Instance Attribute Details

#annotationsObject

This returns a DataflowAnnotation object.



157
158
159
# File 'lib/t2flow/model.rb', line 157

def annotations
  @annotations
end

#coordinationsObject

Retrieve the list of coordinations specific to the dataflow.



172
173
174
# File 'lib/t2flow/model.rb', line 172

def coordinations
  @coordinations
end

#dataflow_idObject

The unique identifier of the dataflow.



175
176
177
# File 'lib/t2flow/model.rb', line 175

def dataflow_id
  @dataflow_id
end

Retrieve the list of datalinks specific to the dataflow.



163
164
165
# File 'lib/t2flow/model.rb', line 163

def datalinks
  @datalinks
end

#processorsObject

Retrieve the list of processors specific to the dataflow.



160
161
162
# File 'lib/t2flow/model.rb', line 160

def processors
  @processors
end

#sinksObject

Retrieve the list of sinks specific to the dataflow.



169
170
171
# File 'lib/t2flow/model.rb', line 169

def sinks
  @sinks
end

#sourcesObject

Retrieve the list of sources specific to the dataflow.



166
167
168
# File 'lib/t2flow/model.rb', line 166

def sources
  @sources
end

Instance Method Details

#beanshellsObject

Retrieve beanshell processors specific to this dataflow.



188
189
190
# File 'lib/t2flow/model.rb', line 188

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