Agent System POND 1.0 (1.7.2000)

PkgAgentSystem.Classification
Class ClassificationSet

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractSet
              |
              +--java.util.HashSet
                    |
                    +--PkgAgentSystem.Classification.ClassificationSet

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
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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.
Throws:
IllegalArgumentException - if the object passed does not implement AgentClassification
Overrides:
add in class HashSet

Agent System POND 1.0 (1.7.2000)

Submit a bug

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