diff src/main/java/alice/test/topology/aquarium/fx/CheckMyName.java @ 397:ca92da166f1a multicast

check All fish object in own scene om CheckAllFishInfoExist code segment
author sugi
date Sun, 22 Jun 2014 21:06:40 +0900
parents e29cf08ad1f3
children c817721af5ec
line wrap: on
line diff
--- a/src/main/java/alice/test/topology/aquarium/fx/CheckMyName.java	Wed Jun 18 15:33:14 2014 +0900
+++ b/src/main/java/alice/test/topology/aquarium/fx/CheckMyName.java	Sun Jun 22 21:06:40 2014 +0900
@@ -31,12 +31,14 @@
 								   // node1 median : 10
 		                           // node2 median : 20
 		
-		if (num == 0){ // root node
+		if (num == 0){ 
+			// only root node create fishInfoList registered all fishInfo
+			// fishInfoList send children for checking all Fish object in own scene
 			new RegisterList();
 			ods.put("registeredList", new ArrayList<FishInfo>());
-		} else {
-			new ReceiveRegisterList();
-		}
+		} 
+		
+		new CheckAllFishInfoExist();
 
 		FishInfo fishInfo = new FishInfo(median,0,0);
 		fishInfo.setName(name);