dsg.smart
Interface Session

All Superinterfaces:
ModuleEnv
All Known Implementing Classes:
WorkstationSession

public interface Session
extends ModuleEnv

Info about the environment (IPaq or workstation) we're running on. Provides a proxy object to interface with the local workstation (or remote, if a Session object is received for a remot workstation).


Field Summary
static int ST_IPAQ
          An iPaq
static int ST_SMARTCENTRAL
          The Smart Central computer
static int ST_WEBSERVER
          Smart client running a web application --- one Session object per web session being handled.
static int ST_WORKSTATION
          A Smart Workstation --- has serial connection with iPaq
 
Method Summary
 java.lang.String getStationID()
          ID of the iPaq or workstation on which we are running.
 int getStationRole()
          Type of workstation this is --- iPaq, Standalone, etc.
 UserID getUserID()
          User logged onto this station.
 SmartCentral openSmartCentral()
          Open a connection to Smart Central
 SmartDB openSmartDB()
          Open a connection to the Smart DB
 
Methods inherited from interface dsg.smart.ModuleEnv
addModule, connectModules, removeModule, startModules, stopModules
 

Field Detail

ST_SMARTCENTRAL

public static final int ST_SMARTCENTRAL
The Smart Central computer

See Also:
Constant Field Values

ST_IPAQ

public static final int ST_IPAQ
An iPaq

See Also:
Constant Field Values

ST_WORKSTATION

public static final int ST_WORKSTATION
A Smart Workstation --- has serial connection with iPaq

See Also:
Constant Field Values

ST_WEBSERVER

public static final int ST_WEBSERVER
Smart client running a web application --- one Session object per web session being handled.

See Also:
Constant Field Values
Method Detail

getStationID

public java.lang.String getStationID()
ID of the iPaq or workstation on which we are running.


getUserID

public UserID getUserID()
User logged onto this station.


getStationRole

public int getStationRole()
Type of workstation this is --- iPaq, Standalone, etc.


openSmartDB

public SmartDB openSmartDB()
                    throws SmartException
Open a connection to the Smart DB

Throws:
SmartException

openSmartCentral

public SmartCentral openSmartCentral()
                              throws SmartException
Open a connection to Smart Central

Throws:
SmartException