📄 link.java
字号:
package fy;
public class Link {
protected Node start;
protected Node end;
protected float cost;
protected String linkId;
public static int linkCount=0;
public Link(Node start,Node end,float cost){
this.end=end;
this.start=start;
this.cost=cost;
this.linkId="link"+linkCount;
linkCount++;
}
public float getCost() {
return cost;
}
public void setCost(float cost) {
this.cost = cost;
}
public Node getEnd() {
return end;
}
public void setEnd(Node end) {
this.end = end;
}
public String getLinkId() {
return linkId;
}
public void setLinkId(String linkId) {
this.linkId = linkId;
}
public Node getStart() {
return start;
}
public void setStart(Node start) {
this.start = start;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -