jcolibri.method.retrieve.selection.compromiseDriven
Class CDRSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<CBRCase>
              extended by jcolibri.method.retrieve.selection.compromiseDriven.CDRSet
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<CBRCase>, java.util.Collection<CBRCase>, java.util.List<CBRCase>, java.util.RandomAccess

public class CDRSet
extends java.util.ArrayList<CBRCase>

Stores the retrieved cases and their "like" and "covered" sets.

Version:
1.0
Author:
Juan A. Recio-Garcia, Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
CDRSet()
          Constructor
 
Method Summary
 void addToCoveredSet(CBRCase _case, CBRCase coveredCase)
          Adds a case to the covered set of another case
 void addToLikeSet(CBRCase _case, CBRCase likeCase)
          Adds a case to the like set of another case
 java.util.Set<CBRCase> getCoveredSet(CBRCase _case)
          Returns the covered set of a case
 java.util.Set<CBRCase> getLikeSet(CBRCase _case)
          Returns the like set of a case
 
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
 

Constructor Detail

CDRSet

public CDRSet()
Constructor

Method Detail

addToLikeSet

public void addToLikeSet(CBRCase _case,
                         CBRCase likeCase)
Adds a case to the like set of another case


getLikeSet

public java.util.Set<CBRCase> getLikeSet(CBRCase _case)
Returns the like set of a case


addToCoveredSet

public void addToCoveredSet(CBRCase _case,
                            CBRCase coveredCase)
Adds a case to the covered set of another case


getCoveredSet

public java.util.Set<CBRCase> getCoveredSet(CBRCase _case)
Returns the covered set of a case


GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es