OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
OKW_TimeOut.java
1 package okw;
2 
3 public class OKW_TimeOut
4 {
5  private Integer PT;
6  private Integer TO;
7 
8  public OKW_TimeOut( Integer fpsTO, Integer fpsPT )
9  {
10  setPT( fpsPT );
11  setTO( fpsTO );
12  }
13 
18  public Integer getPT()
19  {
20  return PT;
21  }
22 
23  public void setPT( Integer pollingTime )
24  {
25  PT = pollingTime;
26  }
27 
32  public Integer getTO()
33  {
34  return TO;
35  }
36 
37  public void setTO( Integer timeOut )
38  {
39  TO = timeOut;
40  }
41 
46  public Integer getMaxCount()
47  {
48  return TO * 1000 / PT;
49  }
50 
51  public String toString()
52  {
53  return "PT: " + PT.toString() + "ms, TO: " + TO.toString() + "s";
54  }
55 }
okw.OKW_TimeOut.getPT
Integer getPT()
Wartezeit zwischen zwei Pollings in [ms].
Definition: OKW_TimeOut.java:18
okw.OKW_TimeOut.getTO
Integer getTO()
Timeout Zeit in [s].
Definition: OKW_TimeOut.java:32
okw.OKW_TimeOut.getMaxCount
Integer getMaxCount()
Anzahl der berechnetten Zyklen.
Definition: OKW_TimeOut.java:46
okw.OKW_TimeOut
Definition: OKW_TimeOut.java:3