net.sf.sail.core.entity
Class AgentSet<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet
              extended by net.sf.sail.core.entity.AgentSet<E>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.Set

public class AgentSet<E>
extends java.util.HashSet

Extends HashSet to add some handy methods for Agents

Author:
turadg
See Also:
Serialized Form

Constructor Summary
AgentSet()
           
 
Method Summary
 IAgent getSingle()
          Assumes there is only one agent in the set
 AgentSet select(Role role)
           
 
Methods inherited from class java.util.HashSet
add, 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

AgentSet

public AgentSet()
Method Detail

getSingle

public IAgent getSingle()
                 throws MismatchedAgentSetSizeException
Assumes there is only one agent in the set

Throws:
MismatchedAgentSetSizeException

select

public AgentSet select(Role role)


Copyright 2004-2004-2006 TELS Center. All Rights Reserved.