Plugins
[ class tree: Plugins ] [ index: Plugins ] [ all elements ]

Class: ServerTestMainGeotoolsRouting

Source Location: /projects/test_main/plugins/testMainGeotoolsRouting/server/ServerTestMainGeotoolsRouting.php

Class Overview

PluginBase
   |
   --ServerPlugin
      |
      --ClientResponderAdapter
         |
         --ServerRouting
            |
            --ServerGeotoolsRouting
               |
               --ServerTestMainGeotoolsRouting

Example server routing plugin which uses GeoTools


Variables

Methods


Inherited Variables

Inherited Methods

Class: ServerGeotoolsRouting

ServerGeotoolsRouting::computePath()
ServerGeotoolsRouting::convertSteps()
Converts Java array of steps into PHP

Class: ServerRouting

ServerRouting::__construct()
Constructor
ServerRouting::addRoutingResultAttributes()
Implementors may override this method to add routing attributes to the
ServerRouting::computePath()
Computes the shortest path between to nodes
ServerRouting::computeRoutingResult()
Compute a RoutingResult for a path described as an array of stops. This will call ServerRouting::computePath() repeatedly for each (source node, target node) pairs of the path, and merge the resulting RoutingResults togeter.
ServerRouting::convertNodeId()
Plugins may extent this method to convert stop identifiers sent by
ServerRouting::drawGraph()
Plugins should override this method to draw the computated graph object on the map.
ServerRouting::handlePreDrawing()
Result is set in initializeRequest but Outline must be called
ServerRouting::initializeGraph()
Plugins may override this method to do special treatment the very first time a routing computation is done. This will only called the first time the graph is drawn.
ServerRouting::initializeRequest()
ServerRouting::mergeGraph()
When computing a path made of several stops, one graph is generated for each (startNode, endNode) pairs of the path. This method should merge two graphs into another one.
ServerRouting::mergeRoutingResultGraph()
Internal merging of the routing results
ServerRouting::serializeGraph()
Plugins should override this method to serialize the graph model object into a string, sent back to the client. The default implementation returns the object directly.
ServerRouting::unserializeGraph()
Plugins should override this method to unserialize the graph as a string sent by the client to the graph model object.

Class: ClientResponderAdapter

ClientResponderAdapter::handleDrawing()
ClientResponderAdapter::handlePostDrawing()
ClientResponderAdapter::handlePreDrawing()
ClientResponderAdapter::initializeRequest()

Class: ServerPlugin

ServerPlugin::__construct()
Constructor
ServerPlugin::getConfig()
ServerPlugin::getServerContext()
ServerPlugin::initializeConfig()
Initializes plugin configuration
ServerPlugin::useExtendedInit()
ServerPlugin::useExtendedRequest()
ServerPlugin::useExtendedResult()

Class: PluginBase

PluginBase::__construct()
Constructor
PluginBase::account()
Records an accounting message for plugins
PluginBase::getBasePath()
PluginBase::getExtendedName()
PluginBase::getName()
PluginBase::getRequest()
Get plugin's request or result out of MapRequest or MapResult
PluginBase::initialize()
Plugin initialization (can be extended in custom plugins)
PluginBase::initializeConfig()
Initializes plugin
PluginBase::preInitialize()
Plugin pre initialization. In most cases, plugins should use
PluginBase::replacePlugin()
Returns name of parent plugin in case of plugin extension
PluginBase::setBasePath()
PluginBase::setExtendedName()
PluginBase::setName()

Class Details

[line 29]
Example server routing plugin which uses GeoTools



[ Top ]


Class Variables

$log =

[line 34]



Tags:

access:  private

Type:   Logger
Overrides:   Array


[ Top ]



Class Methods


constructor __construct [line 39]

ServerTestMainGeotoolsRouting __construct( )

Constructor



Tags:

access:  public


Overrides ServerRouting::__construct() (Constructor)

[ Top ]

method convertNodeId [line 48]

void convertNodeId( mixed $nodeId)



Tags:

access:  protected
see:  ServerRouting::convertNodeId()


Overrides ServerRouting::convertNodeId() (Plugins may extent this method to convert stop identifiers sent by)

[ Top ]

method drawGraph [line 91]

void drawGraph( mixed $graph)



Tags:

access:  protected
see:  ServerRouting::drawGraph()


Overrides ServerRouting::drawGraph() (Plugins should override this method to draw the computated graph object on the map.)

[ Top ]

method replacePlugin [line 106]

void replacePlugin( )



Tags:

access:  public
see:  PluginBase::replacePlugin()


Overrides PluginBase::replacePlugin() (Returns name of parent plugin in case of plugin extension)

[ Top ]

method stepsToShapes [line 57]

void stepsToShapes( array $steps, array 1)

Converts from an array of Steps to an array of Shapes.



Tags:

access:  private


Parameters:

array   1   array of StyledShape
array   $steps   array of Step

[ Top ]


Documentation generated on Fri, 21 Sep 2007 13:31:07 +0200 by phpDocumentor 1.3.0RC3