comparison src/pathfinder/ChannelSimulator.java @ 68:735e70091564

EditorSimulator1 in TestNetwork
author kent
date Thu, 08 Nov 2007 12:56:56 +0900
parents 2e5bd7bffa4b
children eda73e0a0388
comparison
equal deleted inserted replaced
67:2e5bd7bffa4b 68:735e70091564
4 import java.util.Queue; 4 import java.util.Queue;
5 5
6 public class ChannelSimulator<P> { 6 public class ChannelSimulator<P> {
7 public NetworkSimulator<P> ns; 7 public NetworkSimulator<P> ns;
8 public Queue<P>[] q; 8 public Queue<P>[] q;
9
10 public ChannelSimulator() {
11 }
12 /* 9 /*
13 public ChannelSimulator(NetworkSimulator<P> ns){ 10 public ChannelSimulator(NetworkSimulator<P> ns){
14 q = new Queue<P>[2]; 11 q = new Queue<P>[2];
15 q[0] = new LinkedList<P>(); 12 q[0] = new LinkedList<P>();
16 q[1] = new LinkedList<P>(); 13 q[1] = new LinkedList<P>();