Class: Java::NorsysNetica::Net

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

Instance Method Summary collapse

Instance Method Details

#freeObject



3
4
5
6
7
8
9
# File 'lib/webget_netica/net.rb', line 3

def free()
  begin
    finalize()
    getNodes().free()
  rescue Java::NorsysNetica::NeticaException
  end
end

#pretty_print(q) ⇒ Object



20
21
22
23
24
25
26
27
28
# File 'lib/webget_netica/net.rb', line 20

def pretty_print(q)
  q.group(1) {
   q.text "Net"
   q.breakable
   q.text "Name:"+name
   q.comma_breakable
    q.text "Nodes:#{nodes.size}"
  }
end

#to_sObject



11
12
13
# File 'lib/webget_netica/net.rb', line 11

def to_s
  "Net #{getName()}"
end

#to_ssObject



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

def to_ss
  nodelist = getNodes()
  to_s + "\n" + nodelist.to_ss
end