|
@@ -28,6 +28,10 @@ public class ObjectController {
|
|
|
*/
|
|
|
public void initHolonElements() {
|
|
|
addNewElementIntoCategoryObject("Energy", "Power Plant", "Power", 1, 100);
|
|
|
+ addNewElementIntoCategoryObject("Energy", "Power Plant", "Zero", 2, 100);
|
|
|
+ addNewElementIntoCategoryObject("Energy", "Power Plant", "Rehab", 10, 100);
|
|
|
+ addNewElementIntoCategoryObject("Energy", "Power Plant", "The Doctor", 40, 100);
|
|
|
+ addNewElementIntoCategoryObject("Energy", "Power Plant", "Original", 99, 100);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -137,6 +141,12 @@ public class ObjectController {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ * Search for Element
|
|
|
+ * @param object
|
|
|
+ * @param element
|
|
|
+ * @return
|
|
|
+ */
|
|
|
public HolonElement searchHolonElement(HolonObject object, String element) {
|
|
|
|
|
|
for (HolonElement elements : object.getElements()) {
|