forked from ganbo/RealTimeTraffic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project_UML
79 lines (58 loc) · 1.61 KB
/
project_UML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@startuml intergratedUML.png
title <size:28>Real Time Traffic Diagram\n <size:18> xdata@SIAT 2013-01-07
class RealTimeTrafficTopology {
+void main(String[] args)
}
RealTimeTrafficTopology-->JavaSocketSpout:GPSDataLine >
class JavaSocketSpout {
~SpoutOutputCollector _collector
~Random _rand
-String file
+void open(Map conf, TopologyContext context, SpoutOutputCollector collector)
+void nextTuple()
+void ack(Object id)
+void fail(Object id)
+void declareOutputFields(OutputFieldsDeclarer declarer)
}
abstract class BaseRichSpout {
}
BaseRichSpout <|.. JavaSocketSpout
JavaSocketSpout-->MapMatchingBolt:tuple >
class MapMatchingBolt {
+void prepare(Map stormConf, TopologyContext context, OutputCollector collector)
+void execute(TupleInfo input)
+void cleanup()
+void declareOutputFields(OutputFieldsDeclarer declarer)
+Map<String,Object> getComponentConfiguration()
}
interface IRichBolt {
}
IRichBolt <|.. MapMatchingBolt
MapMatchingBolt-->SpeedCalculatorBolt: tuple >
class SpeedCalculatorBolt {
~Tuple tuple
-OutputCollector collector
+void execute()
+void declareOutputFields(OutputFieldsDeclarer declarer)
+void prepare(Map stormConf, TopologyContext context, OutputCollector collector)
+void execute(Tuple input)
+void cleanup()
+Map<String,Object> getComponentConfiguration()
}
interface IRichBolt {
}
IRichBolt <|.. SpeedCalculatorBolt
SpeedCalculatorBolt-->WebFront
class tupleInfo {
-String viechleID
-String dateTime
-double lantitude
-double longitude
-int speed
-int melostone
-int bearing
+Fields getFieldList()
+String getDelimiter()
}
tupleInfo--JavaSocketSpout :< call
@enduml