net.sf.sail.core.entity
Class AgentSet

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

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

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-2008 TELS Center. All Rights Reserved.