edu.washington.cs.supple.net.server
Class ApplicationInfo

java.lang.Object
  extended byedu.washington.cs.supple.net.server.ApplicationInfo

public class ApplicationInfo
extends java.lang.Object

ApplicationInfo holds data about served applications...

Author:
dbc1

Constructor Summary
ApplicationInfo()
          Default Constructor
ApplicationInfo(java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String className)
          Constructor.
ApplicationInfo(java.lang.String name, java.lang.String displayName, java.lang.String description, SuppleApplication application)
          Constructor.
 
Method Summary
 void addSession(java.lang.Long id)
           
 SuppleApplication getApplication()
          Get the application.
 java.lang.String getClassName()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.lang.String getName()
           
 int getNumberOfSessions()
           
 boolean isEnabled()
          Tells if the application is enabled.
 boolean isLoaded()
          Tells if the application is loaded.
 void removeSession(java.lang.Long id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationInfo

public ApplicationInfo()
Default Constructor


ApplicationInfo

public ApplicationInfo(java.lang.String name,
                       java.lang.String displayName,
                       java.lang.String description,
                       java.lang.String className)
Constructor.

Parameters:
displayName -
description -
className -

ApplicationInfo

public ApplicationInfo(java.lang.String name,
                       java.lang.String displayName,
                       java.lang.String description,
                       SuppleApplication application)
Constructor.

Parameters:
displayName -
description -
Method Detail

getClassName

public java.lang.String getClassName()
Returns:
the class name associated with this application

addSession

public void addSession(java.lang.Long id)
Parameters:
id - the id of the session to add.

removeSession

public void removeSession(java.lang.Long id)
Parameters:
id - the id of the session to remove.

getApplication

public SuppleApplication getApplication()
                                 throws java.lang.Exception
Get the application.

Returns:
Throws:
java.lang.Exception

isLoaded

public boolean isLoaded()
Tells if the application is loaded.

Returns:

isEnabled

public boolean isEnabled()
Tells if the application is enabled.

Returns:

getDisplayName

public java.lang.String getDisplayName()
Returns:
the display name

getDescription

public java.lang.String getDescription()
Returns:
the description

getName

public java.lang.String getName()
Returns:
the name of the application

getNumberOfSessions

public int getNumberOfSessions()
Returns:
the number of open sessions.