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, route
configuredParameters
maxParams, minParams, name
Constructor and Description |
---|
OSQLFunctionAstar()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
aggregateResults()
Deprecated.
A function can make calculation on several records before returning a result.
|
LinkedList<OrientVertex> |
execute(Object iThis,
OIdentifiable iCurrentRecord,
Object iCurrentResult,
Object[] iParams,
OCommandContext iContext)
Deprecated.
Process a record.
|
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.
Only called when function aggregates results after all records have been passed to the
function.
|
String |
getSyntax()
Deprecated.
Returns a convenient SQL String representation of the function.
|
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, stringOrDefault
getClassWithMorePrecision, getContextValue, shouldMergeDistributedResult
config, toString
filterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResult
public 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)
OSQLFunction
iCurrentRecord
- : current recordiCurrentResult
- TODOiParams
- : function parameters, number is ensured to be within minParams and maxParams.iContext
- : object calling this functionprotected Set<OrientEdge> getNeighborEdges(OrientVertex node)
public String getSyntax()
OSQLFunction
Example :
myFunction( param1, param2, [optionalParam3])
This text will be used in exception messages.
public Object getResult()
OSQLFunction
getResult
in interface OSQLFunction
getResult
in class OSQLFunctionAbstract
protected double getDistance(OrientVertex node, OrientVertex parent, OrientVertex target)
getDistance
in class OSQLFunctionHeuristicPathFinderAbstract
protected double getDistance(OrientEdge edge)
public boolean aggregateResults()
OSQLFunction
Example of such function : sum, count, max, min ...
The final result of the aggregation is obtain by calling OSQLFunction.getResult()
aggregateResults
in interface OSQLFunction
aggregateResults
in class OSQLFunctionMathAbstract
protected double getHeuristicCost(OrientVertex node, OrientVertex parent, OrientVertex target)
getHeuristicCost
in class OSQLFunctionHeuristicPathFinderAbstract
protected boolean isVariableEdgeWeight()
isVariableEdgeWeight
in class OSQLFunctionHeuristicPathFinderAbstract
Copyright © 2009–2020 OrientDB. All rights reserved.