comparison src/alice/codesegment/CodeSegment.java @ 21:145667a554ad

run CodeSegment with ThreadPoolExecutor
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Sun, 15 Jan 2012 19:02:01 +0900
parents e7867328a2fb
children 3155337e754e
comparison
equal deleted inserted replaced
20:0bb03861b5cd 21:145667a554ad
1 package alice.codesegment; 1 package alice.codesegment;
2 2
3 import alice.codesegment.InputDataSegment; 3 import alice.codesegment.InputDataSegment;
4 4
5 public abstract class CodeSegment { 5 public abstract class CodeSegment implements Runnable {
6 6
7 public InputDataSegment ids = new InputDataSegment(this); 7 public InputDataSegment ids = new InputDataSegment(this);
8 public OutputDataSegment ods = new OutputDataSegment(); 8 public OutputDataSegment ods = new OutputDataSegment();
9 9
10 public void execute() { 10 public void execute() {
11 ids.receive(); 11 ids.receive();
12 } 12 }
13
14 public abstract void run();
15 13
16 } 14 }