PageRenderTime 14ms CodeModel.GetById 6ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1package org.ictclas4j.bean;
 2
 3import java.io.Serializable;
 4
 5
 6/**
 7 * ??????
 8 * 
 9 * @author sinboy
10 * @since 2007.5.22
11 * 
12 */
13public class AdjoiningPos  implements Cloneable, Serializable{ 
14	private Pos pos;// ???? 
15
16	private double value; // ???
17
18	private int prev;// ?????N?????????????????????
19
20	private boolean isBest;
21 
22	private static final long serialVersionUID = 10000L;
23	public AdjoiningPos() {
24
25	}
26	
27	public AdjoiningPos(int tag,double value) {
28      this.pos=new Pos();
29      this.pos.setTag(tag);
30      this.value=value;
31	}
32	
33
34	public AdjoiningPos(Pos pos, double value) {
35		this.pos = pos;
36		this.value = value;
37	}
38
39 
40	public Pos getPos() {
41		return pos;
42	}
43
44	public void setPos(Pos pos) {
45		this.pos = pos;
46	}
47
48	public double getValue() {
49		return value;
50	}
51
52	public void setValue(double value) {
53		this.value = value;
54	}
55
56	public int getPrev() {
57		return prev;
58	}
59
60	public void setPrev(int prevPos) {
61		this.prev = prevPos;
62	}
63
64	public boolean isBest() {
65		return isBest;
66	}
67
68	public void setBest(boolean isBest) {
69		this.isBest = isBest;
70	}
71
72	 
73
74	public String toString() {
75		StringBuffer sb = new StringBuffer();
76		sb.append("pos:").append(pos);
77		sb.append(",values:").append(value);
78		sb.append(",isBest:").append(isBest);
79		return sb.toString();
80
81	}
82	
83	public AdjoiningPos clone() throws CloneNotSupportedException {
84		return (AdjoiningPos) super.clone();
85
86	}
87
88}