Class: CPEE::ProcessTransformation::Node
- Inherits:
-
Object
- Object
- CPEE::ProcessTransformation::Node
- Includes:
- Container
- Defined in:
- lib/cpee/processtransformation/structures.rb
Overview
}}}
Direct Known Subclasses
Constant Summary collapse
- @@niceid =
{}
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#endpoints ⇒ Object
readonly
Returns the value of attribute endpoints.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#incoming ⇒ Object
Returns the value of attribute incoming.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#methods ⇒ Object
readonly
Returns the value of attribute methods.
-
#niceid ⇒ Object
readonly
Returns the value of attribute niceid.
-
#outgoing ⇒ Object
Returns the value of attribute outgoing.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#script ⇒ Object
Returns the value of attribute script.
-
#script_id ⇒ Object
Returns the value of attribute script_id.
-
#script_type ⇒ Object
Returns the value of attribute script_type.
-
#script_var ⇒ Object
Returns the value of attribute script_var.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(context, id, type, label, incoming, outgoing) ⇒ Node
constructor
A new instance of Node.
Methods included from Container
Constructor Details
#initialize(context, id, type, label, incoming, outgoing) ⇒ Node
Returns a new instance of Node.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/cpee/processtransformation/structures.rb', line 45 def initialize(context,id,type,label,incoming,outgoing) @@niceid[context] ||= -1 @niceid = (@@niceid[context] += 1) @id = id @type = type @label = label @endpoints = [] @methods = [] @script = nil @script_type = nil @script_id = nil @script_var = 'result' @parameters = {} @incoming = incoming @outgoing = outgoing @attributes = {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
43 44 45 |
# File 'lib/cpee/processtransformation/structures.rb', line 43 def attributes @attributes end |
#endpoints ⇒ Object (readonly)
Returns the value of attribute endpoints.
43 44 45 |
# File 'lib/cpee/processtransformation/structures.rb', line 43 def endpoints @endpoints end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
42 43 44 |
# File 'lib/cpee/processtransformation/structures.rb', line 42 def id @id end |
#incoming ⇒ Object
Returns the value of attribute incoming.
44 45 46 |
# File 'lib/cpee/processtransformation/structures.rb', line 44 def incoming @incoming end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
42 43 44 |
# File 'lib/cpee/processtransformation/structures.rb', line 42 def label @label end |
#methods ⇒ Object (readonly)
Returns the value of attribute methods.
43 44 45 |
# File 'lib/cpee/processtransformation/structures.rb', line 43 def methods @methods end |
#niceid ⇒ Object (readonly)
Returns the value of attribute niceid.
42 43 44 |
# File 'lib/cpee/processtransformation/structures.rb', line 42 def niceid @niceid end |
#outgoing ⇒ Object
Returns the value of attribute outgoing.
44 45 46 |
# File 'lib/cpee/processtransformation/structures.rb', line 44 def outgoing @outgoing end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
43 44 45 |
# File 'lib/cpee/processtransformation/structures.rb', line 43 def parameters @parameters end |
#script ⇒ Object
Returns the value of attribute script.
44 45 46 |
# File 'lib/cpee/processtransformation/structures.rb', line 44 def script @script end |
#script_id ⇒ Object
Returns the value of attribute script_id.
44 45 46 |
# File 'lib/cpee/processtransformation/structures.rb', line 44 def script_id @script_id end |
#script_type ⇒ Object
Returns the value of attribute script_type.
44 45 46 |
# File 'lib/cpee/processtransformation/structures.rb', line 44 def script_type @script_type end |
#script_var ⇒ Object
Returns the value of attribute script_var.
44 45 46 |
# File 'lib/cpee/processtransformation/structures.rb', line 44 def script_var @script_var end |
#type ⇒ Object
Returns the value of attribute type.
44 45 46 |
# File 'lib/cpee/processtransformation/structures.rb', line 44 def type @type end |