Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.observables.SessionIDObservable Class Reference

Inherits ObservableValue< String >.

List of all members.

Public Member Functions

 SessionIDObservable ()
boolean isInASession ()

Static Public Attributes

static final String NOT_IN_SESSION = "NOT_IN_SESSION"

Detailed Description

Observable containing the ID of the SarosSession in which the local user is currently participating or is currently joining (during an invitation).

If not in an invitation or shared project session the value of this Observable equals SessionIDObservable#NOT_IN_SESSION.

If in a shared project session the value of this Observable is the string representation of a random integer.

Deprecated:
The common usage in Saros is to use this observable as a global variable to perform global state programming which was not intended. Use ISarosSession#getID() instead which will be almost equivalent in most cases.

Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.observables.SessionIDObservable.SessionIDObservable ( )

Member Function Documentation

boolean de.fu_berlin.inf.dpp.observables.SessionIDObservable.isInASession ( )

Member Data Documentation

 All Classes Namespaces Files Functions Variables Enumerations