AbstractLocation

abstract inner class AbstractLocation(aName: String? = null) : LocationIfc

Represents a location within this spatial model.

Parameters

aName

the name of the location, will be assigned based on ID_id if null

Inheritors

Constructors

Link copied to clipboard
constructor(aName: String? = null)

Properties

Link copied to clipboard
override val id: Int
Link copied to clipboard
override var label: String?
Link copied to clipboard
abstract val model: SpatialModel
Link copied to clipboard
open override val name: String

Functions

Link copied to clipboard
open fun distanceTo(location: LocationIfc): Double

Computes the distance between the current location and location based on the spatial model's distance metric

Link copied to clipboard

Returns true if location is the same as this location within the underlying spatial model. This is not object reference equality, but rather whether the locations within the underlying spatial model can be considered spatially (equivalent) according to the model.