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 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 context
      engineNode - The current node being evaluated
      parentEngineNode - The parent node (can be null for the start node)
  • Method Details

    • getCurrentPathPosition

      public de.bsommerfeld.pathetic.api.wrapper.PathPosition getCurrentPathPosition()
      Specified by:
      getCurrentPathPosition in interface de.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
    • getPreviousPathPosition

      public de.bsommerfeld.pathetic.api.wrapper.PathPosition getPreviousPathPosition()
      Specified by:
      getPreviousPathPosition in interface de.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
    • getCurrentNodeDepth

      public int getCurrentNodeDepth()
      Specified by:
      getCurrentNodeDepth in interface de.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
    • getCurrentNodeHeuristicValue

      public double getCurrentNodeHeuristicValue()
      Specified by:
      getCurrentNodeHeuristicValue in interface de.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
    • getPathCostToPreviousPosition

      public double getPathCostToPreviousPosition()
      Specified by:
      getPathCostToPreviousPosition in interface de.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
    • getBaseTransitionCost

      public double getBaseTransitionCost()
      Specified by:
      getBaseTransitionCost in interface de.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext
    • getSearchContext

      public de.bsommerfeld.pathetic.api.pathing.processing.context.SearchContext getSearchContext()
      Specified by:
      getSearchContext in interface de.bsommerfeld.pathetic.api.pathing.processing.context.EvaluationContext