Class: T2Flow::Dataflow
- Inherits:
-
Object
- Object
- T2Flow::Dataflow
- 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
-
#annotations ⇒ Object
This returns a DataflowAnnotation object.
-
#coordinations ⇒ Object
Retrieve the list of coordinations specific to the dataflow.
-
#dataflow_id ⇒ Object
The unique identifier of the dataflow.
-
#datalinks ⇒ Object
Retrieve the list of datalinks specific to the dataflow.
-
#processors ⇒ Object
Retrieve the list of processors specific to the dataflow.
-
#role ⇒ Object
The role of the workflow.
-
#sinks ⇒ Object
Retrieve the list of sinks specific to the dataflow.
-
#sources ⇒ Object
Retrieve the list of sources specific to the dataflow.
Instance Method Summary collapse
-
#beanshells ⇒ Object
Retrieve beanshell processors specific to this dataflow.
-
#initialize ⇒ Dataflow
constructor
Creates a new Dataflow object.
- #name ⇒ Object
Constructor Details
#initialize ⇒ Dataflow
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
#annotations ⇒ Object
This returns a DataflowAnnotation object.
191 192 193 |
# File 'lib/t2flow/model.rb', line 191 def annotations @annotations end |
#coordinations ⇒ Object
Retrieve the list of coordinations specific to the dataflow.
206 207 208 |
# File 'lib/t2flow/model.rb', line 206 def coordinations @coordinations end |
#dataflow_id ⇒ Object
The unique identifier of the dataflow.
209 210 211 |
# File 'lib/t2flow/model.rb', line 209 def dataflow_id @dataflow_id end |
#datalinks ⇒ Object
Retrieve the list of datalinks specific to the dataflow.
197 198 199 |
# File 'lib/t2flow/model.rb', line 197 def datalinks @datalinks end |
#processors ⇒ Object
Retrieve the list of processors specific to the dataflow.
194 195 196 |
# File 'lib/t2flow/model.rb', line 194 def processors @processors end |
#role ⇒ Object
The role of the workflow
212 213 214 |
# File 'lib/t2flow/model.rb', line 212 def role @role end |
#sinks ⇒ Object
Retrieve the list of sinks specific to the dataflow.
203 204 205 |
# File 'lib/t2flow/model.rb', line 203 def sinks @sinks end |
#sources ⇒ Object
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
#beanshells ⇒ Object
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 |
#name ⇒ Object
224 225 226 |
# File 'lib/t2flow/model.rb', line 224 def name @annotations.name end |