|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjade.core.Agent
ibspan.tss.agents.SystemAgent
ibspan.tss.agents.sha.SessionHandlingAgent
public final class SessionHandlingAgent
The centerpoint of the system mainly responsible for realizing user requests. It provides the following functionality:
ProxyAgent
, realize them itself (or
delegates PersonalAgent
to do it), requests
ViewTransformingAgent
for transforming results into
browser-readable form and return the result to the ProxyAgent
.
ProfileManagingAgent
for learning purposes.
This functionality requires the following agents to be registrated in DirectoryFacilator before this agent starts working:
ViewTransformingAgent
-- for transforming prepared system
responses,
ProfileManagingAgent
-- for initiliazing new user
profile.
SessionHandlingAgent
creates her representant in the system -- PersonalAgent
,
which will be responsible for realizing her requests until log out action.
ProfileManagingAgent
,
ViewTransformingAgent
,
ProxyAgent
,
PersonalAgent
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class jade.core.Agent |
---|
Agent.Interrupted |
Field Summary | |
---|---|
static String |
SERVICE_NAME
|
static String |
SERVICE_OWNERSHIP
|
static String |
SERVICE_TYPE
|
Fields inherited from class jade.core.Agent |
---|
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN |
Constructor Summary | |
---|---|
SessionHandlingAgent()
Constructs SessionHandlingAgent. |
Method Summary | |
---|---|
protected void |
activateProperties(Properties conf)
Activates configuration by processing given properties. |
HistoryDAO |
getHistoryDAO()
|
ServiceFinder |
getPersonalService()
Returns service finder gathering information about personal agents. |
ServiceFinder |
getProfilingService()
Return service finder gathering information about profile managing services. |
static ServiceDescription |
getServiceDescription()
Returns information about the service this agent provides. |
SessionsMap |
getSessions()
Returns map of sessions this agent is engades with the user. |
TemplatesRegister |
getTemplates()
Return register of templates, which behaviours uses to construct layout of screen returned to the user. |
OntModel |
getTemplatesDBModel()
|
OntModel |
getUMModel()
|
UsersDAO |
getUsersDBInterface()
|
ServiceFinder |
getViewTransformers()
Returns service finder gathering information about view transformers registered in DF. |
protected void |
setup()
Loads configuration from properties file for this agent and passes it to SystemAgent.activateProperties(Properties) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SERVICE_NAME
public static final String SERVICE_TYPE
public static final String SERVICE_OWNERSHIP
Constructor Detail |
---|
public SessionHandlingAgent()
Method Detail |
---|
public HistoryDAO getHistoryDAO()
public OntModel getTemplatesDBModel()
public OntModel getUMModel()
public ServiceFinder getViewTransformers()
public ServiceFinder getPersonalService()
ServiceFinder.getOne(Object)
method.
public ServiceFinder getProfilingService()
public UsersDAO getUsersDBInterface()
public TemplatesRegister getTemplates()
public SessionsMap getSessions()
protected void activateProperties(Properties conf)
SystemAgent
activateProperties
in class SystemAgent
conf
- are properties of the agent.protected void setup()
SystemAgent
SystemAgent.activateProperties(Properties)
. Property file is given as the first
argument for the launched agent. The programmer is encouraged to call
this method in her agent's setup()
method.
setup
in class SystemAgent
public static ServiceDescription getServiceDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |