Class AgentsWay

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.AbstractSequentialList
                    |
                    +--java.util.LinkedList
                          |
                          +--AgentsWay
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class AgentsWay
extends java.util.LinkedList
implements java.io.Serializable

Diese Klasse speichert wann die Ameise wo war und was sie dort getan hat. Dies wird durch eine LinkedList realisiert, in die Waypoints gespeichert werden.
Diese Klasse dient hauptsächlich zum vereinfachten speichern und Laden der LinkedList. Dafür implementiert sie Serializable. Stand: 09.07.2001

See Also:
Serialized Form

Fields inherited from class java.util.LinkedList
header, serialVersionUID, size
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AgentsWay()
          Einfacher Konstruktor.
 
Method Summary
 Waypoint getWaypoint(int round)
          Liefert den mit dem Parameter bestimmten Waypoint zurück.
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addBefore, addFirst, addLast, clear, clone, contains, entry, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, readObject, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray, writeObject
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

AgentsWay

public AgentsWay()
Einfacher Konstruktor.
Method Detail

getWaypoint

public Waypoint getWaypoint(int round)
                     throws java.lang.IndexOutOfBoundsException
Liefert den mit dem Parameter bestimmten Waypoint zurück.
Parameters:
round - Runde, für die der Waypoint abgefragt wird.
Returns:
Waypoint
Throws:
java.lang.IndexOutOfBoundsException - falls der Index nicht gepasst hat.