es.upv.dsic.gti_ia.trace
Class TracingServiceList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<TracingService>
              extended by es.upv.dsic.gti_ia.trace.TracingServiceList
All Implemented Interfaces:
Serializable, Cloneable, Iterable<TracingService>, Collection<TracingService>, List<TracingService>, RandomAccess

public class TracingServiceList
extends ArrayList<TracingService>

List of tracing services

Author:
L Burdalo (lburdalo@dsic.upv.es)
See Also:
TracingService, Arraylist, Serialized Form

Field Summary
protected  org.apache.log4j.Logger logger
          The logger variable considers to print any event that occurs
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
TracingServiceList()
           
 
Method Summary
 TracingService getTS(String serviceName)
          Gets a tracing service from the list which has the same service name as the specified in the parameters
 boolean initializeWithDITracingServices()
          Initializes the tracing service list with domain independent tracing services in TracingService.DI_TracingServices
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

logger

protected org.apache.log4j.Logger logger
The logger variable considers to print any event that occurs

Constructor Detail

TracingServiceList

public TracingServiceList()
Method Detail

initializeWithDITracingServices

public boolean initializeWithDITracingServices()
Initializes the tracing service list with domain independent tracing services in TracingService.DI_TracingServices

Returns:
Returns true if all domain independent tracing services were added to the list or false otherwise

getTS

public TracingService getTS(String serviceName)
Gets a tracing service from the list which has the same service name as the specified in the parameters

Parameters:
serviceName - Name of the tracing service which is to be returned
Returns:
returns the tracing service which has that name if it exists in the list or null if no tracing service with the specified name is found


Copyright © 2012 GTI-IA. All Rights Reserved.