1 | /** |
2 | * |
3 | */ |
4 | package de.fzi.se.accuracy.issues; |
5 | |
6 | import de.uka.ipd.sdq.errorhandling.SeverityAndIssue; |
7 | import de.uka.ipd.sdq.errorhandling.SeverityEnum; |
8 | import de.uka.ipd.sdq.pcm.seff.ResourceDemandingSEFF; |
9 | |
10 | /**Issue arised in an {@link ResourceDemandingSEFF} which is experienced on source code level and contains the relevant UUIDs. |
11 | * @author groenda |
12 | * |
13 | */ |
14 | public class RDSEFFSourceCodeIssue extends SeverityAndIssue { |
15 | |
16 | /** UUID of the {@link ResourceDemandingSEFF}. */ |
17 | private String rdseffId; |
18 | |
19 | public RDSEFFSourceCodeIssue(SeverityEnum error, String message, |
20 | Object element, String objectResourceName, String rdseffId) { |
21 | super(error, message, element, objectResourceName); |
22 | this.rdseffId = rdseffId; |
23 | } |
24 | |
25 | @Override |
26 | public String getDetails() { |
27 | String details = super.getDetails(); |
28 | if (rdseffId != null) { |
29 | details += "UUID of RD-SEFF: " + rdseffId + "\n\n"; |
30 | } |
31 | return details; |
32 | } |
33 | |
34 | } |