public class PRQAComplianceStatus extends PRQAStatus implements Serializable, Comparable<PRQAComplianceStatus>
logger, notifications, settings, thresholds
Constructor and Description |
---|
PRQAComplianceStatus() |
PRQAComplianceStatus(int messages,
Double fileCompliance,
Double projectCompliance) |
PRQAComplianceStatus(QaFrameworkReportSettings settings) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PRQAComplianceStatus o)
Implemented this to decide which one is 'better than last'.
|
Double |
getFileCompliance() |
int |
getMessageCount(int threshold) |
int |
getMessages() |
Map<Integer,Integer> |
getMessagesByLevel() |
List<MessageGroup> |
getMessagesGroups() |
int |
getMessagesWithinThreshold() |
int |
getMessagesWithinThresholdCount(int thresholdLevel) |
Double |
getProjectCompliance() |
Number |
getReadout(StatusCategory cat) |
boolean |
isValid()
Tests whether the result contains valid values.
|
void |
setFileCompliance(Double fileCompliance) |
void |
setMessages(int messages) |
void |
setMessagesGroups(List<MessageGroup> messagesGroups) |
void |
setMessagesWithinThreshold(int messagesWithinThreshold) |
void |
setMessagesWithinThresholdForEachMessageGroup(int thresholdLevel) |
void |
setProjectCompliance(Double projCompliance) |
void |
setReadout(StatusCategory category,
Number value) |
String |
toHtml()
Returns a table representation of the the toString method.
|
String |
toString()
Implemented to provide a good reading
|
addNotification, getCategories, getReadouts, getSettings, getThresholds, setSettings, setThresholds
public PRQAComplianceStatus()
public PRQAComplianceStatus(QaFrameworkReportSettings settings)
public int getMessages()
public void setMessages(int messages)
public Double getFileCompliance()
public void setFileCompliance(Double fileCompliance)
public Double getProjectCompliance()
public void setProjectCompliance(Double projCompliance)
public Number getReadout(StatusCategory cat) throws PrqaException
getReadout
in interface PRQAReading
PrqaException
public void setReadout(StatusCategory category, Number value) throws PrqaException
setReadout
in interface PRQAReading
PrqaException
public String toString()
public int compareTo(PRQAComplianceStatus o)
compareTo
in interface Comparable<PRQAComplianceStatus>
public boolean isValid()
PRQAStatus
isValid
in class PRQAStatus
public String toHtml()
PRQAStatus
toHtml
in class PRQAStatus
public int getMessagesWithinThreshold()
public List<MessageGroup> getMessagesGroups()
public void setMessagesGroups(List<MessageGroup> messagesGroups)
public int getMessageCount(int threshold)
public int getMessagesWithinThresholdCount(int thresholdLevel)
public void setMessagesWithinThreshold(int messagesWithinThreshold)
messagesWithinThreshold
- the messagesWithinThreshold to setpublic void setMessagesWithinThresholdForEachMessageGroup(int thresholdLevel)
Copyright © 2016–2022. All rights reserved.