ibspan.tss.agents.vta
Class ViewTransformingAgent

java.lang.Object
  extended by jade.core.Agent
      extended by ibspan.tss.agents.SystemAgent
          extended by ibspan.tss.agents.vta.ViewTransformingAgent
All Implemented Interfaces:
TimerListener, Serializable, Runnable

public final class ViewTransformingAgent
extends SystemAgent

This is class of ViewTransformingAgent formatting pure data into browser-readable form by use of ViewTransformer behaviour. It requires passing reference to properties files describing access to Raccoon server.

Author:
Maciej Gawinecki
See Also:
ViewTransformer, RACCOON_DIR_KEY, RACCOON_URL_KEY, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jade.core.Agent
Agent.Interrupted
 
Field Summary
static String RACCOON_DIR_KEY
          Configuration key for Raccoon storage directory provided in properties file.
static String RACCOON_URL_KEY
          Configuration key for Raccoon URL provided in properties file.
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
ViewTransformingAgent()
          Constructors View Transforming Agent.
 
Method Summary
protected  void activateProperties(Properties conf)
          Activates configuration by processing given properties.
 String getConf_RACCOON_DIR()
          Returns directory in which Raccoon server stores ontology models.
 String getConf_RACCOON_URL()
          Returns URL at which Raccoon server is accessible.
static ServiceDescription getServiceDescription()
          Returns information about the service this agent provides.
protected  void setup()
          Loads configuration from properties file for this agent and passes it to SystemAgent.activateProperties(Properties).
 
Methods inherited from class jade.core.Agent
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAMS, getArguments, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AObject, getProperty, getQueueSize, getState, here, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, removeBehaviour, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setQueueSize, takeDown, waitUntilStarted, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RACCOON_URL_KEY

public static final String RACCOON_URL_KEY
Configuration key for Raccoon URL provided in properties file.

See Also:
Constant Field Values

RACCOON_DIR_KEY

public static final String RACCOON_DIR_KEY
Configuration key for Raccoon storage directory provided in properties file.

See Also:
Constant Field Values

SERVICE_NAME

public static final String SERVICE_NAME
See Also:
Constant Field Values

SERVICE_TYPE

public static final String SERVICE_TYPE
See Also:
Constant Field Values

SERVICE_OWNERSHIP

public static final String SERVICE_OWNERSHIP
See Also:
Constant Field Values
Constructor Detail

ViewTransformingAgent

public ViewTransformingAgent()
Constructors View Transforming Agent.

Method Detail

getConf_RACCOON_URL

public String getConf_RACCOON_URL()
Returns URL at which Raccoon server is accessible.

Returns:
URL of Raccoon server.

getConf_RACCOON_DIR

public String getConf_RACCOON_DIR()
Returns directory in which Raccoon server stores ontology models.

Returns:
storage directory of Raccoon server.

activateProperties

protected void activateProperties(Properties conf)
Description copied from class: SystemAgent
Activates configuration by processing given properties.

Specified by:
activateProperties in class SystemAgent
Parameters:
conf - are properties of the agent.

setup

protected void setup()
Description copied from class: SystemAgent
Loads configuration from properties file for this agent and passes it to 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.

Overrides:
setup in class SystemAgent

getServiceDescription

public static ServiceDescription getServiceDescription()
Returns information about the service this agent provides.

Returns:
service description