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 =
{}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Container

#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

#attributesObject (readonly)

Returns the value of attribute attributes.



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

def attributes
  @attributes
end

#endpointsObject (readonly)

Returns the value of attribute endpoints.



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

def endpoints
  @endpoints
end

#idObject (readonly)

Returns the value of attribute id.



42
43
44
# File 'lib/cpee/processtransformation/structures.rb', line 42

def id
  @id
end

#incomingObject

Returns the value of attribute incoming.



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

def incoming
  @incoming
end

#labelObject (readonly)

Returns the value of attribute label.



42
43
44
# File 'lib/cpee/processtransformation/structures.rb', line 42

def label
  @label
end

#methodsObject (readonly)

Returns the value of attribute methods.



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

def methods
  @methods
end

#niceidObject (readonly)

Returns the value of attribute niceid.



42
43
44
# File 'lib/cpee/processtransformation/structures.rb', line 42

def niceid
  @niceid
end

#outgoingObject

Returns the value of attribute outgoing.



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

def outgoing
  @outgoing
end

#parametersObject (readonly)

Returns the value of attribute parameters.



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

def parameters
  @parameters
end

#scriptObject

Returns the value of attribute script.



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

def script
  @script
end

#script_idObject

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_typeObject

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_varObject

Returns the value of attribute script_var.



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

def script_var
  @script_var
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end