it.polito.elite.doseWS.agency
Class FilterAgent

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

public class FilterAgent
extends DOSEAgent

See Also:
Serialized Form

Field Summary
 java.util.HashSet annotators
           
 java.util.HashSet requests
           
static java.lang.String SERVICE
           
 
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
FilterAgent()
           
 
Method Summary
 void afterMove()
           
 void filter(java.lang.String URL)
           
 void handleMessage(jade.lang.acl.ACLMessage msg)
          Description: interpret message and react properly to its content
 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

requests

public java.util.HashSet requests

annotators

public java.util.HashSet annotators
Constructor Detail

FilterAgent

public FilterAgent()
Method Detail

setup

public void setup()

afterMove

public void afterMove()

handleMessage

public void handleMessage(jade.lang.acl.ACLMessage msg)
Description copied from class: DOSEAgent

Description: interpret message and react properly to its content

Overrides:
handleMessage in class DOSEAgent
Parameters:
msg - The message to be read

filter

public void filter(java.lang.String URL)