/*
 * 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 Positions {
    String position;
    String positionMaximumLength;
    String positionSlope;
    String positionCenterlineOffset;
    
    public Positions(){
    }
    @Override
    public String toString(){
        return positionMaximumLength;
    }
    
    public Positions(String position1, String positionMaximumLength1, String positionSlope1, 
                    String positionCenterlineOffset1){
       position = position1;
       positionMaximumLength = positionMaximumLength1;
       positionSlope = positionSlope1;
       positionCenterlineOffset = positionCenterlineOffset1;
    }
        
   /**
    * This method can change the position and makes the 
    * position part of the Airfield object.
    * This method always works, only if airfield already
    * exists.
    *
    * @param  position1  the String that is designated to
    *                    position of the Airfield object
    */
    public void setPosition(String position1){
        position = position1;
    }

   /**
    * Returns an Airfield object position to be displayed.
    * This method always returns immediately,only if airfield exists. 
    * @return      the position of Airfield object
    */
    public String getPosition(){
       return position; 
    }

   /**
    * This method can change the position maximum length and makes the 
    * position Maximum Length part of the Airfield object.
    * This method always works, only if airfield already
    * exists.
    *
    * @param  positionMaximumLength1  the String that is 
    *                                 designated to position maximum 
    *                                 length of the Airfield object
    */
    public void setPositionMaximumLength(String positionMaximumLength1){
        positionMaximumLength= positionMaximumLength1;
    }
       /**
    * Returns an Airfield object position maximum length to be displayed. 
    * This method always returns immediately,only if airfield exists. 
    * @return      the designator of Airfield object
    */ 
    public String getPositionMaximumLength(){
       return positionMaximumLength; 
    }

/**
 * This method can change the position slope and makes the 
 * position slope part of the Airfield object.
 * This method always works, only if airfield already
 * exists.
 *
 * @param  positionSlope1  the String that is designated to
 *                         position slop of the Airfield object
 */
    public void setPositionSlope(String positionSlope1){
            positionSlope= positionSlope1;
    }
    
   /**
    * Returns an Airfield object position slope to be displayed. 
    * This method always returns immediately,only if airfield exists. 
    * @return      the position slope of Airfield object
    */    
    public String getPositionSlope(){
           return positionSlope; 
    }
    
   /**
    * This method can change the position centerline offset and 
    * makes the position centerline offset part of the Airfield object.
    * This method always works, only if airfield already
    * exists.
    *
    * @param  positionCenterlineOffset1  the String that is 
    *                                    designated to position slope of 
    *                                    the Airfield object
    */
    public void setPositionCenterlineOffset(String positionCenterlineOffset1){
        positionCenterlineOffset = positionCenterlineOffset1;
    }
    
   /**
    * Returns an Airfield object position centerline offset to be displayed. 
    * This method always returns immediately,only if airfield exists. 
    * @return      the position centerline offset of Airfield object
    */   
    public String getPositionCenterlineOffset(){
       return positionCenterlineOffset; 
    }
}

    

@@ -237,16 +237,26 @@
 utierrez
+, mtdargen
 %0A */%0Apub
@@ -281,31 +281,29 @@
 s %7B%0A    
-String position
+Runway parent
 ;%0A    St
@@ -542,31 +542,29 @@
 sitions(
-String position
+Runway parent
 1, Strin
@@ -676,34 +676,30 @@
        p
-osition = position
+arent = parent
 1;%0A     
@@ -907,74 +907,54 @@
 the 
-position and makes the %0A    * position part of the Airfield object
+Runway that a Position object%0A    * belongs to
 .%0A  
@@ -1047,189 +1047,125 @@
 m  p
-osition1  the String that is designated to%0A    *                    position of the Airfield object%0A    */%0A    public void setPosition(String position1)%7B%0A        position = position
+arent1  the Runway this position belongs to%0A    */%0A    public void setParent(Runway parent1)%7B%0A        parent = parent
 1;%0A 
@@ -1191,35 +1191,34 @@
 Returns 
-an Airfield
+the Runway
  object 
 position
@@ -1209,25 +1209,30 @@
  object 
-p
+this P
 osition 
 to be di
@@ -1223,32 +1223,26 @@
 osition 
-to be displayed.
+belongs to
 %0A    * T
@@ -1374,34 +1374,32 @@
  public 
-String getPosition
+Runway getParent
 ()%7B%0A    
@@ -1409,23 +1409,21 @@
 return p
-osition
+arent
 ; %0A    %7D

Update Positions.java