SpatialModelElement

open class SpatialModelElement(parent: ModelElement, initLocation: LocationIfc, defaultVelocity: RVariableIfc, aName: String? = null) : ProcessModel, SpatialElementIfc, VelocityIfc(source)

Constructors

Link copied to clipboard
constructor(parent: ModelElement, initLocation: LocationIfc, defaultVelocity: RVariableIfc, aName: String? = null)

Properties

Link copied to clipboard
open override var currentLocation: LocationIfc
Link copied to clipboard
open override var initialLocation: LocationIfc
Link copied to clipboard
open override var isMoving: Boolean
Link copied to clipboard
open override val isTracked: Boolean
Link copied to clipboard
open override val modelElement: ModelElement
Link copied to clipboard
Link copied to clipboard
open override val previousLocation: LocationIfc
Link copied to clipboard
open override val spatialID: Int
Link copied to clipboard
open override val spatialName: String
Link copied to clipboard
open override val status: SpatialModel.Status
Link copied to clipboard
open override val velocity: GetValueIfc

A value for the velocity. May be random

Link copied to clipboard

Functions

Link copied to clipboard
open override fun attachObserver(observer: ObserverIfc<SpatialElementIfc>)

Allows the adding (attaching) of an observer to the observable

Link copied to clipboard
open override fun countObservers(): Int

Returns how many observers are currently attached to the observable

Link copied to clipboard
open override fun detachAllObservers()

Detaches all the observers from the observable

Link copied to clipboard
open override fun detachObserver(observer: ObserverIfc<SpatialElementIfc>)

Allows the deletion (removing) of an observer from the observable

Link copied to clipboard
open override fun initializeSpatialElement()
Link copied to clipboard
open override fun isAttached(observer: ObserverIfc<SpatialElementIfc>): Boolean

Returns true if the observer is already attached