|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.uni_paderborn.robots.robot.group9.ItemIdListMatcher
Implementation of MapItemMatcher, that searches for the shortest paths to map items that match with their id with one id from a list of ids
| Field Summary | |
private int[] |
id
The ids to search for |
private int |
idsFound
We cound how many ids have already been found |
| Constructor Summary | |
ItemIdListMatcher(int[] id)
Creates a new ItemTypeMatcher that searches for map items with an id that matches one out of the specified id list. |
|
| Method Summary | |
boolean |
finished(MapItem mapItem)
Have all ids aready been found? |
boolean |
matches(MapItem mapItem)
Matches the item |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private int[] id
private int idsFound
| Constructor Detail |
public ItemIdListMatcher(int[] id)
array - of ids to search for.| Method Detail |
public boolean matches(MapItem mapItem)
matches in interface MapItemMatchermapItem - the map item to checkpublic boolean finished(MapItem mapItem)
finished in interface MapItemMatchermapItem - the mapItem that has been finished.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||