Overview  Package   Class  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

sajas.proto
Class SubscriptionResponder.Subscription
java.lang.Object
  sajas.proto.SubscriptionResponder.Subscription
Enclosing class:
SubscriptionResponder

public static class SubscriptionResponder.Subscription
extends Object
Inner calss Subscription

This class represents a subscription. When a notification has to be sent to a subscribed agent the notification message should not be directly sent to the subscribed agent, but should be passed to the Subscription object representing the subscription of that agent by means of its notify() method. This automatically handles sequencing and protocol fields appropriately. Subscription objects must be created by means of the createSubscription() method.


Method Summary
void
close()
          This method removes the current Subscription object from the SubscriptionResponder internal tables.
boolean
equals(Object obj)
jade.lang.acl.ACLMessage
getMessage()
          Retrieve the ACL message with which this subscription object was created.
int
hashCode()
void
notify(jade.lang.acl.ACLMessage notification)
          This method allows sending back a notification message to the subscribed agent associated to this Subscription object.
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Method Detail
getMessage
public jade.lang.acl.ACLMessage getMessage()
Retrieve the ACL message with which this subscription object was created.
Returns:
the subscription message corresponding to this Subscription

notify
public void notify(jade.lang.acl.ACLMessage notification)
This method allows sending back a notification message to the subscribed agent associated to this Subscription object. The user should call this method, instead of directly using the send() method of the Agent class, as it automatically handles sequencing and protocol fields appropriately.

close
public void close()
This method removes the current Subscription object from the SubscriptionResponder internal tables.

equals
public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode
public int hashCode()
Overrides:
hashCode in class Object

Overview  Package   Class  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Java API documentation generated with DocFlex/Doclet 1.6.1 using JavadocPro template set.
DocFlex/Doclet is both a multi-format Javadoc doclet and a free edition of DocFlex/Javadoc, which is a template-driven programming tool for rapid development of any Javadoc-based Java API documentation generators (i.e. doclets). If you need to customize your Javadoc without writing a full-blown doclet from scratch, DocFlex/Javadoc may be the only tool able to help you! Find out more at www.docflex.com