| | |
| | | package com.flightfeather.uav |
| | | |
| | | import com.flightfeather.uav.common.utils.DateUtil |
| | | import com.flightfeather.uav.common.utils.FileExchange |
| | | import com.flightfeather.uav.common.utils.FileUtil |
| | | import com.flightfeather.uav.common.utils.TimeUtil |
| | | import com.flightfeather.uav.common.net.AMapService |
| | | import com.flightfeather.uav.common.utils.* |
| | | import com.flightfeather.uav.domain.entity.BaseRealTimeData |
| | | import com.flightfeather.uav.domain.entity.Company |
| | | import com.flightfeather.uav.domain.entity.GridDataDetail |
| | |
| | | |
| | | println("${period?.first};${period?.second};${period?.third}") |
| | | } |
| | | |
| | | @Test |
| | | fun foo18() { |
| | | println(-4.382398 in 4.0..Double.MAX_VALUE) |
| | | } |
| | | |
| | | @Test |
| | | fun foo19() { |
| | | val timer = Timer(true) |
| | | // var running = true |
| | | val task = object : TimerTask() { |
| | | override fun run() { |
| | | println("task run") |
| | | println(Date()) |
| | | // running = false |
| | | } |
| | | } |
| | | println(Date()) |
| | | timer.schedule(task, 5000) |
| | | task.cancel() |
| | | timer.purge() |
| | | |
| | | val task2 = object : TimerTask() { |
| | | override fun run() { |
| | | println("task2 run") |
| | | println(Date()) |
| | | // running = false |
| | | } |
| | | } |
| | | timer.schedule(task2, 4000) |
| | | // while (running) { |
| | | // |
| | | // } |
| | | val sc = Scanner(System.`in`) |
| | | while (sc.hasNext()) { |
| | | println(sc.nextLine()) |
| | | } |
| | | } |
| | | |
| | | @Test |
| | | fun reGeo() { |
| | | AMapService.reGeo(MapUtil.wgs84ToGcj02(121.461753 to 31.252426)) |
| | | } |
| | | } |