de.uni_paderborn.robots.robot.group9
Interface MapItemMatcher

All Known Implementing Classes:
ItemIdMatcher, ItemIdListMatcher, ItemTypeMatcher

public interface MapItemMatcher

Interface for defining for which map items the search methods have to search for.


Method Summary
 boolean finished(MapItem mapItem)
          This method is called when the search for the specified map item (for which matches() returned true) is finished.
 boolean matches(MapItem mapItem)
          Does this map item matches the requirements?
 

Method Detail

matches

public boolean matches(MapItem mapItem)
Does this map item matches the requirements?
Parameters:
mapItem - map item to be examined.
Returns:
true if this map item matches.

finished

public boolean finished(MapItem mapItem)
This method is called when the search for the specified map item (for which matches() returned true) is finished. If this MapItemMatcher only searched for this single map item, it should return true now. The search process will be stopped then. If the MapItemMatcher also searches for other map items, which are not yet finished, it should return false.
Parameters:
mapItem - map item whose search is completed
Returns:
true if the complete search is finished.