cad.simcad.objectserver.factory
Class PathFinderFactory

java.lang.Object
  |
  +--cad.simcad.objectserver.factory.PathFinderFactory

public class PathFinderFactory
extends java.lang.Object

Factor for PathFinder objects

Version:
1.0
Author:
Charles-Philip Bentley

Constructor Summary
PathFinderFactory()
          Creates new PathFinderFactory
 
Method Summary
static APSSPathFinder createAPSSPathFinder(PathFindable pf)
           
static PathFinder createPathFinderTester(PathFindable pf, Path p, AlgoProperties ap)
          Create a PathFinder for testing purpose.
static PathFinder createPathFinderTester(PathFindable pf, PathPlace origin, PathPlace dest, PathUser pu, AlgoProperties ap)
          Create a PathFinder according to the properties given.
static PathFinder createPathFinderTester(PathFindable pf, PathPlace origin, PathPlace dest, PathUser pu, java.util.Properties prop)
          Create a PathFinder according to the properties given.
static PathFinder createProductivePathFinder(PathFindable pf, PathPlace origin, PathPlace dest, PathUser pu)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathFinderFactory

public PathFinderFactory()
Creates new PathFinderFactory

Method Detail

createPathFinderTester

public static PathFinder createPathFinderTester(PathFindable pf,
                                                Path p,
                                                AlgoProperties ap)
Create a PathFinder for testing purpose.

Parameters:
p -
ap -
Pre:
-
Returns:
PathFinder object
Post:
-

createPathFinderTester

public static PathFinder createPathFinderTester(PathFindable pf,
                                                PathPlace origin,
                                                PathPlace dest,
                                                PathUser pu,
                                                AlgoProperties ap)
Create a PathFinder according to the properties given. If null, use the default properties of the AlgoProperties object.

Parameters:
origin - the Origin PathPlace for the Path
dest -
pu -
ap - Propreties for the algorithm
Pre:
Returns:
Post:
-

createPathFinderTester

public static PathFinder createPathFinderTester(PathFindable pf,
                                                PathPlace origin,
                                                PathPlace dest,
                                                PathUser pu,
                                                java.util.Properties prop)
Create a PathFinder according to the properties given. If null, use the default properties of the AlgoProperties Object

Parameters:
origin -
dest -
pu -
prop -
Pre:
-
Returns:
Post:
-

createProductivePathFinder

public static PathFinder createProductivePathFinder(PathFindable pf,
                                                    PathPlace origin,
                                                    PathPlace dest,
                                                    PathUser pu)
Parameters:
origin -
dest -
pu -
Pre:
-
Returns:
Post:
-

createAPSSPathFinder

public static APSSPathFinder createAPSSPathFinder(PathFindable pf)
Pre:
-
Returns:
APSSPathFinder, the PathFinder to be used by the APSS Module

Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be