Properties

Link copied to clipboard
open override val maximumCost: Double = 0.0

The maximum cost of traveling between two cells in a juxtaposition.

Link copied to clipboard
open override val minimumCost: Double = 0.0

The minimum cost of traveling between two cells in a juxtaposition.

Functions

Link copied to clipboard
open operator fun invoke(start: Locatable, end: Locatable): Double

Calculates the cost of traveling between two locatable objects. The cost should be positive and non-negative. Note: If at least on of the locatable objects is a de.jvstvshd.vyreka.core.Movable, only the current location will be considered.

open operator override fun invoke(start: Location, end: Location): Double

Calculates the cost of traveling between two locations. The cost should be positive and non-negative.