Class: CPEE::ProcessTransformation::Node

Inherits:
Object
  • Object
show all
Includes:
Container
Defined in:
lib/cpee/processtransformation/structures.rb

Overview

{{{

Direct Known Subclasses

Break

Constant Summary collapse

@@niceid =
-1

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Container

#container?

Constructor Details

#initialize(id, type, label, incoming, outgoing) ⇒ Node

Returns a new instance of Node.



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/cpee/processtransformation/structures.rb', line 47

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

#attributesObject (readonly)

Returns the value of attribute attributes.



45
46
47
# File 'lib/cpee/processtransformation/structures.rb', line 45

def attributes
  @attributes
end

#endpointsObject (readonly)

Returns the value of attribute endpoints.



45
46
47
# File 'lib/cpee/processtransformation/structures.rb', line 45

def endpoints
  @endpoints
end

#idObject (readonly)

Returns the value of attribute id.



44
45
46
# File 'lib/cpee/processtransformation/structures.rb', line 44

def id
  @id
end

#incomingObject

Returns the value of attribute incoming.



46
47
48
# File 'lib/cpee/processtransformation/structures.rb', line 46

def incoming
  @incoming
end

#labelObject (readonly)

Returns the value of attribute label.



44
45
46
# File 'lib/cpee/processtransformation/structures.rb', line 44

def label
  @label
end

#methodsObject (readonly)

Returns the value of attribute methods.



45
46
47
# File 'lib/cpee/processtransformation/structures.rb', line 45

def methods
  @methods
end

#niceidObject (readonly)

Returns the value of attribute niceid.



44
45
46
# File 'lib/cpee/processtransformation/structures.rb', line 44

def niceid
  @niceid
end

#outgoingObject

Returns the value of attribute outgoing.



46
47
48
# File 'lib/cpee/processtransformation/structures.rb', line 46

def outgoing
  @outgoing
end

#parametersObject (readonly)

Returns the value of attribute parameters.



45
46
47
# File 'lib/cpee/processtransformation/structures.rb', line 45

def parameters
  @parameters
end

#scriptObject

Returns the value of attribute script.



46
47
48
# File 'lib/cpee/processtransformation/structures.rb', line 46

def script
  @script
end

#script_idObject

Returns the value of attribute script_id.



46
47
48
# File 'lib/cpee/processtransformation/structures.rb', line 46

def script_id
  @script_id
end

#script_typeObject

Returns the value of attribute script_type.



46
47
48
# File 'lib/cpee/processtransformation/structures.rb', line 46

def script_type
  @script_type
end

#script_varObject

Returns the value of attribute script_var.



46
47
48
# File 'lib/cpee/processtransformation/structures.rb', line 46

def script_var
  @script_var
end

#typeObject

Returns the value of attribute type.



46
47
48
# File 'lib/cpee/processtransformation/structures.rb', line 46

def type
  @type
end