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 =
-1
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(id, type, label, incoming, outgoing) ⇒ Node
constructor
A new instance of Node.
Methods included from Container
Constructor Details
#initialize(id, type, label, incoming, outgoing) ⇒ Node
Returns a new instance of Node.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/cpee/processtransformation/structures.rb', line 48 def initialize(id,type,label,incoming,outgoing) @id = id @niceid = (@@niceid += 1) @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.
46 47 48 |
# File 'lib/cpee/processtransformation/structures.rb', line 46 def attributes @attributes end |
#endpoints ⇒ Object (readonly)
Returns the value of attribute endpoints.
46 47 48 |
# File 'lib/cpee/processtransformation/structures.rb', line 46 def endpoints @endpoints end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
45 46 47 |
# File 'lib/cpee/processtransformation/structures.rb', line 45 def id @id end |
#incoming ⇒ Object
Returns the value of attribute incoming.
47 48 49 |
# File 'lib/cpee/processtransformation/structures.rb', line 47 def incoming @incoming end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
45 46 47 |
# File 'lib/cpee/processtransformation/structures.rb', line 45 def label @label end |
#methods ⇒ Object (readonly)
Returns the value of attribute methods.
46 47 48 |
# File 'lib/cpee/processtransformation/structures.rb', line 46 def methods @methods end |
#niceid ⇒ Object (readonly)
Returns the value of attribute niceid.
45 46 47 |
# File 'lib/cpee/processtransformation/structures.rb', line 45 def niceid @niceid end |
#outgoing ⇒ Object
Returns the value of attribute outgoing.
47 48 49 |
# File 'lib/cpee/processtransformation/structures.rb', line 47 def outgoing @outgoing end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
46 47 48 |
# File 'lib/cpee/processtransformation/structures.rb', line 46 def parameters @parameters end |
#script ⇒ Object
Returns the value of attribute script.
47 48 49 |
# File 'lib/cpee/processtransformation/structures.rb', line 47 def script @script end |
#script_id ⇒ Object
Returns the value of attribute script_id.
47 48 49 |
# File 'lib/cpee/processtransformation/structures.rb', line 47 def script_id @script_id end |
#script_type ⇒ Object
Returns the value of attribute script_type.
47 48 49 |
# File 'lib/cpee/processtransformation/structures.rb', line 47 def script_type @script_type end |
#script_var ⇒ Object
Returns the value of attribute script_var.
47 48 49 |
# File 'lib/cpee/processtransformation/structures.rb', line 47 def script_var @script_var end |
#type ⇒ Object
Returns the value of attribute type.
47 48 49 |
# File 'lib/cpee/processtransformation/structures.rb', line 47 def type @type end |