ie.nuigalway.ecrg.jade.jmsagentgateway.gui
Class SubscriptionModel

java.lang.Object
  |
  +--ie.nuigalway.ecrg.jade.jmsagentgateway.gui.SubscriptionModel

public class SubscriptionModel
extends java.lang.Object

Subscription list model

Version:
0.5 12 January 2004
Author:
Edward Curry

Field Summary
private  java.lang.String destination
           
private  java.lang.String destType
           
private  java.lang.String durable
           
private  int msgCounter
           
private  java.lang.String providerURL
           
private  java.lang.String sender
           
private  jade.proto.SubscriptionResponder.Subscription subscription
           
 
Constructor Summary
SubscriptionModel(jade.proto.SubscriptionResponder.Subscription subscription, Subscribe sub)
          Constructor for the SubscriptionModel object
 
Method Summary
 java.lang.String getDestination()
          Gets the destination attribute of the SubscriptionModel object
 java.lang.String getDestType()
          Gets the destType attribute of the SubscriptionModel object
 java.lang.String getDurable()
          Gets the durable attribute of the SubscriptionModel object
 int getMsgCounter()
          Gets the msgCounter attribute of the SubscriptionModel object
 java.lang.String getProviderURL()
          Gets the providerURL attribute of the SubscriptionModel object
 java.lang.String getSender()
          Gets the sender attribute of the SubscriptionModel object
 jade.proto.SubscriptionResponder.Subscription getSubscription()
          Gets the subscription attribute of the SubscriptionModel object
 void incMsgCounter()
          Increment the counter tracking the number of messages sent to this client
 void setDestination(java.lang.String value)
          Sets the destination attribute of the SubscriptionModel object
 void setDestType(java.lang.String value)
          Sets the destType attribute of the SubscriptionModel object
 void setDurable(java.lang.String value)
          Sets the durable attribute of the SubscriptionModel object
 void setProviderURL(java.lang.String value)
          Sets the providerURL attribute of the SubscriptionModel object
 void setSender(java.lang.String value)
          Sets the sender attribute of the SubscriptionModel object
 void setSubscription(jade.proto.SubscriptionResponder.Subscription value)
          Sets the subscription attribute of the SubscriptionModel object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sender

private java.lang.String sender

providerURL

private java.lang.String providerURL

destination

private java.lang.String destination

destType

private java.lang.String destType

durable

private java.lang.String durable

msgCounter

private int msgCounter

subscription

private jade.proto.SubscriptionResponder.Subscription subscription
Constructor Detail

SubscriptionModel

public SubscriptionModel(jade.proto.SubscriptionResponder.Subscription subscription,
                         Subscribe sub)
Constructor for the SubscriptionModel object

Parameters:
subscription - Subscription to add
sub - Subscribe request
Method Detail

setSender

public void setSender(java.lang.String value)
Sets the sender attribute of the SubscriptionModel object

Parameters:
value - The new sender value

getSender

public java.lang.String getSender()
Gets the sender attribute of the SubscriptionModel object

Returns:
The sender value

setProviderURL

public void setProviderURL(java.lang.String value)
Sets the providerURL attribute of the SubscriptionModel object

Parameters:
value - The new providerURL value

getProviderURL

public java.lang.String getProviderURL()
Gets the providerURL attribute of the SubscriptionModel object

Returns:
The providerURL value

setDestination

public void setDestination(java.lang.String value)
Sets the destination attribute of the SubscriptionModel object

Parameters:
value - The new destination value

getDestination

public java.lang.String getDestination()
Gets the destination attribute of the SubscriptionModel object

Returns:
The destination value

setDestType

public void setDestType(java.lang.String value)
Sets the destType attribute of the SubscriptionModel object

Parameters:
value - The new destType value

getDestType

public java.lang.String getDestType()
Gets the destType attribute of the SubscriptionModel object

Returns:
The destType value

setDurable

public void setDurable(java.lang.String value)
Sets the durable attribute of the SubscriptionModel object

Parameters:
value - The new durable value

getDurable

public java.lang.String getDurable()
Gets the durable attribute of the SubscriptionModel object

Returns:
The durable value

incMsgCounter

public void incMsgCounter()
Increment the counter tracking the number of messages sent to this client


getMsgCounter

public int getMsgCounter()
Gets the msgCounter attribute of the SubscriptionModel object

Returns:
The msgCounter value

setSubscription

public void setSubscription(jade.proto.SubscriptionResponder.Subscription value)
Sets the subscription attribute of the SubscriptionModel object

Parameters:
value - The new subscription value

getSubscription

public jade.proto.SubscriptionResponder.Subscription getSubscription()
Gets the subscription attribute of the SubscriptionModel object

Returns:
The subscription value