Great Circle Based Spatial Model
Types
Represents a location within this spatial model.
Properties
Can be set to adjust computed great circle distance to account for the circuity of the road/rail network, by default 1.0
The default velocity for elements that move within the spatial model
Holds the radius of the earth for calculating great circle distance
Functions
Allows the adding (attaching) of an observer to the observable
Returns true if firstLocation is the same as secondLocation 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. This may or may not imply that the distance between the locations is zero. No assumptions about distance are implied by true.
Returns true if firstElement is the same as secondElement within the underlying spatial model. This is not object reference equality, but rather whether the elements within the underlying spatial model can be considered spatially (equivalent) according to the model. This may or may not imply that the distance between the elements is zero. No assumptions about distance are implied by true.
Returns how many observers are currently attached to the observable
Detaches all the observers from the observable
Allows the deletion (removing) of an observer from the observable
Computes the distance between fromLocation and toLocation based on the spatial model's distance metric
Computes the distance between fromElement and toElement based on the spatial model's distance metric
Returns true if the observer is already attached
Checks if the spatial model contains the supplied element. True indicates that the element is within the spatial model. If the element has already been added to this spatial model then this method should return true
Causes the element to be tracked, held, by the spatial model. The user is responsible for maintaining this list