Class: Disp3D::NodePathDB
- Inherits:
-
Object
- Object
- Disp3D::NodePathDB
- Defined in:
- lib/node/node_collection.rb
Overview
hold path id and node connectivity
Class Method Summary collapse
Class Method Details
.add(path_id, node) ⇒ Object
154 155 156 |
# File 'lib/node/node_collection.rb', line 154 def self.add(path_id, node) return @path_db[path_id] = node end |
.find_by_path_id(path_id) ⇒ Object
158 159 160 |
# File 'lib/node/node_collection.rb', line 158 def self.find_by_path_id(path_id) return @path_db[path_id] end |
.init ⇒ Object
150 151 152 |
# File 'lib/node/node_collection.rb', line 150 def self.init @path_db = Hash.new end |