com.sonyericsson.jenkins.plugins.bfa.graphs
Class FailureCauseTimeInterval

java.lang.Object
  extended by com.sonyericsson.jenkins.plugins.bfa.graphs.FailureCauseTimeInterval

public class FailureCauseTimeInterval
extends Object

Class containing statistics data for a time interval. A time interval consists of a TimePeriod, a name of the event during this period (e.g. failure cause name or failure cause category), a number of times the event happened, and finally an id of the event.

Author:
Fredrik Persson <fredrik6.persson@sonymobile.com>, Christoffer Lauri <christoffer.lauri@sonymobile.com>

Constructor Summary
FailureCauseTimeInterval(org.jfree.data.time.TimePeriod period, String name, int number)
          Default constructor, used when no id of the event is available.
FailureCauseTimeInterval(org.jfree.data.time.TimePeriod period, String name, String id, int number)
          Default constructor, used when an id of the event is available.
 
Method Summary
 void addNumber(int add)
          Adds to the number of times the event occurred.
 String getId()
          Getter for the event id of this interval.
 String getName()
          Getter for the event name of this interval.
 int getNumber()
          Getter for the number of times the event occurred during this interval.
 org.jfree.data.time.TimePeriod getPeriod()
          Getter for the time period of this interval.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FailureCauseTimeInterval

public FailureCauseTimeInterval(org.jfree.data.time.TimePeriod period,
                                String name,
                                int number)
Default constructor, used when no id of the event is available. For example, no id is available for failure cause categories.

Parameters:
period - the TimePeriod in which the event happened
name - the name of the event
number - the number of times the event happened

FailureCauseTimeInterval

public FailureCauseTimeInterval(org.jfree.data.time.TimePeriod period,
                                String name,
                                String id,
                                int number)
Default constructor, used when an id of the event is available.

Parameters:
period - the TimePeriod in which the event happened
name - the name of the event
id - the id of the event
number - the number of times the event happened
Method Detail

getPeriod

public org.jfree.data.time.TimePeriod getPeriod()
Getter for the time period of this interval.

Returns:
time period

getName

public String getName()
Getter for the event name of this interval.

Returns:
event name

getId

public String getId()
Getter for the event id of this interval.

Returns:
event id

getNumber

public int getNumber()
Getter for the number of times the event occurred during this interval.

Returns:
number of times the event occurred

addNumber

public void addNumber(int add)
Adds to the number of times the event occurred.

Parameters:
add - number to add

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2014. All Rights Reserved.