| | |
| | | import com.mode.Device_Inf;
|
| | | import com.mode.Manage_Util;
|
| | | import com.sql.MysqlConnPool;
|
| | | import com.thread.devs.Manage_Simul_Motor_Thread;
|
| | |
|
| | | public class Manage_Simul_Server {
|
| | | public MysqlConnPool pool;
|
| | |
| | | if(devices.size() > 0) {
|
| | | for(int i=0;i<devices.size();i++) {
|
| | | Device_Inf dev = devices.get(i);
|
| | | System.out.println(dev);
|
| | | //System.out.println(dev);
|
| | | switch(dev.getSystem_id()) {
|
| | | case Manage_Util.DEV_TYPE_DYNAMICLOAD:{
|
| | |
|
| | |
| | |
|
| | | }break;
|
| | | case Manage_Util.DEV_TYPE_MOTOR:{
|
| | | |
| | | Manage_Simul_Motor_Thread motor_thread = new Manage_Simul_Motor_Thread(pool, dev);
|
| | | new Thread(motor_thread).start();
|
| | | }break;
|
| | | }
|
| | | }
|