/*
 * 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  Johnny White, Noah Fujioka
 * @date    11/19/2014
 */
public class Winch{
    private DrumParameters drum;
    private Parachute parachute;
    private float brakePressure;
    private float batteryVoltage;

    public Winch() {
        drum = null;
        parachute = null;
        brakePressure = 0;
        batteryVoltage = 0;
    }
    
    public Winch(int coreRadius, int cableLength, int kFactor, int endOffset, int quadratureSensor) {
        this.drum = coreRadius;
        this.parachute = cableLength;
        this.brakePressure = brakePressure;
        this.batteryVoltage = batteryVoltage;
    }
    
    public void setDrum(DrumParameters newDrum) {
        drum = newDrum;
    }
    
    public DrumParameters getDrum() {
        return drum;
    }
    
    public void setParachute(Parachute newParachute) {
        parachute = newParachute;
    }
    
    public Parachute getParachute() {
        return parachute;
    }
    
    public void setParachute(float newBrakePressure) {
        brakePressure = newBrakePressure;
    }
    
    public float getBrakePressure() {
        return brakePressure;
    }
    public void setBatteryVoltage(float newBatteryVoltage) {
        batteryVoltage = newBatteryVoltage;
    }
    
    public float getBatteryVoltage() {
        return batteryVoltage;
    }    
}

@@ -649,89 +649,91 @@
 nch(
-int coreRadius, int cableLength, int kFactor, int endOffset, int quadratureSensor
+DrumParameters drum, Parachute parachute, float brakePressure, float batteryVoltage
 ) %7B%0A
@@ -756,18 +756,12 @@
 m = 
-coreRadius
+drum
 ;%0A  
@@ -787,19 +787,17 @@
 e = 
-cableLength
+parachute
 ;%0A  

Update Winch.java