Class: T2Flow::Processor
- Inherits:
-
Object
- Object
- T2Flow::Processor
- Defined in:
- lib/t2flow/model/processor.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Hash containing details of the processors configuration.
-
#dataflow_id ⇒ Object
For processors that have type “dataflow”, this is the the reference to the dataflow.
-
#descriptions ⇒ Object
A string containing the description of the processor if available.
-
#inputs ⇒ Object
This is a list of inputs that the processor can take in.
-
#name ⇒ Object
A string containing name of the processor.
-
#outputs ⇒ Object
This is a list of outputs that the processor can produce.
-
#script ⇒ Object
This only has a value in beanshell processors.
-
#semantic_annotation ⇒ Object
Returns the value of attribute semantic_annotation.
-
#type ⇒ Object
A string for the type of processor, e.g.
Instance Method Summary collapse
-
#biomoby_authority_name ⇒ Object
Authority name for the biomoby service.
-
#biomoby_category ⇒ Object
Category for the biomoby service.
-
#biomoby_service_name ⇒ Object
Service name for the biomoby service.
- #description ⇒ Object
-
#endpoint ⇒ Object
For soaplab and biomoby services, this is the endpoint URI.
-
#initialize ⇒ Processor
constructor
A new instance of Processor.
-
#value ⇒ Object
Value for string constants.
-
#wsdl ⇒ Object
For processors of type “arbitrarywsdl”, this is the URI to the location of the wsdl file.
-
#wsdl_operation ⇒ Object
For processors of type “arbitrarywsdl”, this is the operation invoked.
Constructor Details
#initialize ⇒ Processor
Returns a new instance of Processor.
75 76 77 78 |
# File 'lib/t2flow/model/processor.rb', line 75 def initialize @descriptions = [] @configuration = {} end |
Instance Attribute Details
#configuration ⇒ Object
Hash containing details of the processors configuration.
73 74 75 |
# File 'lib/t2flow/model/processor.rb', line 73 def configuration @configuration end |
#dataflow_id ⇒ Object
For processors that have type “dataflow”, this is the the reference to the dataflow. For all other processor types, this is nil.
21 22 23 |
# File 'lib/t2flow/model/processor.rb', line 21 def dataflow_id @dataflow_id end |
#descriptions ⇒ Object
A string containing the description of the processor if available. Returns nil otherwise.
10 11 12 |
# File 'lib/t2flow/model/processor.rb', line 10 def descriptions @descriptions end |
#inputs ⇒ Object
This is a list of inputs that the processor can take in.
28 29 30 |
# File 'lib/t2flow/model/processor.rb', line 28 def inputs @inputs end |
#name ⇒ Object
A string containing name of the processor.
6 7 8 |
# File 'lib/t2flow/model/processor.rb', line 6 def name @name end |
#outputs ⇒ Object
This is a list of outputs that the processor can produce.
31 32 33 |
# File 'lib/t2flow/model/processor.rb', line 31 def outputs @outputs end |
#script ⇒ Object
This only has a value in beanshell processors. This is the actual script embedded with the processor which does all the “work”
25 26 27 |
# File 'lib/t2flow/model/processor.rb', line 25 def script @script end |
#semantic_annotation ⇒ Object
Returns the value of attribute semantic_annotation.
70 71 72 |
# File 'lib/t2flow/model/processor.rb', line 70 def semantic_annotation @semantic_annotation end |
#type ⇒ Object
A string for the type of processor, e.g. beanshell, workflow, webservice, etc…
17 18 19 |
# File 'lib/t2flow/model/processor.rb', line 17 def type @type end |
Instance Method Details
#biomoby_authority_name ⇒ Object
Authority name for the biomoby service.
50 51 52 |
# File 'lib/t2flow/model/processor.rb', line 50 def @configuration[:biomoby_authority_name] end |
#biomoby_category ⇒ Object
Category for the biomoby service.
61 62 63 |
# File 'lib/t2flow/model/processor.rb', line 61 def biomoby_category @configuration[:biomoby_category] end |
#biomoby_service_name ⇒ Object
Service name for the biomoby service. This is not necessarily the same as the processors name.
56 57 58 |
# File 'lib/t2flow/model/processor.rb', line 56 def biomoby_service_name @configuration[:biomoby_service_name] end |
#description ⇒ Object
12 13 14 |
# File 'lib/t2flow/model/processor.rb', line 12 def description @descriptions.first end |
#endpoint ⇒ Object
For soaplab and biomoby services, this is the endpoint URI.
45 46 47 |
# File 'lib/t2flow/model/processor.rb', line 45 def endpoint @configuration[:endpoint] end |
#value ⇒ Object
Value for string constants
66 67 68 |
# File 'lib/t2flow/model/processor.rb', line 66 def value @configuration[:value] end |
#wsdl ⇒ Object
For processors of type “arbitrarywsdl”, this is the URI to the location of the wsdl file.
35 36 37 |
# File 'lib/t2flow/model/processor.rb', line 35 def wsdl @configuration[:wsdl] end |
#wsdl_operation ⇒ Object
For processors of type “arbitrarywsdl”, this is the operation invoked.
40 41 42 |
# File 'lib/t2flow/model/processor.rb', line 40 def wsdl_operation @configuration[:wsdl_operation] end |