diff src/alice/test/codesegment/local/StartCodeSegment.java @ 97:df786bf8f036 working

add FishPoint.java and Test
author sugi
date Tue, 26 Jun 2012 16:48:09 +0900
parents a3a2605e16a2
children a8f77957a477
line wrap: on
line diff
--- a/src/alice/test/codesegment/local/StartCodeSegment.java	Tue Jun 19 17:52:01 2012 +0900
+++ b/src/alice/test/codesegment/local/StartCodeSegment.java	Tue Jun 26 16:48:09 2012 +0900
@@ -1,19 +1,23 @@
 package alice.test.codesegment.local;
 
 import alice.codesegment.CodeSegment;
+import alice.test.topology.movement.FishPoint;
 
 public class StartCodeSegment extends CodeSegment {
 
 	@Override
 	public void run() {
 		System.out.println("run StartCodeSegment");
-		
+		/*
 		TestCodeSegment cs = new TestCodeSegment();
 		cs.arg1.setKey("key1"); // unbound datasegment key1 is created and connect to cs.
-										 // cs is waiting for local.key1
+								// cs is waiting for local.key1
+										  
+		*/
+		new TestCodeSegment();
 		System.out.println("create TestCodeSegment");
 		
-		ods.update("local", "key1", "String data"); // bind string data to datasegment local.key1
+		ods.update("local", "key1", new FishPoint()); // bind string data to datasegment local.key1
 													// this startup TestCodeSegment.
  	}