Mercurial > hg > RemoteEditor > REPSessionManager
comparison rep/simulator/REPSelector.java @ 123:5b1a0574b406 add-simulator
*** empty log message ***
author | pin |
---|---|
date | Wed, 27 Aug 2008 17:21:25 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
122:790c8dd42a7b | 123:5b1a0574b406 |
---|---|
1 package rep.simulator; | |
2 | |
3 import java.io.IOException; | |
4 import java.nio.channels.Selector; | |
5 | |
6 public class REPSelector { | |
7 | |
8 private static boolean isSimulator; | |
9 | |
10 | |
11 | |
12 public static Selector open() throws IOException { | |
13 if(isSimulator){ | |
14 return SelectorSimulator.open(); | |
15 }else{ | |
16 return Selector.open(); | |
17 } | |
18 } | |
19 | |
20 | |
21 | |
22 public static void setSimulation(boolean b) { | |
23 // TODO Auto-generated method stub | |
24 isSimulator = false; | |
25 } | |
26 | |
27 } |