okw.OKW_TimeOut Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
This is the core-module of OpenKeyWord. This module is automatically integrated by the adapters. In GUI automation, the core module is automatically integrated by the GUI modules (dependencies).
package okw;
public class OKW_TimeOut
{
private Integer PT;
private Integer TO;
public OKW_TimeOut( Integer fpsTO, Integer fpsPT )
{
setPT( fpsPT );
setTO( fpsTO );
}
/**
* Wartezeit zwischen zwei Pollings in [ms]
* @return
*/
public Integer getPT()
{
return PT;
}
public void setPT( Integer pollingTime )
{
PT = pollingTime;
}
/**
* Timeout Zeit in [s]. - Maximale zeit die gewarete werden soll.
* @return
*/
public Integer getTO()
{
return TO;
}
public void setTO( Integer timeOut )
{
TO = timeOut;
}
/**
* Anzahl der berechnetten Zyklen.
* @return
*/
public Integer getMaxCount()
{
return TO * 1000 / PT;
}
public String toString()
{
return "PT: " + PT.toString() + "ms, TO: " + TO.toString() + "s";
}
}