/ictclas4j/src/org/ictclas4j/bean/AdjoiningPos.java
http://ictclas4j.googlecode.com/ · Java · 88 lines · 54 code · 27 blank · 7 comment · 0 complexity · 025352439cc0b251c19cb9a9490fa577 MD5 · raw file
- package org.ictclas4j.bean;
-
- import java.io.Serializable;
-
-
- /**
- * ??????
- *
- * @author sinboy
- * @since 2007.5.22
- *
- */
- public class AdjoiningPos implements Cloneable, Serializable{
- private Pos pos;// ????
-
- private double value; // ???
-
- private int prev;// ?????N?????????????????????
-
- private boolean isBest;
-
- private static final long serialVersionUID = 10000L;
- public AdjoiningPos() {
-
- }
-
- public AdjoiningPos(int tag,double value) {
- this.pos=new Pos();
- this.pos.setTag(tag);
- this.value=value;
- }
-
-
- public AdjoiningPos(Pos pos, double value) {
- this.pos = pos;
- this.value = value;
- }
-
-
- public Pos getPos() {
- return pos;
- }
-
- public void setPos(Pos pos) {
- this.pos = pos;
- }
-
- public double getValue() {
- return value;
- }
-
- public void setValue(double value) {
- this.value = value;
- }
-
- public int getPrev() {
- return prev;
- }
-
- public void setPrev(int prevPos) {
- this.prev = prevPos;
- }
-
- public boolean isBest() {
- return isBest;
- }
-
- public void setBest(boolean isBest) {
- this.isBest = isBest;
- }
-
-
-
- public String toString() {
- StringBuffer sb = new StringBuffer();
- sb.append("pos:").append(pos);
- sb.append(",values:").append(value);
- sb.append(",isBest:").append(isBest);
- return sb.toString();
-
- }
-
- public AdjoiningPos clone() throws CloneNotSupportedException {
- return (AdjoiningPos) super.clone();
-
- }
-
- }