Research Article
Development and Application of an Intelligent Evaluation and Control Platform for Tunnel Smooth Blasting
Pseudocode 1
Evaluation function code.
| private void pingjiajisuan(){ | | String PREF_NAME = "quzhong_shezhi"; | | String PREF_1 = "avg_linear_overbreak"; | | String PREF_2 = "max_overbreak"; | | …… | | //int lastid = service.getLastId(); | | int lastid =100; | | double[] a = new double [5]; | | double[] quanzhong = new double [5]; | | …… | | SharedPreferences sp = getSharedPreferences(PREF_NAME, | | Context.MODE_WORLD_WRITEABLE); | | quanzhong[0] = Double.valueOf(sp.getString(PREF_1,"")); | | …… | | boolean result = service.updatePingjia(model); | | effect_1 = 0; | | effect_2 = 0; | | class_1 = 0; | | class_2 = 0; | | } | | renderDuanmianList(); | | } } |
|