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.
-
#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.
Constructor Details
#initialize ⇒ Dataflow
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
#annotations ⇒ Object
This returns a DataflowAnnotation object.
157 158 159 |
# File 'lib/t2flow/model.rb', line 157 def annotations @annotations end |
#coordinations ⇒ Object
Retrieve the list of coordinations specific to the dataflow.
172 173 174 |
# File 'lib/t2flow/model.rb', line 172 def coordinations @coordinations end |
#dataflow_id ⇒ Object
The unique identifier of the dataflow.
175 176 177 |
# File 'lib/t2flow/model.rb', line 175 def dataflow_id @dataflow_id end |
#datalinks ⇒ Object
Retrieve the list of datalinks specific to the dataflow.
163 164 165 |
# File 'lib/t2flow/model.rb', line 163 def datalinks @datalinks end |
#processors ⇒ Object
Retrieve the list of processors specific to the dataflow.
160 161 162 |
# File 'lib/t2flow/model.rb', line 160 def processors @processors end |
#sinks ⇒ Object
Retrieve the list of sinks specific to the dataflow.
169 170 171 |
# File 'lib/t2flow/model.rb', line 169 def sinks @sinks end |
#sources ⇒ Object
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
#beanshells ⇒ Object
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 |