Class WorldEnumeration

java.lang.Object
  |
  +--WorldEnumeration

public class WorldEnumeration
extends java.lang.Object

This class provides an iterator for the simulation (World)


Method Summary
 boolean hasMoreElements()
          checks if there are more LocationObjectPairs to return
 LocationObjectPair nextElement()
          returns either next LocationObjectPair from iterator or null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasMoreElements

public boolean hasMoreElements()
checks if there are more LocationObjectPairs to return
Returns:
true if these is another LocationObjectPair, otherwise false

nextElement

public LocationObjectPair nextElement()
returns either next LocationObjectPair from iterator or null
Returns:
next LocationObjectPair from iterator