1 | Reading a Meter |
---|
2 | *********************************************************************** |
---|
3 | |
---|
4 | Short Description |
---|
5 | ----------------------------------------------------------------------- |
---|
6 | |
---|
7 | A meter is read and the read values are stored in system. |
---|
8 | |
---|
9 | |
---|
10 | Actor(s) |
---|
11 | ----------------------------------------------------------------------- |
---|
12 | |
---|
13 | Meter Reader |
---|
14 | |
---|
15 | |
---|
16 | Trigger(s) |
---|
17 | ----------------------------------------------------------------------- |
---|
18 | |
---|
19 | A read-meter form is requested from portal. |
---|
20 | |
---|
21 | |
---|
22 | Result(s) |
---|
23 | ----------------------------------------------------------------------- |
---|
24 | |
---|
25 | The new meter values are stored in database. |
---|
26 | |
---|
27 | |
---|
28 | Incoming Data |
---|
29 | ----------------------------------------------------------------------- |
---|
30 | |
---|
31 | Meter ID, meter value, date and time of reading |
---|
32 | |
---|
33 | |
---|
34 | Outgoing Data |
---|
35 | ----------------------------------------------------------------------- |
---|
36 | |
---|
37 | - Message about successful reading |
---|
38 | - Log message |
---|
39 | |
---|
40 | |
---|
41 | Precondition(s) |
---|
42 | ----------------------------------------------------------------------- |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | Postcondition(s) |
---|
47 | ----------------------------------------------------------------------- |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | Invariant(s) |
---|
52 | ----------------------------------------------------------------------- |
---|
53 | |
---|
54 | |
---|
55 | |
---|
56 | Essential Steps |
---|
57 | ----------------------------------------------------------------------- |
---|
58 | |
---|
59 | * Authenticate meter reader |
---|
60 | * Get meter id, meter value, datetime |
---|
61 | * Check input values: |
---|
62 | |
---|
63 | * Does the meter id exist? |
---|
64 | * If not, ask and add a new one. |
---|
65 | * value >= old value? |
---|
66 | |
---|
67 | * Add new reading in database |
---|
68 | * Output success message |
---|
69 | |
---|
70 | |
---|
71 | Open Issues |
---|
72 | ----------------------------------------------------------------------- |
---|
73 | |
---|
74 | Meter data input can also be performed by some automatic system: |
---|
75 | |
---|
76 | - automatic meters send their data automatically (how does these |
---|
77 | data look like and where is it stored?) |
---|
78 | |
---|
79 | - a smartphone/tablet app might deliver the data by photograph/OCR |
---|
80 | |
---|
81 | These input devices need an API to deliver data or they require some |
---|
82 | API to be able to input data into the system. |
---|
83 | |
---|
84 | |
---|
85 | Remarks |
---|
86 | ----------------------------------------------------------------------- |
---|
87 | |
---|
88 | |
---|
89 | .. raw:: latex |
---|
90 | |
---|
91 | \pagebreak[2] |
---|