view src/alice/test/codesegment/local/StartCodeSegment.java @ 119:f84e1684c6be working

put NULL in CS
author sugi
date Thu, 26 Jul 2012 15:43:57 +0900
parents a8f77957a477
children 2b991e8b7fc0
line wrap: on
line source

package alice.test.codesegment.local;

import alice.codesegment.CodeSegment;
import alice.test.topology.fishmodel.alpha.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
										  
		*/
		new TestCodeSegment();
		
		System.out.println("create TestCodeSegment");
		//ods.update("local", "key1", 0);
		ods.update("local", "key1", new FishPoint(0.0f,0.0f)); // bind string data to datasegment local.key1
													// this startup TestCodeSegment.
 	}

	
}