edu.columbia.cs.coms4701.agent.environments.pente
Class PentePerceptRecentActions

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<PenteAction>
                  extended by edu.columbia.cs.coms4701.agent.environments.pente.PentePerceptRecentActions
All Implemented Interfaces:
AgentPercept, PentePercept, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<PenteAction>, java.util.Collection<PenteAction>, java.util.List<PenteAction>, java.util.Queue<PenteAction>

public class PentePerceptRecentActions
extends java.util.LinkedList<PenteAction>
implements PentePercept, java.util.List<PenteAction>

A percept containing an ordered list of the legal moves that have been performed (including *this* player's move) in the past round.

To iterate through the list of moves, you can use code like if (thisPercept instanceOf PentePerceptRecentActions) { for (PenteAction otherMove : (PentePerceptRecentActions) thisPercept) { ... } }

Version:
0.1

User: aaron Date: Sep 24, 2006 Time: 8:23:36 PM

Author:
aaron@cs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PentePerceptRecentActions()
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

PentePerceptRecentActions

public PentePerceptRecentActions()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection<PenteAction>