view src/alice/test/codesegment/local/StartCodeSegment.java @ 134:53aff28cde6b working

change package
author sugi
date Wed, 15 Aug 2012 17:11:57 +0900
parents 2b991e8b7fc0
children 16418c2c3e72
line wrap: on
line source

package alice.test.codesegment.local;

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

	
}