comparison test/mergertest/TestMerger2.java @ 420:5c95a9020e31

Modify ServerMainLoop
author one
date Fri, 13 Feb 2009 19:13:50 +0900
parents
children
comparison
equal deleted inserted replaced
419:7ff127c8ad64 420:5c95a9020e31
1 package test.mergertest;
2
3 import java.util.LinkedList;
4
5 public class TestMerger2 {
6
7 private LinkedList<EditorSimulator> editorList;
8
9 public TestMerger2(int en, int cn) {
10 editorList = new LinkedList<EditorSimulator>();
11 for(int i = 0; i < en; i++){
12 editorList.add(new EditorSimulatorImpl(0, i));
13 try{
14 editorList.get(i-1).setNext(editorList.get(i));
15 }catch(IndexOutOfBoundsException e){
16
17 }
18 }
19 }
20
21 public static void main(String[] args){
22 if(args.length > 1){
23 int en = Integer.parseInt(args[0]);
24 int cn = Integer.parseInt(args[1]);
25 TestMerger2 test = new TestMerger2(en, cn);
26 test.start();
27 }else{
28 TestMerger2 test = new TestMerger2(3, 3);
29 test.start();
30 }
31 }
32
33 private void start() {
34
35 }
36
37 }