You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
521 B

package seng302.Model;
import javafx.util.Pair;
import java.util.HashMap;
/**
* Created by hba56 on 10/05/17.
*/
public class Polars {
private HashMap polarValues;
public Polars() {
polarValues = new HashMap();
}
public void addEstimate(double trueWindSpeed, double trueWindAngle, double boatSpeed){
Pair newKey = new Pair(trueWindSpeed, trueWindAngle);
polarValues.put(newKey, boatSpeed);
}
public HashMap getPolarValues() {
return polarValues;
}
}