Changeset 110
- Timestamp:
- 10/20/08 13:29:12 (5 years ago)
- Location:
- Explorator/trunk/lib
- Files:
-
- 2 modified
-
libs.rb (modified) (1 diff)
-
query_builder.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Explorator/trunk/lib/libs.rb
r23 r110 9 9 adapter.title='Explorator' 10 10 11 Application.clear -
Explorator/trunk/lib/query_builder.rb
r86 r110 27 27 if s == nil 28 28 Array.new 29 elsif Application.is_set?(s)30 Application.get(s).resources29 elsif Thread.current[:application].is_set?(s) 30 Thread.current[:application].get(s).resources 31 31 else 32 32 Array.new << s … … 99 99 elsif s.instance_of? Array 100 100 @result = @result | s 101 elsif Application.is_set?(s)101 elsif Thread.current[:application].is_set?(s) 102 102 #returns all set of resources 103 @result = @result | Application.get(s).elements103 @result = @result | Thread.current[:application].get(s).elements 104 104 #Union method, passed as parameter a triple expression 105 105 else … … 121 121 tmp = s 122 122 #Intersection, Intersection and Difference are operation over sets. 123 elsif Application.is_set?(s)123 elsif Thread.current[:application].is_set?(s) 124 124 #returns all set of resources 125 tmp = Application.get(s).elements125 tmp = Thread.current[:application].get(s).elements 126 126 #Intersection method, passed as parameter a triple expression 127 127 else … … 145 145 tmp = s 146 146 #Difference, Intersection and Difference are operation over sets. 147 elsif Application.is_set?(s)147 elsif Thread.current[:application].is_set?(s) 148 148 #returns all set of resources 149 tmp = Application.get(s).elements149 tmp = Thread.current[:application].get(s).elements 150 150 #Difference method, passed as parameter a triple expression 151 151 else
