|
|
|
@ -21,7 +21,7 @@ public class Boat {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public Boat(String name, double velocity, String abbrev) {
|
|
|
|
public Boat(String name, double velocity, String abbrev) {
|
|
|
|
this.velocity = velocity;
|
|
|
|
this.velocity = velocity;
|
|
|
|
this.velocityProp = new SimpleStringProperty(String.valueOf(velocity));
|
|
|
|
this.velocityProp = new SimpleStringProperty(String.valueOf(Math.round(velocity)));
|
|
|
|
this.abbrev = abbrev;
|
|
|
|
this.abbrev = abbrev;
|
|
|
|
this.name = new SimpleStringProperty(name);
|
|
|
|
this.name = new SimpleStringProperty(name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|