世纪高通的minemap用编辑器动态绘制多边形
时间: 2024-02-05 21:13:42 浏览: 144
3333333333335
Process 2:
Arrival time: 2
Service time: 8
Completion time: 16
Turnaround time: 14
Weighted turnaround time: 1.75
Process 3:
Arrival time: 3
Service世纪高通的minemap是一款基于WebGL技术的地图引擎,提供了丰富的地 time: 6
Completion time: 22
Turnaround time: 19
Weighted turnaround time: 3.166666666图展示和交互功能。其中动态绘制多边形是minemap的一个核心功能之一。
在min6666665
Process 4:
Arrival time: 4
Service time: 1
Completion time: 23
Turnaround time: 19
Weighted turnaround time: 19.0
Average turnaround time: 12.8
Average weighted turnaround time:emap中,可以使用minemap.editor插件来进行多边形的动态绘制。具体步骤如下:
1 5.85
SJF:
Process 0:
Arrival time: 0
Service time: 5
Completion time: . 引入minemap.editor插件的js和css文件。
2. 创建一个包含地图的HTML元素,并初始化min5
Turnaround time: 5
Weighted turnaround time: 1.0
Process 1:
Arrival time: 1emap地图实例。
3. 创建一个minemap.editor实例,并将其与地图实例关联。
4. 调
Service time: 3
Completion time: 8
Turnaround time: 7
Weighted turnaround time: 2.333用minemap.editor实例的startDrawing方法开始绘制多边形。
5. 在绘制过程中,可以实时3333333333335
Process 3:
Arrival time: 3
Service time: 6
Completion time: 14
更新多边形的点位置、颜色、透明度等属性。
6. 绘制完成后,调用minemap.editorTurnaround time: 11
Weighted turnaround time: 1.8333333333333333
Process 2:
Arrival time实例的stopDrawing方法停止绘制。
7. 可以将绘制好的多边形保存到后端数据库中: 2
Service time: 8
Completion time: 22
Turnaround time: 20
Weighted turnaround time: 2.5
Process 4:
Arrival time: 4
Service time: 1
Completion time: 23
Turnaround,以便后续使用。
下面是一个简单的示例代码:
```html
<!DOCTYPE html>
<html>
<head>
time: 19
Weighted turnaround time: 19.0
Average turnaround time: 12.4
Average weighted turnaround time: <meta charset="utf-8">
<title>minemap动态绘制多边形示例</title>
< 5.933333333333334
RR (time slice=2):
Process 0:
Arrival time: 0
Service timelink rel="stylesheet" href="https://cdn.staticfile.org/minemap/3.0.0/minemap.css">
<script src: 5
Completion time: 9
Turnaround time: 9
Weighted turnaround time: 1.8
Process ="https://cdn.staticfile.org/minemap/3.0.0/minemap.js"></script>
<script src="https://cdn1:
Arrival time: 1
Service time: 3
Completion time: 11
Turnaround time: 10
Weight.staticfile.org/minemap/3.0.0/plugins/editor/minemap.editor.min.js"></script>
<style>
#map {
ed turnaround time: 3.3333333333333335
Process 2:
Arrival time: 2
Service time: width: 800px;
height: 600px;
}
</style>
</head>
<body>
<div id8
Completion time: 24
Turnaround time: 22
Weighted turnaround time: 2.75
Process 3:
="map"></div>
<script>
var map = new minemap.Map({
container: 'map',
style: 'httpsArrival time: 3
Service time: 6
Completion time: 23
Turnaround time: 20
Weighted turnaround://cdn.staticfile.org/minemap/3.0.0/style/default/style.json',
center: [116.397865, 39 time: 3.3333333333333335
Process 4:
Arrival time: 4
Service time: 1
.904039],
zoom: 12,
pitch: 0,
minZoom: 0,
maxZoom: 22Completion time: 24
Turnaround time: 20
Weighted turnaround time: 20.0
Average turnaround time: 16
});
var editor = new minemap.Editor({
map: map,
mode: 'draw_polygon'
});
editor.start.2
Average weighted turnaround time: 6.843333333333334
```
从结果可以看出,三种算法Drawing();
editor.on('draw.create', function (e) {
console.log('多边形绘制完成');
editor.stopDrawing的平均周转时间和带权周转时间如下:
| 算法 | 平均周转时间 | 平均带();
// 将多边形保存到后端数据库中
});
</script>
</body>
</html>
```
在权周转时间 |
| ---------- | ------------ | ---------------- |
| 先来先服务 | 12.8 | 5.85 上面的示例中,创建了一个包含地图的HTML元素,并初始化minemap地图实例。然后 |
| 短作业优先 | 12.4 | 5.933 |
| 时间片轮转 | 16.创建了一个minemap.editor实例,并将其与地图实例关联。接着调用minemap.editor实例的2 | 6.843 |
可以看出,短作业优先算法的平均周转时间和带权startDrawing方法开始绘制多边形。在绘制过程中,可以实时更新多边形的点位置、颜周转时间最小,而时间片轮转算法的平均周转时间和带权周转时间最大。这色、透明度等属性。绘制完成后,调用minemap.editor实例的stopDrawing方法停止绘制。是因为短作业优先算法能够优先执行服务时间短的进程,减少了平均等待最后可以将绘制好的多边形保存到后端数据库中,以便后续使用。
阅读全文