/*
 * 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;

/**
 *
 * @author garreola-gutierrez
 */
public class Runway {
    String runway;
    String magneticHeading;
   
    public Runway(){
    }
    @Override
    public String toString(){
        return magneticHeading;
    }
    
    public Runway(String runway1, String magneticHeading1){
       runway = runway1;
       magneticHeading = magneticHeading1;
    }
    
   /**
    * This method can change the runway and makes the 
    * runway part of the Airfield object.
    * This method always works, only if airfield already
    * exists.
    *
    * @param runway1  the String that is designated to
    *                 runway of the Airfield object
    */
    public void setRunway1(String runway1){
        runway= runway1;
    }
    
   /**
    * Returns an Airfield object runway to be displayed. 
    * This method always returns immediately,only if airfield exists. 
    * @return      the runway of Airfield object
    */
    public String getRunway(){
       return runway; 
    }
        public void setMagneticHeading(String magneticHeading1){
        magneticHeading= magneticHeading1;
    }
  /**
    * Returns an Airfield object magnetic heading to be displayed. 
    * This method always returns immediately,only if airfield exists. 
    * @return      the magnetic heading of Airfield object
    */
    public String getMagneticHeading(){
       return magneticHeading; 
    }
      
}

@@ -237,16 +237,29 @@
 utierrez
+, matt dargen
 %0A */%0Apub
@@ -281,29 +281,31 @@
 y %7B%0A    
-String runway
+Airfield parent
 ;%0A    St
@@ -627,71 +627,42 @@
 the 
-runway and makes the %0A    * runway part of the Airfield
+Airfield parent of a Runway
  object
-.
 %0A   
@@ -698,24 +698,22 @@
 only if 
-airfield
+Runway
  already
@@ -750,175 +750,128 @@
 ram 
-runway
+parent
 1  the 
-String that is designated to%0A    *                 runway of the Airfield object%0A    */%0A    public void setRunway1(String runway1)%7B%0A        runway= runway
+Airfield this runway belongs to%0A    */%0A    public void setParent(Airfield parent1)%7B%0A        parent = parent
 1;%0A 
@@ -893,34 +893,35 @@
 *%0A    * Returns 
-an
+the
  Airfield object
@@ -925,30 +925,30 @@
 ect 
-runway to be displayed
+this Runway belongs to
 . %0A 
@@ -987,32 +987,33 @@
 immediately,
+ 
 only if 
 airfield exi
@@ -996,32 +996,30 @@
 ly, only if 
-airfield
+Runway
  exists. %0A  
@@ -1043,26 +1043,28 @@
 the 
-runway of Airfield
+parent of the Runway
  obj
@@ -1089,24 +1089,26 @@
 lic 
-String getRunway
+Airfield getParent
 ()%7B%0A
@@ -1121,22 +1121,22 @@
  return 
-runway
+parent
 ; %0A    %7D
@@ -1136,24 +1136,35 @@
  %0A    %7D%0A    
+%0A    %0A    %0A
     public v

Update Runway.java