Class: Java::NorsysNetica::NodeList

Inherits:
Object
  • Object
show all
Defined in:
lib/webget_netica/node_list.rb

Instance Method Summary collapse

Instance Method Details

#freeObject



7
8
9
10
11
12
13
# File 'lib/webget_netica/node_list.rb', line 7

def free()
  begin
    finalize()
    nodes.each{|n| n==nil or n.free() }
  rescue Java::NorsysNetica::NeticaException
  end
end

#getNameObject



15
16
17
# File 'lib/webget_netica/node_list.rb', line 15

def getName()
 ""
end

#nodesObject



3
4
5
# File 'lib/webget_netica/node_list.rb', line 3

def nodes()
  return (0...size).map{|i| getNode(i) }
end

#to_ssObject



19
20
21
# File 'lib/webget_netica/node_list.rb', line 19

def to_ss
  to_s + "\n" + nodes.map{|n| n.to_ss}.join("\n")
end