All Downloads are FREE. Search and download functionalities are using the official Maven repository.

okw.OKW_TimeOut Maven / Gradle / Ivy

Go to download

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).

There is a newer version: 0.2.44
Show newest version
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";
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy