it.polito.elite.doseWS.agency.behaviours
Class RequestObject

java.lang.Object
  extended byit.polito.elite.doseWS.agency.behaviours.RequestObject

public class RequestObject
extends java.lang.Object

Title: RequestObject

Description: An object used to encapsulate the requests from the WS 'object' world and send it to the 'agent' world in an apposite agent queue. (The agent must enable this feature via setEnabledO2ACommunication method of jade.core.Agent) It provides get/set methods for: storing request and response (via setObject, getObject); phases synchronization (via setReceived, isReceived and setCompleted,isCompleted); specification of Operation type (via setOperation, getOperation). This last features relies on a list of static costants defined in the class which specifies the operation allowed, conceptually mapping them on the operations exported by DoseAgencyWS to external users.

Copyright: Copyright (c) 2004

Company: Politecnico di Torino

Author:
alessio.bosca@polito.it

Field Summary
static int DIE
           
static int INDEX_URI
           
 
Constructor Summary
RequestObject()
           
 
Method Summary
 java.lang.Object getObject()
           
 int getOperation()
           
 boolean isCompleted()
           
 boolean isReceived()
           
 void setCompleted()
           
 void setObject(java.lang.Object o)
           
 void setOperation(int i)
           
 void setReceived()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDEX_URI

public static final int INDEX_URI
See Also:
Constant Field Values

DIE

public static final int DIE
See Also:
Constant Field Values
Constructor Detail

RequestObject

public RequestObject()
Method Detail

setReceived

public void setReceived()

isReceived

public boolean isReceived()

setCompleted

public void setCompleted()

isCompleted

public boolean isCompleted()

setOperation

public void setOperation(int i)

getOperation

public int getOperation()

setObject

public void setObject(java.lang.Object o)

getObject

public java.lang.Object getObject()