|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.upv.dsic.gti_ia.core.TracingService
public class TracingService
Definition of Tracing Service.
| Field Summary | |
|---|---|
static int |
AGENT_DESTROYED
An agent was destroyed |
static TracingService[] |
DI_TracingServices
Array of Domain Independent Tracing Services |
static int |
MAX_DI_TS
Number of supported Domain Independent Tracing Services |
static int |
MESSAGE_RECEIVED
A FIPA-ACL message was received |
static int |
MESSAGE_RECEIVED_DETAIL
A FIPA-ACL message was received. |
static int |
MESSAGE_SENT
A FIPA-ACL message was sent |
static int |
MESSAGE_SENT_DETAIL
A FIPA-ACL message was sent. |
static int |
NEW_AGENT
A new agent was registered in the system |
static int |
PUBLISHED_TRACING_SERVICE
A new tracing service has been published by an ES entity |
static int |
SUBSCRIBE
The ER entity subscribed to a tracing service |
static int |
TRACE_ERROR
General error in the tracing process |
static int |
UNAVAILABLE_TS
The tracing service which was requested does not exist or it has been un published and thus, it is not available anymore |
static int |
UNPUBLISHED_TRACING_SERVICE
A tracing service is not being offered by an ER entity |
static int |
UNSUBSCRIBE
The ER entity unsubscribed from a tracing service |
| Constructor Summary | |
|---|---|
TracingService()
Void constructor which creates an empty tracing service, without any provider nor subscriptor, which will be requestable ( requestable == true ),
and not mandatory ( mandatory == false ) |
|
TracingService(String serviceName,
String description)
Constructor which creates an tracing service with the specified service name and description, without any provider nor subscriptor, which will be requestable ( requestable == true ),
and not mandatory ( mandatory == false ) |
|
| Method Summary | |
|---|---|
boolean |
addServiceProvider(TracingEntity provider)
Adds a provider to the tracing service. |
boolean |
addSubscription(TracingServiceSubscription subscription)
Adds a subscription to the tracing service. |
String |
getDescription()
Returns the description of the tracing service. |
boolean |
getMandatory()
Returns true if the tracing service is mandatory (i.e: it cannot be unpublished by any tracing entity). |
String |
getName()
Returns the name of the tracing service. |
TracingEntityList |
getProviders()
Returns the list of tracing entities which provide the tracing service. |
boolean |
getRequestable()
Returns true if the tracing service is requestable. |
TracingServiceSubscriptionList |
getSubscriptions()
Returns the list of subscriptions to that tracing service. |
boolean |
removeProvider(AgentID providerAid)
Removes provider from a tracing service. |
void |
setDescription(String description)
Sets the description of the tracing service. |
void |
setName(String name)
Sets the name of the tracing service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TRACE_ERROR
public static final int SUBSCRIBE
public static final int UNSUBSCRIBE
public static final int UNAVAILABLE_TS
public static final int NEW_AGENT
public static final int AGENT_DESTROYED
public static final int MESSAGE_SENT
public static final int MESSAGE_SENT_DETAIL
public static final int MESSAGE_RECEIVED
public static final int MESSAGE_RECEIVED_DETAIL
public static final int PUBLISHED_TRACING_SERVICE
public static final int UNPUBLISHED_TRACING_SERVICE
public static final int MAX_DI_TS
public static final TracingService[] DI_TracingServices
| Constructor Detail |
|---|
public TracingService()
requestable == true ),
and not mandatory ( mandatory == false )
TracingEntityList,
TracingEntity,
TracingServiceSubscriptionList,
TracingServiceSubscription
public TracingService(String serviceName,
String description)
requestable == true ),
and not mandatory ( mandatory == false )
serviceName - Name of the tracing servicedescription - Description of the tracing serviceTracingEntityList,
TracingEntity,
TracingServiceSubscriptionList,
TracingServiceSubscription| Method Detail |
|---|
public void setName(String name)
name - New name of the tracing servicepublic void setDescription(String description)
description - New description of the tracing servicepublic String getName()
public boolean getMandatory()
mandatory attribute of the TracingService objectpublic boolean getRequestable()
requestable attribute of the TracingService objectpublic String getDescription()
public TracingEntityList getProviders()
providers attribute of the TracingService objectTracingEntityListpublic TracingServiceSubscriptionList getSubscriptions()
subscriptions attribute of the TracingService objectTracingServiceSubscriptionList,
TracingServiceSubscriptionpublic boolean addServiceProvider(TracingEntity provider)
provider - Tracing entity which will provide the tracing service
es.upv.dsic.gti_ia.trace.TracingEntityList#add(TracingEntity)public boolean addSubscription(TracingServiceSubscription subscription)
subscription - Subscription to the tracing service
es.upv.dsic.gti_ia.trace.TracingServiceSubscriptionList#add(TracingServiceSubscription),
TracingServiceSubscriptionpublic boolean removeProvider(AgentID providerAid)
providerAid - AgentID of the agent to be removed from the
providers list of the
tracing service
ArrayList.remove(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||