Skip to content

Commit

Permalink
set cost to double
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasa committed Mar 13, 2022
1 parent 9bdd614 commit e5c7da4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/pgrserver/entity/PgrServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class PgrServer {
private int id;
private int source;
private int target;
private int cost;
private double cost;

/**
* コンストラクタ
Expand Down Expand Up @@ -77,14 +77,14 @@ public void setTarget(int target) {
/**
* @return cost を取得する
*/
public int getCost() {
public double getCost() {
return cost;
}

/**
* @param cost cost を設定する
*/
public void setCost(int cost) {
public void setCost(double cost) {
this.cost = cost;
}

Expand Down

0 comments on commit e5c7da4

Please sign in to comment.