package com.thread;
|
|
import java.util.List;
|
|
import com.mode.Device_Inf;
|
import com.mode.Manage_Util;
|
import com.sql.MysqlConnPool;
|
|
public class Manage_Simul_Server {
|
public MysqlConnPool pool;
|
public List<Device_Inf> devices;
|
|
public Manage_Simul_Server(MysqlConnPool pool, List<Device_Inf> devices) {
|
this.pool = pool;
|
this.devices = devices;
|
}
|
|
public void run() {
|
if(devices.size() > 0) {
|
for(int i=0;i<devices.size();i++) {
|
Device_Inf dev = devices.get(i);
|
System.out.println(dev);
|
switch(dev.getSystem_id()) {
|
case Manage_Util.DEV_TYPE_DYNAMICLOAD:{
|
|
}break;
|
case Manage_Util.DEV_TYPE_4MWPOWER:{
|
|
}break;
|
case Manage_Util.DEV_TYPE_2MWPOWER:{
|
|
}break;
|
case Manage_Util.DEV_TYPE_MOTOR:{
|
|
}break;
|
}
|
}
|
}
|
}
|
|
}
|