Spatial Element
class SpatialElement(val modelElement: ModelElement, initLocation: LocationIfc = modelElement.spatialModel.defaultLocation, aName: String? = null, val observableComponent: ObservableComponent<SpatialElementIfc> = ObservableComponent()) : ObservableIfc<SpatialElementIfc> , SpatialElementIfc
Creates a spatial element associated with the spatial model at the location. A spatial element is something associated with a spatial model that has a location.
Constructors
Link copied to clipboard
constructor(modelElement: ModelElement, initLocation: LocationIfc = modelElement.spatialModel.defaultLocation, aName: String? = null, observableComponent: ObservableComponent<SpatialElementIfc> = ObservableComponent())
Properties
Functions
Link copied to clipboard
Allows the adding (attaching) of an observer to the observable
Link copied to clipboard
Returns how many observers are currently attached to the observable
Link copied to clipboard
Detaches all the observers from the observable
Link copied to clipboard
Allows the deletion (removing) of an observer from the observable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns true if the observer is already attached
Link copied to clipboard