mannie-taverna-t2flow 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/lib/t2flow/dot.rb +1 -1
- data/lib/t2flow/model.rb +23 -12
- metadata +2 -2
data/README
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
= Taverna[http://taverna.sourceforge.net] 2 Interaction Gem
|
2
2
|
|
3
3
|
Author:: Emmanuel Tagarira
|
4
|
-
Version:: 0.0.
|
4
|
+
Version:: 0.0.4
|
5
5
|
Contact:: mailto:emmanuel.tagarira@student.manchester.ac.uk
|
6
6
|
URL:: http://taverna.sourceforge.net/
|
7
7
|
Licence:: LGPL 3 (See LICENCE or http://www.gnu.org/licenses/lgpl.html)
|
data/lib/t2flow/dot.rb
CHANGED
data/lib/t2flow/model.rb
CHANGED
@@ -15,8 +15,8 @@ module T2Flow # :nodoc:
|
|
15
15
|
@dataflows = []
|
16
16
|
end
|
17
17
|
|
18
|
-
# Retrieve the top
|
19
|
-
def
|
18
|
+
# Retrieve the top level dataflow ie the MAIN (containing) dataflow
|
19
|
+
def main
|
20
20
|
@dataflows[0]
|
21
21
|
end
|
22
22
|
|
@@ -37,8 +37,14 @@ module T2Flow # :nodoc:
|
|
37
37
|
return beanshells
|
38
38
|
end
|
39
39
|
|
40
|
-
# Retrieve
|
40
|
+
# Retrieve the datalinks from the top level of a nested workflow.
|
41
|
+
# If the workflow is not nested, retrieve all datalinks.
|
41
42
|
def datalinks
|
43
|
+
self.main.datalinks
|
44
|
+
end
|
45
|
+
|
46
|
+
# Retrieve ALL the datalinks within a nested workflow
|
47
|
+
def all_datalinks
|
42
48
|
links = []
|
43
49
|
@dataflows.each { |dataflow|
|
44
50
|
dataflow.datalinks.each { |link|
|
@@ -48,15 +54,20 @@ module T2Flow # :nodoc:
|
|
48
54
|
return links
|
49
55
|
end
|
50
56
|
|
51
|
-
# Retrieve the annotations
|
52
|
-
#
|
53
|
-
# retrieve the top-level annotations.
|
57
|
+
# Retrieve the annotations specific to the workflow. This does not return
|
58
|
+
# any annotations from workflows encapsulated within the main workflow.
|
54
59
|
def annotations
|
55
|
-
|
60
|
+
self.main.annotations
|
56
61
|
end
|
57
62
|
|
58
|
-
# Retrieve
|
63
|
+
# Retrieve processors from the top level of a nested workflow.
|
64
|
+
# If the workflow is not nested, retrieve all processors.
|
59
65
|
def processors
|
66
|
+
self.main.processors
|
67
|
+
end
|
68
|
+
|
69
|
+
# Retrieve ALL the processors found in a nested workflow
|
70
|
+
def all_processors
|
60
71
|
procs =[]
|
61
72
|
@dataflows.each { |dataflow|
|
62
73
|
dataflow.processors.each { |proc|
|
@@ -68,7 +79,7 @@ module T2Flow # :nodoc:
|
|
68
79
|
|
69
80
|
# Retrieve the sources(inputs) to the workflow
|
70
81
|
def sources
|
71
|
-
|
82
|
+
self.main.sources
|
72
83
|
end
|
73
84
|
|
74
85
|
# Retrieve ALL the sources(inputs) within the workflow
|
@@ -84,7 +95,7 @@ module T2Flow # :nodoc:
|
|
84
95
|
|
85
96
|
# Retrieve the sinks(outputs) to the workflow
|
86
97
|
def sinks
|
87
|
-
|
98
|
+
self.main.sinks
|
88
99
|
end
|
89
100
|
|
90
101
|
# Retrieve ALL the sinks(outputs) within the workflow
|
@@ -99,8 +110,8 @@ module T2Flow # :nodoc:
|
|
99
110
|
end
|
100
111
|
|
101
112
|
# Retrieve the unique dataflow ID for the top level dataflow.
|
102
|
-
def
|
103
|
-
|
113
|
+
def model_id
|
114
|
+
self.main.dataflow_id
|
104
115
|
end
|
105
116
|
end
|
106
117
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mannie-taverna-t2flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emmanuel Tagarira
|
8
8
|
autorequire: t2flow
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
|
-
date: 2009-08-
|
11
|
+
date: 2009-08-21 00:00:00 -07:00
|
12
12
|
default_executable:
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|