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.



388
389
390
# File 'lib/omf_oml/network.rb', line 388

def initialize(name, attributes, network)
  super
end

Instance Method Details

#node?Boolean

Returns:

  • (Boolean)


392
393
394
# File 'lib/omf_oml/network.rb', line 392

def node?
  true
end