
public class OSQLFunctionAstar extends OSQLFunctionHeuristicPathFinderAbstract
The first parameter is source record. The second parameter is destination record. The third parameter is a name of property that represents 'weight' and fourth represnts the map of options.
If property is not defined in edge or is null, distance between vertexes are 0 .
| Modifier and Type | Field and Description |
|---|---|
protected Map<OrientVertex,OrientVertex> |
cameFrom |
protected Set<OrientVertex> |
closedSet |
protected Map<OrientVertex,Double> |
fScore |
protected Map<OrientVertex,Double> |
gScore |
static String |
NAME |
protected PriorityQueue<OrientVertex> |
open |
context, db, MIN, PARAM_CUSTOM_HEURISTIC_FORMULA, PARAM_D_FACTOR, PARAM_DIRECTION, PARAM_EDGE_TYPE_NAMES, PARAM_EMPTY_IF_MAX_DEPTH, PARAM_HEURISTIC_FORMULA, PARAM_MAX_DEPTH, PARAM_PARALLEL, PARAM_TIE_BREAKER, PARAM_VERTEX_AXIS_NAMES, paramCustomHeuristicFormula, paramDestinationVertex, paramDFactor, paramDirection, paramEdgeTypeNames, paramEmptyIfMaxDepth, paramHeuristicFormula, paramMaxDepth, paramParallel, paramSourceVertex, paramTieBreaker, paramVertexAxisNames, rnd, routeconfiguredParametersmaxParams, minParams, name| Constructor and Description |
|---|
OSQLFunctionAstar() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
aggregateResults() |
LinkedList<OrientVertex> |
execute(Object iThis,
OIdentifiable iCurrentRecord,
Object iCurrentResult,
Object[] iParams,
OCommandContext iContext) |
protected double |
getDistance(OrientVertex node,
OrientVertex parent,
OrientVertex target) |
protected double |
getHeuristicCost(OrientVertex node,
OrientVertex parent,
OrientVertex target) |
Object |
getResult() |
String |
getSyntax() |
protected boolean |
isVariableEdgeWeight() |
booleanOrDefault, doubleOrDefault, gcdist, getCustomHeuristicCost, getDiagonalHeuristicCost, getDiagonalHeuristicCost, getEuclideanHeuristicCost, getEuclideanHeuristicCost, getEuclideanNoSQRHeuristicCost, getEuclideanNoSQRHeuristicCost, getManhatanHeuristicCost, getManhatanHeuristicCost, getMaxAxisHeuristicCost, getMaxAxisHeuristicCost, getNeighbors, getPath, getSimpleHeuristicCost, getTieBreakingHeuristicCost, getTieBreakingHeuristicCost, getTieBreakingRandomHeuristicCost, integerOrDefault, longOrDefault, stringArray, stringOrDefaultgetClassWithMorePrecision, getContextValue, shouldMergeDistributedResultconfig, toStringfilterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, mergeDistributedResult, returnDistributedResult, setResultpublic static final String NAME
protected Set<OrientVertex> closedSet
protected Map<OrientVertex,OrientVertex> cameFrom
protected Map<OrientVertex,Double> gScore
protected Map<OrientVertex,Double> fScore
protected PriorityQueue<OrientVertex> open
public LinkedList<OrientVertex> execute(Object iThis, OIdentifiable iCurrentRecord, Object iCurrentResult, Object[] iParams, OCommandContext iContext)
public String getSyntax()
public Object getResult()
getResult in interface OSQLFunctiongetResult in class OSQLFunctionAbstractprotected double getDistance(OrientVertex node, OrientVertex parent, OrientVertex target)
getDistance in class OSQLFunctionHeuristicPathFinderAbstractpublic boolean aggregateResults()
aggregateResults in interface OSQLFunctionaggregateResults in class OSQLFunctionMathAbstractprotected double getHeuristicCost(OrientVertex node, OrientVertex parent, OrientVertex target)
getHeuristicCost in class OSQLFunctionHeuristicPathFinderAbstractprotected boolean isVariableEdgeWeight()
isVariableEdgeWeight in class OSQLFunctionHeuristicPathFinderAbstractCopyright © 2009–2016 OrientDB. All rights reserved.