|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jqql.obsolete.SlideWindow
public class SlideWindow
SlideWidow QQ everytime only send a fragment, originally doesn't need to use SlideWindow. but consider for posterior expansibility, define a SlideWindow, its biggest size is 32 滑窗 QQ每次只发送一个分片,本来是无需使用滑窗的。但是为了以后的扩展性考虑,还是 定义一个滑窗,滑窗最大尺寸是32
Constructor Summary | |
---|---|
SlideWindow(int size,
int m)
constructed function, set some initial value 构造函数,设置一些初始值 |
|
SlideWindow(int size,
int l,
int m)
constructed function, set some initial value 构造函数,初始化一些值 |
Method Summary | |
---|---|
int |
getHigh()
|
int |
getIncrement()
|
int |
getLow()
|
int |
getMask()
|
int |
getMaxPassed()
|
int |
getWindowSize()
|
boolean |
isFinished()
|
boolean |
put(int window)
fill a window, if appointed window is out of indeed window area, then fail, or if this window has been filled, also fail, or else success if filled window is low position, increase low 填充一个窗口,如果指定的窗口在当然窗口范围之外,则失败,或者如果这个窗口 之前填充过,也失败,否则成功 如果填充的窗口是下限位置,则提升下限 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SlideWindow(int size, int m)
size
- 滑窗大小 // SlideWindow sizem
- 最大窗口值 // window value maxpublic SlideWindow(int size, int l, int m)
size
- 滑窗大小 // SlideWindow sizel
- 初始下限值 // initial low valuem
- 最大窗口值 // window value maxMethod Detail |
---|
public boolean put(int window)
fill a window, if appointed window is out of indeed window area, then fail, or if this window has been filled, also fail, or else success if filled window is low position, increase low 填充一个窗口,如果指定的窗口在当然窗口范围之外,则失败,或者如果这个窗口 之前填充过,也失败,否则成功 如果填充的窗口是下限位置,则提升下限
window
- 窗口索引
public int getMaxPassed()
public boolean isFinished()
public int getLow()
public int getHigh()
public int getMask()
public int getWindowSize()
public int getIncrement()
|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |