1 | |
2 | package de.uka.ipd.sdq.sensorframework.entities.base; |
3 | @javax.persistence.Entity |
4 | |
5 | public abstract class AbstractTimeSpanMeasurement |
6 | |
7 | extends de.uka.ipd.sdq.sensorframework.entities.base.AbstractMeasurement |
8 | |
9 | implements |
10 | de.uka.ipd.sdq.sensorframework.entities.TimeSpanMeasurement |
11 | |
12 | { |
13 | |
14 | public AbstractTimeSpanMeasurement(de.uka.ipd.sdq.sensorframework.entities.dao.IDAOFactory myFactory) { |
15 | super(myFactory); |
16 | } |
17 | |
18 | |
19 | /* Getter and Setter for Properties with cardinality 0..1 or 1 which are not a composition */ |
20 | |
21 | |
22 | |
23 | @javax.persistence.Column(name="TIMESPAN") |
24 | |
25 | |
26 | private |
27 | double |
28 | m_timeSpan; |
29 | public |
30 | |
31 | double |
32 | getTimeSpan() |
33 | { |
34 | return m_timeSpan; |
35 | } |
36 | public |
37 | void setTimeSpan( |
38 | double |
39 | value) |
40 | { |
41 | this.m_timeSpan = value; |
42 | } |
43 | ; |
44 | |
45 | |
46 | @javax.persistence.OneToOne( |
47 | |
48 | ) |
49 | @javax.persistence.JoinColumn(name="FK_SENSOR") |
50 | |
51 | |
52 | private |
53 | de.uka.ipd.sdq.sensorframework.entities.TimeSpanSensor |
54 | m_sensor; |
55 | public |
56 | |
57 | de.uka.ipd.sdq.sensorframework.entities.TimeSpanSensor |
58 | getSensor() |
59 | { |
60 | return m_sensor; |
61 | } |
62 | public |
63 | void setSensor( |
64 | de.uka.ipd.sdq.sensorframework.entities.TimeSpanSensor |
65 | value) |
66 | { |
67 | this.m_sensor = value; |
68 | } |
69 | |
70 | |
71 | /* Getter and Setter for Properties with cardinality 0..1 or 1 which are a composition */ |
72 | |
73 | |
74 | /* Getter and Setter for Properties with cardinality 0..* which are not a composition */ |
75 | |
76 | |
77 | /* Getter and Setter for Properties with cardinality 0..* which are a composition */ |
78 | |
79 | |
80 | /* Abstract Operations */ |
81 | |
82 | } |
83 | |