|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<T>
com.xj.anylogic.engine.Environment.AgentCollection<T>
public static class Environment.AgentCollection<T extends Agent>
A collection of agents. Supports iterations, size() and get( index ) methods.
| Constructor Summary | |
|---|---|
Environment.AgentCollection()
|
|
| Method Summary | |
|---|---|
T |
get(int index)
Returns the agent with a given index in the collection. |
java.util.Iterator<T> |
iterator()
Returns the iterator that is used to traverse the collection. |
int |
size()
Returns the number of agents in the collection. |
| Methods inherited from class java.util.AbstractCollection |
|---|
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public Environment.AgentCollection()
| Method Detail |
|---|
public int size()
size in interface java.util.Collection<T extends Agent>size in class java.util.AbstractCollection<T extends Agent>public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T extends Agent>iterator in interface java.util.Collection<T extends Agent>iterator in class java.util.AbstractCollection<T extends Agent>public T get(int index)
index - the index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||