Class EvaluationContextImpl
java.lang.Object
de.bsommerfeld.pathetic.engine.pathfinder.processing.EvaluationContextImpl
- All Implemented Interfaces:
de.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
public class EvaluationContextImpl
extends Object
implements de.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluationContextImpl(de.bsommerfeld.pathetic.api.pathing.processing.context.SearchContext searchContext, Node engineNode, Node parentEngineNode, de.bsommerfeld.pathetic.api.pathing.heuristic.IHeuristicStrategy heuristicStrategy) Creates a new NodeEvaluationContextImpl with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptiondoubleintdoublede.bsommerfeld.pathetic.api.wrapper.PathPositiondoublede.bsommerfeld.pathetic.api.wrapper.PathPositionde.bsommerfeld.pathetic.api.pathing.processing.context.SearchContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
getEnvironmentContext, getNavigationPointProvider, getPathfinderConfiguration, getSharedData, getStartPathPosition, getTargetPathPosition
-
Constructor Details
-
EvaluationContextImpl
public EvaluationContextImpl(de.bsommerfeld.pathetic.api.pathing.processing.context.SearchContext searchContext, Node engineNode, Node parentEngineNode, de.bsommerfeld.pathetic.api.pathing.heuristic.IHeuristicStrategy heuristicStrategy) Creates a new NodeEvaluationContextImpl with the specified parameters.- Parameters:
searchContext- The search contextengineNode- The current node being evaluatedparentEngineNode- The parent node (can be null for the start node)
-
-
Method Details
-
getCurrentPathPosition
public de.bsommerfeld.pathetic.api.wrapper.PathPosition getCurrentPathPosition()- Specified by:
getCurrentPathPositionin interfacede.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
-
getPreviousPathPosition
public de.bsommerfeld.pathetic.api.wrapper.PathPosition getPreviousPathPosition()- Specified by:
getPreviousPathPositionin interfacede.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
-
getCurrentNodeDepth
public int getCurrentNodeDepth()- Specified by:
getCurrentNodeDepthin interfacede.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
-
getCurrentNodeHeuristicValue
public double getCurrentNodeHeuristicValue()- Specified by:
getCurrentNodeHeuristicValuein interfacede.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
-
getPathCostToPreviousPosition
public double getPathCostToPreviousPosition()- Specified by:
getPathCostToPreviousPositionin interfacede.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
-
getBaseTransitionCost
public double getBaseTransitionCost()- Specified by:
getBaseTransitionCostin interfacede.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
-
getSearchContext
public de.bsommerfeld.pathetic.api.pathing.processing.context.SearchContext getSearchContext()- Specified by:
getSearchContextin interfacede.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
-