public class FailureCauseTimeInterval extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
public FailureCauseTimeInterval(org.jfree.data.time.TimePeriod period, String name, int number)
period
- the TimePeriod in which the event happenedname
- the name of the eventnumber
- the number of times the event happenedpublic FailureCauseTimeInterval(org.jfree.data.time.TimePeriod period, String name, String id, int number)
period
- the TimePeriod in which the event happenedname
- the name of the eventid
- the id of the eventnumber
- the number of times the event happenedpublic org.jfree.data.time.TimePeriod getPeriod()
public String getName()
public String getId()
public int getNumber()
public void addNumber(int add)
add
- number to addCopyright © 2016–2019. All rights reserved.