| | |
| | | this.raingage = raingage.replace("\\", "/"); |
| | | this.duration = duration; |
| | | |
| | | this.result = new ResultVo(saveName, duration, frames); |
| | | int saveInterval = duration / frames - 5; // 修订最后一帧可能为空数据 |
| | | this.result = new ResultVo(saveName, frames, saveInterval); |
| | | } |
| | | |
| | | public List<Object> getTerrain() { |
| | |
| | | this.save_filter = 0; |
| | | } |
| | | |
| | | public ResultVo(String saveName, int duration, int frames) { |
| | | public ResultVo(String saveName, int frames, int saveInterval) { |
| | | this(); |
| | | |
| | | this.save_name = saveName.replace("\\", "/"); |
| | | this.save_frames = frames; |
| | | // 结果数据中相邻帧的模拟时间间隔(单位:秒),save_start + save_frames * save_interval <= duration |
| | | this.save_interval = duration / frames; |
| | | this.save_interval = saveInterval; |
| | | } |
| | | |
| | | public String getSave_name() { |