OSQLFunctionAstar
instead@Deprecated 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
Deprecated.
|
protected Set<OrientVertex> |
closedSet
Deprecated.
|
protected Map<OrientVertex,Double> |
fScore
Deprecated.
|
protected Map<OrientVertex,Double> |
gScore
Deprecated.
|
static String |
NAME
Deprecated.
|
protected PriorityQueue<OrientVertex> |
open
Deprecated.
|
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()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
aggregateResults()
Deprecated.
|
LinkedList<OrientVertex> |
execute(Object iThis,
OIdentifiable iCurrentRecord,
Object iCurrentResult,
Object[] iParams,
OCommandContext iContext)
Deprecated.
|
protected double |
getDistance(OrientEdge edge)
Deprecated.
|
protected double |
getDistance(OrientVertex node,
OrientVertex parent,
OrientVertex target)
Deprecated.
|
protected double |
getHeuristicCost(OrientVertex node,
OrientVertex parent,
OrientVertex target)
Deprecated.
|
protected Set<OrientEdge> |
getNeighborEdges(OrientVertex node)
Deprecated.
|
Object |
getResult()
Deprecated.
|
String |
getSyntax()
Deprecated.
|
protected boolean |
isVariableEdgeWeight()
Deprecated.
|
booleanOrDefault, doubleOrDefault, 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, getSingleItem, getSingleProperty, 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)
protected Set<OrientEdge> getNeighborEdges(OrientVertex node)
public String getSyntax()
public Object getResult()
getResult in interface OSQLFunctiongetResult in class OSQLFunctionAbstractprotected double getDistance(OrientVertex node, OrientVertex parent, OrientVertex target)
getDistance in class OSQLFunctionHeuristicPathFinderAbstractprotected double getDistance(OrientEdge edge)
public 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–2024 OrientDB. All rights reserved.