/*
 * 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 information about a launch
 *
 * @author Noah Fujioka
 */
public class LaunchMetaData {
    //Profile OperatorProfile
    Pilot currentPilot;
    Sailplane currentSailplane;
    Airfield currentAirfield;
    Runway currentRunway;
    Position currentPosition;
    Parachute currentParachute;
    DrumParameters currentDrumParameters;
    Environmental currentEnvironmental; //At the start of the flight
    long startTimestamp;
    long endTimestamp;
    
    public LaunchMetaData(){
    }
    
    public LaunchMetaData(Pilot newPilot, Sailplane newSailplane,
            Airfield newAirfield, Runway newRunway, Position newPosition,
            Parachute newParachute, DrumParameters newDrumParameters,
            Environmental newEnvironmental, long newStartTimestamp,
            long newEndTimestamp){
        //Profile OperatorProfile;
        currentPilot = newPilot;
        currentSailplane = newSailplane;
        currentAirfield = newAirfield;
        currentRunway = newRunway;
        currentPosition = newPosition;
        currentParachute = newParachute;
        currentDrumParameters = newDrumParameters;
        currentEnvironmental = newEnvironmental;
        startTimestamp = newStartTimestamp;
        endTimestamp = newEndTimestamp;
    }
    
    @Override
    public String toString() { 
        return (currentPilot.toString() + ", " + currentSailplane.toString() +
                ", " + startTimestamp);
    }
    
    public Pilot getPilot(){
        return currentPilot;
    }
    
    public Sailplane getSailplane(){
        return currentSailplane;
    }
    
    public Airfield getAirfield(){
        return currentAirfield;
    }
    
    public Runway getRunway(){
        return currentRunway;
    }
    
    public Position getPosition(){
        return currentPosition;
    }
    
    public Parachute getParachtue(){
        return currentParachute;
    }
    
    public DrumParameters getDrumParameters(){
        return currentDrumParameters;
    }
    
    public Environmental getEnvironmental(){
        return currentEnvironmental;
    }
    
    public long getStartTimestamp(){
        return startTimestamp;
    }
    
    public long getEndTimestamp(){
        return endTimestamp;
    }
}

@@ -555,24 +555,48 @@
 Parameters;%0A
+    Winch currentWinch;%0A
     Environm
@@ -652,16 +652,16 @@
  flight%0A
-
     long
@@ -1368,24 +1368,67 @@
 Parameters;%0A
+        currentWinch = newWinchParameters;%0A
         curr
@@ -2237,24 +2237,24 @@
 rameters()%7B%0A
-
         retu
@@ -2282,32 +2282,121 @@
 ers;%0A    %7D%0A    %0A
+    public Winch getWinchParameters()%7B%0A        return currentWinchParameters;%0A    %7D%0A    %0A
     public Envir

Update LaunchMetaData.java