Class WorkloadItem

java.lang.Object
com.uc4.api.systemoverview.WorkloadItem

public class WorkloadItem extends Object
This class describes one row in the System Workload Table.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a WorkloadItem unsing the specified Element.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    float
    Returns the average load of this client in percent.
    int
    Returns the number of the client or -1 if this WorkloadItem represents the workload of all clients.
    float
    getLoadAt(int hour)
    Returns the workload of this client in percent at the specified time.
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WorkloadItem

      public WorkloadItem(Element row)
      Constructs a WorkloadItem unsing the specified Element.
      Parameters:
      row - Element
  • Method Details

    • getAverageLoad

      public float getAverageLoad()
      Returns the average load of this client in percent.
      Returns:
      average load
    • getClient

      public int getClient()
      Returns the number of the client or -1 if this WorkloadItem represents the workload of all clients.
      Returns:
      client
    • getLoadAt

      public float getLoadAt(int hour)
      Returns the workload of this client in percent at the specified time.
      Parameters:
      hour - valid: 1 - 24
      Returns:
      workload in percent or -1 if no data exists
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object