API V2.1

repast.simphony.relogo
[Groovy] Class AgentSet

java.lang.Object
  java.util.AbstractCollection
      java.util.AbstractList
          java.util.ArrayList
              repast.simphony.relogo.AbstractAgentSet
                  repast.simphony.relogo.AgentSet

class AgentSet
extends AbstractAgentSet


Constructor Summary
AgentSet()

AgentSet(Collection c)

 
Method Summary
boolean equals(AgentSet two)

AgentSet with(Closure cl)

AgentSet withMax(Closure closure)

Reports a new agentset containing only those agents that have the maximum value of the given closure.

AgentSet withMin(Closure closure)

Reports a new agentset containing only those agents that have the minimum value of the given closure.

 
Methods inherited from class AbstractAgentSet
askAgentSet
 
Methods inherited from class ArrayList
add, add, remove, remove, get, clone, indexOf, clear, isEmpty, lastIndexOf, contains, size, subList, toArray, toArray, addAll, addAll, iterator, set, ensureCapacity, trimToSize, removeAll, retainAll, listIterator, listIterator, equals, hashCode, toString, containsAll, wait, wait, wait, getClass, notify, notifyAll
 

Constructor Detail

AgentSet

AgentSet()


AgentSet

AgentSet(Collection c)


 
Method Detail

equals

boolean equals(AgentSet two)


with

AgentSet with(Closure cl)


withMax

AgentSet withMax(Closure closure)
Reports a new agentset containing only those agents that have the maximum value of the given closure.


withMin

AgentSet withMin(Closure closure)
Reports a new agentset containing only those agents that have the minimum value of the given closure.


 

ReLogo API V2.1