Profile.java [src/java/d/soils] Revision: default  Date:
/*
 * 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 d.soils;

import soils.Horizon;

/**
 *
 * @author sidereus
 */
public class Profile {

  double top;
  double bottom;
  Horizon horizon;


  Profile(double top, double bottom, Horizon horizon) {
    this.top = top;
    this.bottom = bottom;
    this.horizon = horizon;
  }


  double getTop() {
    return top;
  }


  double getBottom() {
    return bottom;
  }


  public Horizon getHorizon() {
    return horizon;
  }


  public double getWeight(double actualTop, double actualBottom) {
    return (bottom - top) / (actualBottom - actualTop); // just fraction, do we need percentage?
  }

}