diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-05 14:41:53 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-05 14:41:53 +0500 |
commit | 5a6e7582a7978341f3a2de9a81cb63252bca0bb7 (patch) | |
tree | 585eab11bfd805b9de814324e5e892e854fc1c62 /src/org/traccar/reports/model | |
parent | 933247b3d2ec24d65203fae39dcafbe2c9afb87e (diff) | |
download | traccar-server-5a6e7582a7978341f3a2de9a81cb63252bca0bb7.tar.gz traccar-server-5a6e7582a7978341f3a2de9a81cb63252bca0bb7.tar.bz2 traccar-server-5a6e7582a7978341f3a2de9a81cb63252bca0bb7.zip |
- Moved GeneralReport to separate file
- Removed unnecessary getOut function
- Added methods sorting
Diffstat (limited to 'src/org/traccar/reports/model')
-rw-r--r-- | src/org/traccar/reports/model/GeneralReport.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/org/traccar/reports/model/GeneralReport.java b/src/org/traccar/reports/model/GeneralReport.java new file mode 100644 index 000000000..f60bb7238 --- /dev/null +++ b/src/org/traccar/reports/model/GeneralReport.java @@ -0,0 +1,42 @@ +package org.traccar.reports.model; + +public class GeneralReport { + + private String deviceName; + public String getDeviceName() { + return deviceName; + } + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + private double distance = 0; + public double getDistance() { + return distance; + } + public void setDistance(double distance) { + this.distance = distance; + } + + public void addDistance(double distance) { + this.distance += distance; + } + + private double averageSpeed = 0; + public double getAverageSpeed() { + return averageSpeed; + } + public void setAverageSpeed(double averageSpeed) { + this.averageSpeed = averageSpeed; + } + + private double maxSpeed = 0; + public double getMaxSpeed() { + return maxSpeed; + } + public void setMaxSpeed(double maxSpeed) { + if (maxSpeed > this.maxSpeed) { + this.maxSpeed = maxSpeed; + } + } +} |