public abstract class OSQLFunctionHeuristicPathFinderAbstract extends OSQLFunctionMathAbstract
configuredParameters
maxParams, minParams, name
Constructor and Description |
---|
OSQLFunctionHeuristicPathFinderAbstract(String iName,
int iMinParams,
int iMaxParams) |
Modifier and Type | Method and Description |
---|---|
protected Boolean |
booleanOrDefault(Object fromObject,
boolean defaultValue) |
protected Double |
doubleOrDefault(Object fromObject,
double defaultValue) |
protected double |
getCustomHeuristicCost(String functionName,
String[] vertextAxisNames,
OrientVertex start,
OrientVertex goal,
OrientVertex current,
OrientVertex parent,
long depth,
double dFactor) |
protected double |
getDiagonalHeuristicCost(double x,
double y,
double gx,
double gy,
double dFactor) |
protected double |
getDiagonalHeuristicCost(String[] axisNames,
Map<String,Double> slist,
Map<String,Double> clist,
Map<String,Double> plist,
Map<String,Double> glist,
long depth,
double dFactor) |
protected abstract double |
getDistance(OrientVertex node,
OrientVertex parent,
OrientVertex target) |
protected double |
getEuclideanHeuristicCost(double x,
double y,
double gx,
double gy,
double dFactor) |
protected double |
getEuclideanHeuristicCost(String[] axisNames,
Map<String,Double> slist,
Map<String,Double> clist,
Map<String,Double> plist,
Map<String,Double> glist,
long depth,
double dFactor) |
protected double |
getEuclideanNoSQRHeuristicCost(double x,
double y,
double gx,
double gy,
double dFactor) |
protected double |
getEuclideanNoSQRHeuristicCost(String[] axisNames,
Map<String,Double> slist,
Map<String,Double> clist,
Map<String,Double> plist,
Map<String,Double> glist,
long depth,
double dFactor) |
protected abstract double |
getHeuristicCost(OrientVertex node,
OrientVertex parent,
OrientVertex target) |
protected double |
getManhatanHeuristicCost(double x,
double y,
double gx,
double gy,
double dFactor) |
protected double |
getManhatanHeuristicCost(String[] axisNames,
Map<String,Double> slist,
Map<String,Double> clist,
Map<String,Double> plist,
Map<String,Double> glist,
long depth,
double dFactor) |
protected double |
getMaxAxisHeuristicCost(double x,
double y,
double gx,
double gy,
double dFactor) |
protected double |
getMaxAxisHeuristicCost(String[] axisNames,
Map<String,Double> slist,
Map<String,Double> clist,
Map<String,Double> plist,
Map<String,Double> glist,
long depth,
double dFactor) |
protected Set<OrientVertex> |
getNeighbors(OrientVertex node) |
protected LinkedList<OrientVertex> |
getPath() |
protected double |
getSimpleHeuristicCost(double x,
double g,
double dFactor) |
protected double |
getTieBreakingHeuristicCost(double x,
double y,
double sx,
double sy,
double gx,
double gy,
double heuristic) |
protected double |
getTieBreakingHeuristicCost(String[] axisNames,
Map<String,Double> slist,
Map<String,Double> clist,
Map<String,Double> plist,
Map<String,Double> glist,
long depth,
double heuristic) |
protected double |
getTieBreakingRandomHeuristicCost(double x,
double y,
double sx,
double sy,
double gx,
double gy,
double heuristic) |
protected Integer |
integerOrDefault(Object fromObject,
int defaultValue) |
protected boolean |
isVariableEdgeWeight() |
protected Long |
longOrDefault(Object fromObject,
long defaultValue) |
protected String[] |
stringArray(Object fromObject) |
protected String |
stringOrDefault(Object fromObject,
String defaultValue) |
aggregateResults, getClassWithMorePrecision, getContextValue, shouldMergeDistributedResult
config, toString
filterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, getResult, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute, getSyntax
public static final String PARAM_DIRECTION
public static final String PARAM_EDGE_TYPE_NAMES
public static final String PARAM_VERTEX_AXIS_NAMES
public static final String PARAM_PARALLEL
public static final String PARAM_MAX_DEPTH
public static final String PARAM_HEURISTIC_FORMULA
public static final String PARAM_CUSTOM_HEURISTIC_FORMULA
public static final String PARAM_D_FACTOR
public static final String PARAM_TIE_BREAKER
public static final String PARAM_EMPTY_IF_MAX_DEPTH
protected OrientBaseGraph db
protected static Random rnd
protected Boolean paramParallel
protected Boolean paramTieBreaker
protected Boolean paramEmptyIfMaxDepth
protected String[] paramEdgeTypeNames
protected String[] paramVertexAxisNames
protected OrientVertex paramSourceVertex
protected OrientVertex paramDestinationVertex
protected HeuristicFormula paramHeuristicFormula
protected com.tinkerpop.blueprints.Direction paramDirection
protected long paramMaxDepth
protected double paramDFactor
protected String paramCustomHeuristicFormula
protected OCommandContext context
protected List<OrientVertex> route
protected static final float MIN
public OSQLFunctionHeuristicPathFinderAbstract(String iName, int iMinParams, int iMaxParams)
protected boolean isVariableEdgeWeight()
protected abstract double getDistance(OrientVertex node, OrientVertex parent, OrientVertex target)
protected abstract double getHeuristicCost(OrientVertex node, OrientVertex parent, OrientVertex target)
protected LinkedList<OrientVertex> getPath()
protected Set<OrientVertex> getNeighbors(OrientVertex node)
protected double getSimpleHeuristicCost(double x, double g, double dFactor)
protected double getManhatanHeuristicCost(double x, double y, double gx, double gy, double dFactor)
protected double getMaxAxisHeuristicCost(double x, double y, double gx, double gy, double dFactor)
protected double getDiagonalHeuristicCost(double x, double y, double gx, double gy, double dFactor)
protected double getEuclideanHeuristicCost(double x, double y, double gx, double gy, double dFactor)
protected double getEuclideanNoSQRHeuristicCost(double x, double y, double gx, double gy, double dFactor)
protected double getCustomHeuristicCost(String functionName, String[] vertextAxisNames, OrientVertex start, OrientVertex goal, OrientVertex current, OrientVertex parent, long depth, double dFactor)
protected double getTieBreakingHeuristicCost(double x, double y, double sx, double sy, double gx, double gy, double heuristic)
protected double getTieBreakingRandomHeuristicCost(double x, double y, double sx, double sy, double gx, double gy, double heuristic)
protected double getManhatanHeuristicCost(String[] axisNames, Map<String,Double> slist, Map<String,Double> clist, Map<String,Double> plist, Map<String,Double> glist, long depth, double dFactor)
protected double getMaxAxisHeuristicCost(String[] axisNames, Map<String,Double> slist, Map<String,Double> clist, Map<String,Double> plist, Map<String,Double> glist, long depth, double dFactor)
protected double getDiagonalHeuristicCost(String[] axisNames, Map<String,Double> slist, Map<String,Double> clist, Map<String,Double> plist, Map<String,Double> glist, long depth, double dFactor)
protected double getEuclideanHeuristicCost(String[] axisNames, Map<String,Double> slist, Map<String,Double> clist, Map<String,Double> plist, Map<String,Double> glist, long depth, double dFactor)
protected double getEuclideanNoSQRHeuristicCost(String[] axisNames, Map<String,Double> slist, Map<String,Double> clist, Map<String,Double> plist, Map<String,Double> glist, long depth, double dFactor)
protected double getTieBreakingHeuristicCost(String[] axisNames, Map<String,Double> slist, Map<String,Double> clist, Map<String,Double> plist, Map<String,Double> glist, long depth, double heuristic)
Copyright © 2009–2020 OrientDB. All rights reserved.