|
@@ -470,6 +470,23 @@ public class RWDLoadUtil {
|
|
|
|
|
|
public static void LoadIBMSPhysicalWorld(Repository Repository) throws Exception {
|
|
|
String validPath = Constant.getLatestPath(Constant.ibms_physical_world, true);
|
|
|
-
|
|
|
+ String infoPath = validPath + Constant.getSeperator() + "NightscapeLighting";
|
|
|
+ Map<String, SceneDataSet> infoArrayDic = new HashMap<String, SceneDataSet>();
|
|
|
+ File root = new File(infoPath);
|
|
|
+ File[] files = root.listFiles();
|
|
|
+ for (File file : files) {
|
|
|
+ int index_ = file.getName().indexOf('.');
|
|
|
+ String code = file.getName().substring(0, index_);
|
|
|
+ log.debug(infoPath + Constant.getSeperator() + "" + file.getName());
|
|
|
+ try {
|
|
|
+ JSONArray array = FastJsonReaderUtil.Instance().ReadJSONArray(new File(infoPath + Constant.getSeperator() + "" + file.getName()));
|
|
|
+ SceneDataSet SceneDataSet = new SceneDataSet(false);
|
|
|
+ SceneDataSet.set = RWDUtil.array2SDOList(array);
|
|
|
+ infoArrayDic.put(code, SceneDataSet);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.warn(e.getMessage(), e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Repository.IBMSArrayDic.put("NightscapeLighting", infoArrayDic);
|
|
|
}
|
|
|
}
|