public abstract class OSQLFunctionHeuristicPathFinderAbstract extends OSQLFunctionMathAbstract
Modifier and Type | Field and Description |
---|---|
protected OCommandContext |
context |
protected static float |
MIN |
static String |
PARAM_CUSTOM_HEURISTIC_FORMULA |
static String |
PARAM_D_FACTOR |
static String |
PARAM_DIRECTION |
static String |
PARAM_EDGE_TYPE_NAMES |
static String |
PARAM_EMPTY_IF_MAX_DEPTH |
static String |
PARAM_HEURISTIC_FORMULA |
static String |
PARAM_MAX_DEPTH |
static String |
PARAM_PARALLEL |
static String |
PARAM_TIE_BREAKER |
static String |
PARAM_VERTEX_AXIS_NAMES |
protected String |
paramCustomHeuristicFormula |
protected OVertex |
paramDestinationVertex |
protected double |
paramDFactor |
protected ODirection |
paramDirection |
protected String[] |
paramEdgeTypeNames |
protected Boolean |
paramEmptyIfMaxDepth |
protected HeuristicFormula |
paramHeuristicFormula |
protected long |
paramMaxDepth |
protected Boolean |
paramParallel |
protected OVertex |
paramSourceVertex |
protected Boolean |
paramTieBreaker |
protected String[] |
paramVertexAxisNames |
protected static Random |
rnd |
protected List<OVertex> |
route |
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,
OVertex start,
OVertex goal,
OVertex current,
OVertex parent,
long depth,
double dFactor,
OCommandContext ctx) |
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(OVertex node,
OVertex parent,
OVertex 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(OVertex node,
OVertex parent,
OVertex target,
OCommandContext iContext) |
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<OVertex> |
getNeighbors(OVertex node) |
protected LinkedList<OVertex> |
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 static Random rnd
protected Boolean paramParallel
protected Boolean paramTieBreaker
protected Boolean paramEmptyIfMaxDepth
protected String[] paramEdgeTypeNames
protected String[] paramVertexAxisNames
protected OVertex paramSourceVertex
protected OVertex paramDestinationVertex
protected HeuristicFormula paramHeuristicFormula
protected ODirection paramDirection
protected long paramMaxDepth
protected double paramDFactor
protected String paramCustomHeuristicFormula
protected OCommandContext context
protected static final float MIN
public OSQLFunctionHeuristicPathFinderAbstract(String iName, int iMinParams, int iMaxParams)
protected boolean isVariableEdgeWeight()
protected abstract double getHeuristicCost(OVertex node, OVertex parent, OVertex target, OCommandContext iContext)
protected LinkedList<OVertex> getPath()
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, OVertex start, OVertex goal, OVertex current, OVertex parent, long depth, double dFactor, OCommandContext ctx)
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.