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
readonly
This returns a DataflowAnnotation object.
-
#coordinations ⇒ Object
readonly
Retrieve the list of coordinations specific to the dataflow.
-
#dataflow_id ⇒ Object
The unique identifier of the dataflow.
-
#datalinks ⇒ Object
readonly
Retrieve the list of datalinks specific to the dataflow.
-
#processors ⇒ Object
readonly
Retrieve the list of processors specific to the dataflow.
-
#sinks ⇒ Object
readonly
Retrieve the list of sinks specific to the dataflow.
-
#sources ⇒ Object
readonly
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.
145 146 147 148 149 150 151 152 |
# File 'lib/t2flow/model.rb', line 145 def initialize @annotations = DataflowAnnotation.new @processors = [] @datalinks = [] @sources = [] @sinks = [] @coordinations = [] end |
Instance Attribute Details
#annotations ⇒ Object (readonly)
This returns a DataflowAnnotation object.
124 125 126 |
# File 'lib/t2flow/model.rb', line 124 def annotations @annotations end |
#coordinations ⇒ Object (readonly)
Retrieve the list of coordinations specific to the dataflow.
139 140 141 |
# File 'lib/t2flow/model.rb', line 139 def coordinations @coordinations end |
#dataflow_id ⇒ Object
The unique identifier of the dataflow.
142 143 144 |
# File 'lib/t2flow/model.rb', line 142 def dataflow_id @dataflow_id end |
#datalinks ⇒ Object (readonly)
Retrieve the list of datalinks specific to the dataflow.
130 131 132 |
# File 'lib/t2flow/model.rb', line 130 def datalinks @datalinks end |
#processors ⇒ Object (readonly)
Retrieve the list of processors specific to the dataflow.
127 128 129 |
# File 'lib/t2flow/model.rb', line 127 def processors @processors end |
#sinks ⇒ Object (readonly)
Retrieve the list of sinks specific to the dataflow.
136 137 138 |
# File 'lib/t2flow/model.rb', line 136 def sinks @sinks end |
#sources ⇒ Object (readonly)
Retrieve the list of sources specific to the dataflow.
133 134 135 |
# File 'lib/t2flow/model.rb', line 133 def sources @sources end |
Instance Method Details
#beanshells ⇒ Object
Retrieve beanshell processors specific to this dataflow.
155 156 157 |
# File 'lib/t2flow/model.rb', line 155 def beanshells @processors.select { |x| x.type == "beanshell" } end |