de.uni_paderborn.robots.robot.group10
Interface MapItemMatcher
- All Known Implementing Classes:
- ItemTypeMatcher, ItemIdMatcher, ItemIdListMatcher
- public interface MapItemMatcher
Interface that defines 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)
Tests if this map item matches the requirements. |
matches
public boolean matches(MapItem mapItem)
- Tests if this map item matches the requirements.
- Parameters:
mapItem - map item to be examined- Returns:
- true if this map item matches the requirements
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. * @param mapItem map item whose search is completed
- Parameters:
mapItem - map item to be examined- Returns:
- true if the complete search is finished