Mercurial > hg > Database > Alice
comparison src/main/java/alice/codesegment/CodeSegment.java @ 481:549cc29aca59 dispose
change access type private
author | sugi |
---|---|
date | Fri, 05 Dec 2014 17:22:11 +0900 |
parents | aefbe41fcf12 |
children | f28087efa911 |
comparison
equal
deleted
inserted
replaced
480:c06070403ed4 | 481:549cc29aca59 |
---|---|
7 | 7 |
8 public abstract class CodeSegment implements Runnable { | 8 public abstract class CodeSegment implements Runnable { |
9 | 9 |
10 public InputDataSegment ids = new InputDataSegment(this); | 10 public InputDataSegment ids = new InputDataSegment(this); |
11 public OutputDataSegment ods = new OutputDataSegment(); | 11 public OutputDataSegment ods = new OutputDataSegment(); |
12 public ArrayList<Receiver> list = new ArrayList<Receiver>(); | 12 private ArrayList<Receiver> list = new ArrayList<Receiver>(); |
13 | 13 |
14 public void execute() { | 14 public void execute() { |
15 ids.receive(); | 15 ids.receive(); |
16 } | |
17 | |
18 public void register(Receiver receiver) { | |
19 list.add(receiver); | |
16 } | 20 } |
17 | 21 |
18 public void recycle(){ | 22 public void recycle(){ |
19 ids.init(); | 23 ids.init(); |
20 ids.setCounter(list.size()); | 24 ids.setCounter(list.size()); |