diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-08 11:55:27 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-08 11:55:27 +0500 |
commit | 16771c045a3d6fdffad322e55b6d346c93a03f71 (patch) | |
tree | 0990e6387c8143e2da90cf3cc0e4b0184c9bc8b7 /src/org/traccar/reports/model/SummaryReport.java | |
parent | 24346c8afd219c607e18306aa509f6029d3e850c (diff) | |
download | traccar-server-16771c045a3d6fdffad322e55b6d346c93a03f71.tar.gz traccar-server-16771c045a3d6fdffad322e55b6d346c93a03f71.tar.bz2 traccar-server-16771c045a3d6fdffad322e55b6d346c93a03f71.zip |
- Used @Consumes and @Produces instead of direct header access
- Renamed General to Summary
- Other changes
Diffstat (limited to 'src/org/traccar/reports/model/SummaryReport.java')
-rw-r--r-- | src/org/traccar/reports/model/SummaryReport.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/org/traccar/reports/model/SummaryReport.java b/src/org/traccar/reports/model/SummaryReport.java new file mode 100644 index 000000000..aed3915f1 --- /dev/null +++ b/src/org/traccar/reports/model/SummaryReport.java @@ -0,0 +1,42 @@ +package org.traccar.reports.model; + +public class SummaryReport { + + private String deviceName; + public String getDeviceName() { + return deviceName; + } + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + private double distance; + public double getDistance() { + return distance; + } + public void setDistance(double distance) { + this.distance = distance; + } + + public void addDistance(double distance) { + this.distance += distance; + } + + private double averageSpeed; + public double getAverageSpeed() { + return averageSpeed; + } + public void setAverageSpeed(double averageSpeed) { + this.averageSpeed = averageSpeed; + } + + private double maxSpeed; + public double getMaxSpeed() { + return maxSpeed; + } + public void setMaxSpeed(double maxSpeed) { + if (maxSpeed > this.maxSpeed) { + this.maxSpeed = maxSpeed; + } + } +} |