Trait

it.unibo.utils.observer

SimpleSource

Related Doc: package observer

Permalink

trait SimpleSource extends Source

the order of notification to observer isn't preserved

Linear Supertypes
Source, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleSource
  2. Source
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type O <: Observer

    Permalink

    observer type, a source can notify a observer class

    observer type, a source can notify a observer class

    Definition Classes
    Source

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def <--(observer: O): SimpleSource.this.type

    Permalink

    fast way to add an observer

    fast way to add an observer

    observer

    want to observe current source

    returns

    the source

    Definition Classes
    Source
  4. final def <--!(observer: O): SimpleSource.this.type

    Permalink
    Definition Classes
    Source
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def attach(observer: O): Boolean

    Permalink

    add an observer to the source

    add an observer to the source

    observer

    want observe this source

    returns

    false if the observer currently observe the source true otherwise

    Definition Classes
    SimpleSourceSource
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  9. def detach(observer: O): Boolean

    Permalink

    remove an observer to the source

    remove an observer to the source

    observer

    want to stop observer this source

    returns

    false if the observer currently doesn't observer the source true otherwise

    Definition Classes
    SimpleSourceSource
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def notify(e: Event): Unit

    Permalink

    notify all the observer

    notify all the observer

    e

    the event generate

    Definition Classes
    Source
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  19. def observers: Iterable[O]

    Permalink

    returns

    the observers attached to current source

    Attributes
    protected
    Definition Classes
    SimpleSourceSource
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Source

Inherited from AnyRef

Inherited from Any

Ungrouped