All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webapp.js.Observable.mjs Maven / Gradle / Ivy

Go to download

Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1 Query and Update.

The newest version!
export class Observable {
  constructor() {
      this.observers = new Set();
  }

  addObserver(o) {
      if (! this.observers.has(o)) {
          this.observers.add(o);
      }
  }

  notififyObservers() {
      this.observers.forEach(
          o => o.update( this, undefined)
      )
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy