it.polito.elite.doseWS.agency
Class AnnotationAgent

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

public class AnnotationAgent
extends DOSEAgent

See Also:
Serialized Form

Field Summary
 java.lang.String endpointAnnoWS
           
 java.lang.String serverAnnoWS
           
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
AnnotationAgent()
           
 
Method Summary
 void afterMove()
           
 boolean annotate(java.lang.String doc, java.lang.String docURL)
           
 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

serverAnnoWS

public java.lang.String serverAnnoWS

endpointAnnoWS

public java.lang.String endpointAnnoWS
Constructor Detail

AnnotationAgent

public AnnotationAgent()
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

annotate

public boolean annotate(java.lang.String doc,
                        java.lang.String docURL)