Agent System POND 1.2 (28.2.2002)

PkgAgentSystem.Classification
Class ClassificationSet

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractSet
              |
              +--java.util.HashSet
                    |
                    +--PkgAgentSystem.Classification.ClassificationSet
All Implemented Interfaces:
Cloneable, Collection, Serializable, Set

public class ClassificationSet
extends HashSet

A set of additional classifications. You can add classifications and iterate through them. Removal, info, ... through methods of HashSet.

Version:
1.0, 1.7.2000
Author:
Michael Sonntag
See Also:
AgentClassification, Serialized Form

Constructor Summary
ClassificationSet()
          Create a new and empty set of classifications
 
Method Summary
 boolean add(Object o)
          Add an object to the set.
 Iterator classifications()
          Retrieve an iterator to retrieve all contained classifications.
 
Methods inherited from class java.util.HashSet
, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, 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
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

ClassificationSet

public ClassificationSet()
Create a new and empty set of classifications
Method Detail

classifications

public Iterator classifications()
Retrieve an iterator to retrieve all contained classifications.
Returns:
an iterator for all elements

add

public boolean add(Object o)
Add an object to the set. Must implement AgentClassification else an IllegalArgumentException is thrown.
Overrides:
add in class HashSet
Throws:
IllegalArgumentException - if the object passed does not implement AgentClassification

Agent System POND 1.2 (28.2.2002)

Submit a bug

Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.