it.polito.elite.doseWS.agency
Class AgencyManager

java.lang.Object
  extended byjade.core.Agent
      extended byit.polito.elite.doseWS.agency.DOSEAgent
          extended byit.polito.elite.doseWS.agency.AgencyManager
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable, jade.util.leap.Serializable, jade.core.TimerListener

public class AgencyManager
extends DOSEAgent

Title: AgencyManager

Description: The agent delegated to manage the whole agency. Listens from WS "object world" requests via a ListenObjectsBehaviour. It starts up the WS and the remote containers. It creates the rest of the agents, kills not respondings and instances new ones. Monitors the knowledge base sunken in the DB manged by the AnnotationRepository WS.

Copyright: Copyright (c) 2004

Company: Politecnico di Torino

Author:
Alessio Bosca
See Also:
Serialized Form

Field Summary
 java.util.HashSet Annotators
           
 java.util.HashSet Filters
           
 java.util.Hashtable PendingEmployees
           
static java.lang.String SERVICE
           
 java.util.HashSet SynsetManagers
           
 
Fields inherited from class jade.core.Agent
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_TRANSIT, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN
 
Constructor Summary
AgencyManager()
           
 
Method Summary
 java.lang.String getAnnotationEP()
          Tells the Annotation WS endpoint for this platform
 void handleMessage(jade.lang.acl.ACLMessage msg)
          Overrides the same method of DOSEAgent.
 boolean indexURI(java.lang.String URI)
          Issues the indexing of a document, given its URL, to the agency
 void log(java.lang.String description)
          Logs an event
 void setup()
           
 
Methods inherited from class jade.core.Agent
addBehaviour, blockingReceive, blockingReceive, blockingReceive, blockingReceive, doActivate, doClone, doDelete, doMove, doStart, doSuspend, doTimeOut, doWait, doWait, doWake, extractPassword, extractUsername, getAID, getAMS, getAuthority, getCertificateFolder, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getLocalName, getName, getO2AObject, getPrincipal, getProperty, getQueueSize, getState, here, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, read, read, receive, receive, removeBehaviour, restartLater, restore, run, send, setArguments, setEnabledO2ACommunication, setOwnership, setPrincipal, setQueueSize, waitUntilStarted, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE

public static final java.lang.String SERVICE
See Also:
Constant Field Values

Filters

public java.util.HashSet Filters

Annotators

public java.util.HashSet Annotators

SynsetManagers

public java.util.HashSet SynsetManagers

PendingEmployees

public java.util.Hashtable PendingEmployees
Constructor Detail

AgencyManager

public AgencyManager()
Method Detail

setup

public void setup()

handleMessage

public void handleMessage(jade.lang.acl.ACLMessage msg)
Overrides the same method of DOSEAgent. Handles an incoming ACLMessage from the agency

Overrides:
handleMessage in class DOSEAgent
Parameters:
msg - Incoming Message

indexURI

public boolean indexURI(java.lang.String URI)
Issues the indexing of a document, given its URL, to the agency

Parameters:
URI - document URL
Returns:
true on success, false otherwise

log

public void log(java.lang.String description)
Logs an event

Parameters:
description - String that describes the event

getAnnotationEP

public java.lang.String getAnnotationEP()
Tells the Annotation WS endpoint for this platform

Returns:
A String representing the Annotation WS EndPoint