| 1 | package de.uka.ipd.sdq.reliability.solver.pcm2markov; |
| 2 | |
| 3 | /** |
| 4 | * Reflects a processing resource type from the PCM meta-model. |
| 5 | * |
| 6 | * @author brosch |
| 7 | * |
| 8 | */ |
| 9 | public class MarkovResourceType { |
| 10 | |
| 11 | /** |
| 12 | * The default value for members of this class that have not been specified. |
| 13 | */ |
| 14 | static final String NOTSPECIFIED = "UNKNOWN"; |
| 15 | |
| 16 | /** |
| 17 | * The id of the associated resource type. |
| 18 | */ |
| 19 | private String typeId; |
| 20 | |
| 21 | /** |
| 22 | * The name of the resource type. |
| 23 | */ |
| 24 | private String typeName; |
| 25 | |
| 26 | /** |
| 27 | * The constructor. |
| 28 | */ |
| 29 | public MarkovResourceType() { |
| 30 | setId(NOTSPECIFIED); |
| 31 | setName(NOTSPECIFIED); |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Retrieves the type ID. |
| 36 | * |
| 37 | * @return the type ID |
| 38 | */ |
| 39 | public String getId() { |
| 40 | return typeId; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Retrieves the type name. |
| 45 | * |
| 46 | * @return the type name |
| 47 | */ |
| 48 | public String getName() { |
| 49 | return typeName; |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Sets the type ID. |
| 54 | * |
| 55 | * @param typeId |
| 56 | * the type ID to set |
| 57 | */ |
| 58 | public void setId(String typeId) { |
| 59 | this.typeId = typeId; |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Sets the type name. |
| 64 | * |
| 65 | * @param typeName |
| 66 | * the type name |
| 67 | */ |
| 68 | public void setName(String typeName) { |
| 69 | this.typeName = typeName; |
| 70 | } |
| 71 | } |