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.



215
216
217
218
219
220
221
222
# File 'lib/t2flow/model.rb', line 215

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

Instance Attribute Details

#annotationsObject

This returns a DataflowAnnotation object.



191
192
193
# File 'lib/t2flow/model.rb', line 191

def annotations
  @annotations
end

#coordinationsObject

Retrieve the list of coordinations specific to the dataflow.



206
207
208
# File 'lib/t2flow/model.rb', line 206

def coordinations
  @coordinations
end

#dataflow_idObject

The unique identifier of the dataflow.



209
210
211
# File 'lib/t2flow/model.rb', line 209

def dataflow_id
  @dataflow_id
end

Retrieve the list of datalinks specific to the dataflow.



197
198
199
# File 'lib/t2flow/model.rb', line 197

def datalinks
  @datalinks
end

#processorsObject

Retrieve the list of processors specific to the dataflow.



194
195
196
# File 'lib/t2flow/model.rb', line 194

def processors
  @processors
end

#roleObject

The role of the workflow



212
213
214
# File 'lib/t2flow/model.rb', line 212

def role
  @role
end

#sinksObject

Retrieve the list of sinks specific to the dataflow.



203
204
205
# File 'lib/t2flow/model.rb', line 203

def sinks
  @sinks
end

#sourcesObject

Retrieve the list of sources specific to the dataflow.



200
201
202
# File 'lib/t2flow/model.rb', line 200

def sources
  @sources
end

Instance Method Details

#beanshellsObject

Retrieve beanshell processors specific to this dataflow.



229
230
231
# File 'lib/t2flow/model.rb', line 229

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

#nameObject



224
225
226
# File 'lib/t2flow/model.rb', line 224

def name
  @annotations.name
end