| 1 | /** |
| 2 | * |
| 3 | */ |
| 4 | package de.fzi.se.accuracy.issues; |
| 5 | |
| 6 | import de.uka.ipd.sdq.errorhandling.SeverityEnum; |
| 7 | import de.uka.ipd.sdq.pcm.seff.AbstractAction; |
| 8 | import de.uka.ipd.sdq.pcm.seff.ResourceDemandingSEFF; |
| 9 | |
| 10 | /**Issue for {@link AbstractAction}s within an {@link ResourceDemandingSEFF}. |
| 11 | * @author groenda |
| 12 | * |
| 13 | */ |
| 14 | public class VariableSourceCodeIssue extends RDSEFFSourceCodeIssue { |
| 15 | |
| 16 | /** UUID of the {@link ResourceDemandingSEFF}. */ |
| 17 | private String variableReference; |
| 18 | /** UUID of the {@link AbstractAction}. */ |
| 19 | private String actionId; |
| 20 | |
| 21 | public VariableSourceCodeIssue(SeverityEnum error, String message, |
| 22 | Object actualValue, String objectResourceName, String rdseffId, String actionId, String variableReference) { |
| 23 | super(error, message, actualValue, objectResourceName, rdseffId); |
| 24 | this.actionId = actionId; |
| 25 | this.variableReference = variableReference; |
| 26 | } |
| 27 | |
| 28 | @Override |
| 29 | public String getDetails() { |
| 30 | String details = super.getDetails(); |
| 31 | if (actionId != null) { |
| 32 | details += "UUID of action: " + actionId + "\n\n"; |
| 33 | } |
| 34 | if (variableReference != null) { |
| 35 | details += "Variable reference: " + variableReference + "\n\n"; |
| 36 | } |
| 37 | return details; |
| 38 | } |
| 39 | |
| 40 | } |