lib/omf_oml/network.rb in omf_oml-0.9.7 vs lib/omf_oml/network.rb in omf_oml-0.9.8
- old
+ new
@@ -1,9 +1,9 @@
require 'monitor'
require 'json'
require 'set'
-require 'omf_common/lobject'
+require 'omf_base/lobject'
require 'omf_oml'
module OMF::OML
@@ -17,11 +17,11 @@
class SameNameOnUpdateException < Exception; end
# This class represents a network consisting of nodes and links with their respective
# attributes.
#
- class OmlNetwork < OMF::Common::LObject
+ class OmlNetwork < OMF::Base::LObject
include MonitorMixin
@@name2network = {}
# Return a named network
@@ -308,11 +308,11 @@
class NetworkElementAttributeException < Exception; end
# This class represents an abstract network element and shouldn't be used directly.
#
- class NetworkElement < OMF::Common::LObject
+ class NetworkElement < OMF::Base::LObject
attr_reader :name
attr_reader :el_id
attr_reader :attributes
@@ -447,10 +447,10 @@
end
end
if $0 == __FILE__
require 'json'
- include OMF::Common::OML
+ include OMF::Base::OML
nw = OmlNetwork.new
cnt = 3
cnt.times do |i|