1 | package de.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.reportitems; |
2 | |
3 | /**Abstract class describing a R report item. |
4 | * @author groenda |
5 | */ |
6 | public abstract class AbstractRReportItem implements IReportItem { |
7 | /** The default description for R report items. */ |
8 | public static final String DEFAULT_DESCRIPTION = "No description available"; |
9 | /** Description of this item. */ |
10 | private final String description; |
11 | |
12 | /**Initializes a new report item with default description. |
13 | */ |
14 | public AbstractRReportItem() { |
15 | this(DEFAULT_DESCRIPTION); |
16 | } |
17 | |
18 | /**Initializes a new report item. |
19 | * @param description The description of the item. |
20 | */ |
21 | public AbstractRReportItem(final String description) { |
22 | this.description = description; |
23 | } |
24 | |
25 | /** {@inheritDoc} |
26 | */ |
27 | public String getDescription() { |
28 | return description; |
29 | } |
30 | |
31 | /**Used by the visitor to display the report item. |
32 | * {@inheritDoc} |
33 | */ |
34 | public abstract void visit(IReportRenderingVisitor renderingVisitor); |
35 | |
36 | } |