de.tubs.macs.control
Interface MacsApplication

All Known Implementing Classes:
Whiteboard, Video, Audio, VideoReceiver, VideoSender, ShowSAPStreams, Chat

public interface MacsApplication

This is the interface for a MacsApplication. A MacsApplcation must have a contructors like:

public Application()

Author:
Oliver Eggers

Method Summary
 void exitApplication()
          method to exit and shutdown the application This method MUST always be called bei MacsControl! NEVER ever call this method in the application.
 int getVersionMajor()
          method to return the major version of the application, e.g.
 int getVersionMinor()
          method to return the minor version of the application, e.g.
 java.lang.String getVersionName()
          method to return the version name of the application We'll see later, what we need here...
 boolean initApplication(ApplicationID id, Session session, javax.swing.JComponent display)
          method to initialize the application
 void processSessionEvent(SessionEvent event)
          this is informative (asynchrone).
 boolean startApplication()
          method to start the application
 

Method Detail

initApplication

public boolean initApplication(ApplicationID id,
                               Session session,
                               javax.swing.JComponent display)
method to initialize the application
Parameters:
id - the id of this application
session - the session the application is startet in
display - a JComponent where the application may put it's control elements
Returns:
true, if ok

exitApplication

public void exitApplication()
method to exit and shutdown the application This method MUST always be called bei MacsControl! NEVER ever call this method in the application.


startApplication

public boolean startApplication()
method to start the application
Returns:
true, if ok

processSessionEvent

public void processSessionEvent(SessionEvent event)
this is informative (asynchrone). also contains floor-events (FloorEvent extends SessionEvent)

getVersionMajor

public int getVersionMajor()
method to return the major version of the application, e.g. X for Version X.Y

getVersionMinor

public int getVersionMinor()
method to return the minor version of the application, e.g. Y for Version X.Y

getVersionName

public java.lang.String getVersionName()
method to return the version name of the application We'll see later, what we need here...