MACS
Class PerceptionSet

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractSet
              |
              +--java.util.TreeSet
                    |
                    +--MACS.PerceptionSet
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.io.Serializable, java.util.Set, java.util.SortedSet

class PerceptionSet
extends java.util.TreeSet

This class represents a set of Perceptions.

Author:
Olivier Sigaud and Pierre Gérard.

Field Summary
 
Fields inherited from class java.util.TreeSet
 
Constructor Summary
protected PerceptionSet()
           
protected PerceptionSet(java.util.Collection p)
          Creates a PerceptionSet from a PerceptionList
 
Method Summary
protected  void mergeWith(java.util.Collection p)
          Adds the content of the Collection to the current content of the set
 
Methods inherited from class java.util.TreeSet
add, addAll, clear, clone, comparator, contains, first, headSet, isEmpty, iterator, last, remove, size, subSet, tailSet
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

PerceptionSet

protected PerceptionSet()

PerceptionSet

protected PerceptionSet(java.util.Collection p)
Creates a PerceptionSet from a PerceptionList

Parameters:
p - the original PerceptionList
Method Detail

mergeWith

protected final void mergeWith(java.util.Collection p)
Adds the content of the Collection to the current content of the set

Parameters:
p - the original Collection