|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.uni_paderborn.robots.robot.group10.ItemIdListMatcher
Implementation of MapItemMatcher that searches for the shortest paths to map items whose id matches with one from a list of ids.
| Field Summary | |
protected int[] |
ids
The ids to search for |
protected int |
idsFound
The number of ids already found. |
| Constructor Summary | |
ItemIdListMatcher(int[] ids)
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)
Determines if the search is finished after mapItem is found.
|
boolean |
matches(MapItem mapItem)
Tests if this map item's id matches the reqested type. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected int[] ids
protected int idsFound
| Constructor Detail |
public ItemIdListMatcher(int[] ids)
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)
mapItem is found.
Tests if all ids have aready been found.finished in interface MapItemMatchermapItem - map item whose search is completed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||