Class Lobby

With the introduction of hierarchical knowledge bases it became apparent that we need to have a central location to manage the licenses of the capabilities. Instances of this class serve as such a place. A single instance is automatically created per root knowledge base and then automatically used by all child knowledge bases.

The activation status of an initialized capability can be re-evaluated via the method checkLicense(). The overall activation status can be re-evaluated via the method checkLicenses(). The method getCapabilities() allows querying the currently initialized capa-bilities of the lobby.

It is also possible to activate licenses programmatically. The method activateCapability() does automatically activate a capability over an internet service. If you are behind a firewall, you can also query the install ID of a capability via the method calcInstallID(). You can then use the install ID together with a license key to obtain the license text. The license text can then be stored via the method regLicenseText().

The methods setHint() and setApplication() allow for advanced configuration. The hint can indicate whether the lobby is used in a GUI or non-GUI environment with interaction, or completely without any interaction. The default is without any interaction. The application is needed to be set in an interactive Android environment.

public final class Lobby {
public Lobby(Toolkit k);

public Toolkit getToolkit();

public void checkLicense(Capability c);
public void checkLicenses();
public Capability[] getCapabilities();

public void activateCapability(Capability c, String h);
public String calcInstallID(Capability c);
public void regLicenseText(Capability c, String t);

public void setHint(int h)
public void setApplication(Object c);