Class Giscuit_Db_Table_LayerRouting

Description

Class for routing table

  • copyright: Copyright (c) 2012 VEC

Located in /Db/Table/LayerRouting.php (line 32)

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_LayerRouting
Variable Summary
 static array $algorithmNames
 string $_name
 string $_primary
Method Summary
 static getPath (Zend_Db_Table $table, array $startEdge, array $endEdge, integer $algorithm, [bool $dir = false], [bool $rc = false], [string $costCoef = ''], [string $reverseCostCoef = '']) array
 static nearestEdge (Zend_Db_Table $table, float $x, float $y) array
 static orderEdgesByTsp (Zend_Db_Table $table, array $edges) array
Variables
static array $algorithmNames = array(
1 => 'shortestPathDijkstra',
2 => 'shortestPathAStar',
3 => 'shortestPathShootingStar',

4 => 'travelingSalesmanDijkstra' ,
5 => 'travelingSalesmanAStar' ,
)
(line 53)

Algorithm names

  • access: public
string $_name = 'layer_routing' (line 46)

Table name

  • access: protected
string $_primary = 'id' (line 39)

Table primary key name

  • access: protected

Redefinition of:
Giscuit_Db_Table_Abstract::$_primary
Table primary key name
Methods
static getPath (line 134)

Get routing path

  • access: public
array getPath (Zend_Db_Table $table, array $startEdge, array $endEdge, integer $algorithm, [bool $dir = false], [bool $rc = false], [string $costCoef = ''], [string $reverseCostCoef = ''])
  • Zend_Db_Table $table
  • array $startEdge: Starting edge
  • array $endEdge: Ending edge
  • integer $algorithm: Routing aglorithm:
    • 1 - shortest_path
    • 2 - shortest_path_astar
    • 3 - shortest_path_shooting_star
    • 3 - shortest_path_shooting_star
  • bool $dir: Is the grapth directed
  • bool $rc: Is the reserve cost calculated
  • string $costCoef: Cost coefficient column name
  • string $reverseCostCoef: Reverse cost coefficient column name
static nearestEdge (line 70)

Fetch the nearest edge

  • access: public
array nearestEdge (Zend_Db_Table $table, float $x, float $y)
  • Zend_Db_Table $table
  • float $x: North coordinate
  • float $y: East coordinate
static orderEdgesByTsp (line 399)

Order edges using traveling salesman problem algorithm

  • access: public
array orderEdgesByTsp (Zend_Db_Table $table, array $edges)
  • Zend_Db_Table $table
  • array $edges: Edges

Inherited Methods

Inherited From Giscuit_Db_Table_Abstract

 Giscuit_Db_Table_Abstract::__construct()
 Giscuit_Db_Table_Abstract::count()
 Giscuit_Db_Table_Abstract::getPrimaryKey()
 Giscuit_Db_Table_Abstract::joinMultilangField()
 Giscuit_Db_Table_Abstract::moveItem()
 Giscuit_Db_Table_Abstract::whereActive()
 Giscuit_Db_Table_Abstract::whereCurrentUser()
 Giscuit_Db_Table_Abstract::whereId()

Documentation generated on Wed, 23 Jan 2013 15:54:43 +0000 by phpDocumentor 1.4.3