/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package DataObjects;

/**
 * This class stores the relevant data about a drum on the winch
 * 
 * @author Alex
 */
public class DrumParameters {
    private int coreRadius;
    private int cableLength;
    private int kFactor;
    private int endOffset;
    private int quadratureSensor;
    
    public DrumParameters() {
        coreRadius = 0;
        cableLength = 0;
        kFactor = 0;
        endOffset = 0;
        quadratureSensor = 64;
    }
    
    public DrumParameters(int coreRadius, int cableLength, int kFactor,
            int endOffset, int quadratureSensor) {
        this.coreRadius = coreRadius;
        this.cableLength = cableLength;
        this.kFactor = kFactor;
        this.endOffset = endOffset;
        this.quadratureSensor = quadratureSensor;
    }
    
    public void setCoreRadius(int newCoreRadius) {
        coreRadius = newCoreRadius;
    }
    
    public int getCoreRadius() {
        return coreRadius;
    }
    
    public void setCableLength(int newCableLength) {
        coreRadius = newCableLength;
    }
    
    public int getCableLength() {
        return cableLength;
    }
    
    public void setKFactor(int newKFactor) {
        kFactor = newKFactor;
    }
    
    public int getKFactor() {
        return kFactor;
    }
    
    public void setEndOffset(int newEndOffset) {
        endOffset = newEndOffset;
    }
    
    public int getEndOffset() {
        return endOffset;
    }
    
    public void setQuadratureSensor(int newQuadratureSensor) {
        quadratureSensor = newQuadratureSensor;
    }
    
    public int getQuadratureSensor() {
        return quadratureSensor;
    }
}

@@ -467,21 +467,46 @@
 Sensor;%0A
+    private Winch winch;%0A
     %0A
-
     publ
@@ -651,16 +651,38 @@
 r = 64;%0A
+        winch = null;%0A
     %7D%0A  
@@ -795,32 +795,45 @@
 quadratureSensor
+, Winch winch
 ) %7B%0A        this
@@ -962,24 +962,24 @@
  endOffset;%0A
-
         this
@@ -1008,32 +1008,60 @@
 adratureSensor;%0A
+        this.winch = winch;%0A
     %7D%0A    %0A    p
@@ -1912,10 +1912,151 @@
 ;%0A    %7D%0A
+    %0A    public void setWinch(Winch newWinch) %7B%0A        winch = newWinch;%0A    %7D%0A    %0A    public int getWinch() %7B%0A        return winch;%0A    %7D%0A
 %7D%0A

Update DrumParameters.java