@Test public void checkCategoryIDs() { Assert.assertEquals(0, this.fastFood.getID()); Assert.assertEquals(1, this.bars.getID()); Assert.assertEquals(2, this.restaurants.getID()); Assert.assertEquals(3, this.electronics.getID()); Assert.assertEquals(4, this.clothes.getID()); Assert.assertEquals(5, this.shops.getID()); Assert.assertEquals(6, this.root.getID()); }
@Override public int getID() { return this.id; }
DoubleLinkedPoiCategory implements PoiCategory { @Override public int getID() { return this.id; } }
DoubleLinkedPoiCategory implements PoiCategory { @Override public int getID() { return this.id; } DoubleLinkedPoiCategory(String title, PoiCategory parent);  DoubleLinkedPoiCategory(String title, PoiCategory parent, int id); }
DoubleLinkedPoiCategory implements PoiCategory { @Override public int getID() { return this.id; } DoubleLinkedPoiCategory(String title, PoiCategory parent);  DoubleLinkedPoiCategory(String title, PoiCategory parent, int id); static int calculateCategoryIDs(DoubleLinkedPoiCategory rootNode, int maxValue); @Override Collection<PoiCategory> deepChildren(); @Override Collection<PoiCategory> getChildren(); static String getGraphVizString(DoubleLinkedPoiCategory rootNode); @Override int getID(); @Override PoiCategory getParent(); @Override String getTitle(); @Override void setParent(PoiCategory parent); @Override String toString(); }
DoubleLinkedPoiCategory implements PoiCategory { @Override public int getID() { return this.id; } DoubleLinkedPoiCategory(String title, PoiCategory parent);  DoubleLinkedPoiCategory(String title, PoiCategory parent, int id); static int calculateCategoryIDs(DoubleLinkedPoiCategory rootNode, int maxValue); @Override Collection<PoiCategory> deepChildren(); @Override Collection<PoiCategory> getChildren(); static String getGraphVizString(DoubleLinkedPoiCategory rootNode); @Override int getID(); @Override PoiCategory getParent(); @Override String getTitle(); @Override void setParent(PoiCategory parent); @Override String toString();  }