?? queuenode.java
字號:
?
+
package com.gftech.ictclas4j.bean;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
/**
* 隊列節點
* @author sinboy
*
*/
public class QueueNode {
private int parent;//父節點的位置
private int index;//分詞路徑的編號,即第幾條分詞路徑
private double weight;//權重
public QueueNode() {
}
public QueueNode(int parent, int index, double weight) {
this.parent = parent;
this.index = index;
this.weight = weight;
}
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
public int getParent() {
return parent;
}
public void setParent(int parent) {
this.parent = parent;
}
public double getWeight() {
return weight;
}
public void setWeight(double weight) {
this.weight = weight;
}
public String toString() {
return ReflectionToStringBuilder.toString(this);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -