Mercurial > hg > Database > Alice
view src/main/java/alice/codesegment/CodeSegment.java @ 345:8f71c3e6f11d
Change directory structure Maven standard
author | sugi |
---|---|
date | Wed, 16 Apr 2014 18:26:07 +0900 |
parents | |
children | 4515fe620e3a |
line wrap: on
line source
package alice.codesegment; import java.util.ArrayList; import alice.codesegment.InputDataSegment; import alice.datasegment.Receiver; public abstract class CodeSegment implements Runnable { public InputDataSegment ids = new InputDataSegment(this); public OutputDataSegment ods = new OutputDataSegment(); public ArrayList<Receiver> list = new ArrayList<Receiver>(); public void execute() { ids.receive(); } public void recycle(){ ids.init(); ids.setCounter(list.size()); for (Receiver receiver : list) { ids.recommand(receiver); } } }