Quick links: Examples - Files.
Classes: Hierarchy - Index - List - Members.
Packages: Index - base - jni.

Public Member Functions | List of all members
cogitant.base.Observer Interface Reference

Observer. More...

Public Member Functions

void messageAttached ()
 Method called when the observer begins to observe an object. More...
 
void messageDetached ()
 Method called when the observer finishes to observe an object. More...
 
void message (ObserverMessage msg)
 Method called when the observed object notifies its observers. More...
 
boolean wantsMessage (ObserverMessage.Type mt)
 Types of messages the observer wants. More...
 

Detailed Description

Observer.

Member Function Documentation

◆ message()

void cogitant.base.Observer.message ( ObserverMessage  msg)

Method called when the observed object notifies its observers.

◆ messageAttached()

void cogitant.base.Observer.messageAttached ( )

Method called when the observer begins to observe an object.

◆ messageDetached()

void cogitant.base.Observer.messageDetached ( )

Method called when the observer finishes to observe an object.

◆ wantsMessage()

boolean cogitant.base.Observer.wantsMessage ( ObserverMessage.Type  mt)

Types of messages the observer wants.

Parameters
mttype of message.
Returns
true iff the Observer wants messages of this type.
Warning
An instance of Observer has to return allways the same value for a given type.