Project

General

Profile

Use Cases » History » Version 6

Никита Артемов, 10/09/2013 01:50 PM

1 1 Кирилл Кулаков
h1. Use Cases
2
3 3 Кирилл Кулаков
category-channel = channel in geo2tag, corresponding category of GeTS
4 1 Кирилл Кулаков
5 2 Кирилл Кулаков
h2. Points
6
7
h3. Load points
8
9
* Send to GeTS (???) list of categories, coordinates of circle center and radius
10
* GeTS loads from geo2tag (???) list of category-channels with 2D filter (circle center and radius)
11
* GeTS merges list of points from channels and remove duplicates.
12 1 Кирилл Кулаков
* GeTS returns list of points.
13 2 Кирилл Кулаков
14
h3. Update point info (categories and data)
15
16
* Send to GeTS (???) point with list of categories and point data
17
* GeTS search category-channels with old version of point
18
* if point data is differ then exists, then GeTS removes point from category-channels, else GeTS removes point from old category-channels
19
* GeTS add point to geo2tag (???) to new category-channels (or to all category-channels if poind data was changed)
20
* GeTS returns OK answer
21
22
h3. Add point
23
24
* Send to GeTS (???) point with list of categories and point data
25
* GeTS add point to geo2tag (???) to all category-channels
26 5 Кирилл Кулаков
* if requested category-channel doesn't exists then GeTS creates (???) category-channel
27 2 Кирилл Кулаков
28
h3. Remove point from category-channel(s)
29
30
*(We need function in geo2tag for removing points from channels)*
31
32 4 Кирилл Кулаков
*(We need function in geo2tag for removing channels)*
33
34 2 Кирилл Кулаков
* Send to GeTS (???) point with list of categories
35
* For each category GeTS:
36
*# loads point from category-channel (???); 
37
*# remove deleted point from list;
38
*# delete old category-channel (???);
39
*# create new category-channel (???) and add list of points (???)
40 6 Никита Артемов
41
h2. Tracks
42
43
h3. Load track
44
45
* Send to GeTS (loadTrack) name of track
46
* GeTS loads track from geo2tag (filterChannel)
47
* GeTS returns track.
48
49
h3. Update track's info
50
51
* Send to GeTS (updateTrackInfo) point with list of categories and point data
52
* GeTS search category-channels with old version of point
53
* if point data is differ then exists, then GeTS removes point from category-channels, else GeTS removes point from old category-channels
54
* GeTS add point to geo2tag (???) to new category-channels (or to all category-channels if poind data was changed)
55
* GeTS returns OK answer
56
57
h3. Remove track
58
59
* Send to GeTS (removeTrack) name of track
60
* GeTS removes track from geo2tag (???)
61
* GeTS returns OK answer
62
63
h3. Add track
64
65
* Send to GeTS (addTrack) with name, description, url, activeRadius
66
* GeTS add channel to geo2tag (addChannel), if there is no channel with given name in the system
67
* GeTS returns OK answer
68
69
h2. Authorization