Class: OMF::OML::NetworkNode

Inherits:
NetworkElement show all
Defined in:
lib/omf_oml/network.rb

Overview

This class represents a network node. Should NOT be created directly, but only through OmlNetwork#create_node method

Instance Attribute Summary

Attributes inherited from NetworkElement

#attributes, #el_id, #name

Instance Method Summary collapse

Methods inherited from NetworkElement

#[], #[]=, #describe, #link?, #update

Constructor Details

#initialize(name, attributes, network) ⇒ NetworkNode

Returns a new instance of NetworkNode.



382
383
384
# File 'lib/omf_oml/network.rb', line 382

def initialize(name, attributes, network)
  super
end

Instance Method Details

#node?Boolean

Returns:

  • (Boolean)


386
387
388
# File 'lib/omf_oml/network.rb', line 386

def node?
  true
end