package ch.trq.carrera.javapilot.akka.trackanalyzer;

/**
 * Created by Frank on 22.09.2015.
 */
public class TrackSection {
    private State direction;
    /// Duration in ms
    private long duration=0;
    private long timeStamp;

    private double distance=0;

    private int id;

    public TrackSection(State direction, long timeStamp){
        this.direction = direction;
        this.timeStamp = timeStamp;
    }
    public void setDirection(State direction){
        this.direction = direction;
    }
    public void setDuration(long duration){
        this.duration = duration;
    }
    public void setTimeStamp(long timeStamp){
        this.timeStamp = timeStamp;
    }

    public State getDirection(){
        return direction;
    }

    public long getDuration(){
        return duration;
    }

    public long getTimeStamp(){
        return timeStamp;
    }

    public double getDistance() {
        return distance;
    }

    public void setDistance(double distance) {
        this.distance = distance;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void addDuration(long dDuration){
        duration += dDuration;
    }
}

@@ -281,16 +281,46 @@
 nt id;%0A%0A
+    private double friction;%0A%0A
     publ
@@ -1100,32 +1100,186 @@
 turn id;%0A    %7D%0A%0A
+    public double getFriction() %7B%0A        return friction;%0A    %7D%0A%0A    public void setFriction(double friction) %7B%0A        this.friction = friction;%0A    %7D%0A%0A
     public void 

add friction attribute to tracksection