Class: Mormon::OSM::Algorithm::Base
- Inherits:
-
Object
- Object
- Mormon::OSM::Algorithm::Base
- Defined in:
- lib/mormon/osm_router.rb
Instance Method Summary collapse
- #enqueue(*args) ⇒ Object
-
#initialize(router, options = {}) ⇒ Base
constructor
A new instance of Base.
- #route(node_start, node_end, transport) ⇒ Object
Constructor Details
#initialize(router, options = {}) ⇒ Base
Returns a new instance of Base.
5 6 7 8 |
# File 'lib/mormon/osm_router.rb', line 5 def initialize(router, = {}) @router = router @queue = [] end |
Instance Method Details
#enqueue(*args) ⇒ Object
14 15 16 |
# File 'lib/mormon/osm_router.rb', line 14 def enqueue(*args) raise "subclass responsability" end |
#route(node_start, node_end, transport) ⇒ Object
10 11 12 |
# File 'lib/mormon/osm_router.rb', line 10 def route(node_start, node_end, transport) raise "subclass responsability" end |