EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.sensorframework.entities.base]

COVERAGE SUMMARY FOR SOURCE FILE [AbstractStateSensor.java]

nameclass, %method, %block, %line, %
AbstractStateSensor.java100% (1/1)83%  (5/6)66%  (25/38)67%  (10/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractStateSensor100% (1/1)83%  (5/6)66%  (25/38)67%  (10/15)
addState (String): State 0%   (0/1)0%   (0/13)0%   (0/5)
AbstractStateSensor (IDAOFactory): void 100% (1/1)100% (9/9)100% (4/4)
addSensorState (State): void 100% (1/1)100% (6/6)100% (2/2)
getInitialState (): State 100% (1/1)100% (3/3)100% (1/1)
getSensorStates (): Collection 100% (1/1)100% (3/3)100% (1/1)
setInitialState (State): void 100% (1/1)100% (4/4)100% (2/2)

1 
2                package de.uka.ipd.sdq.sensorframework.entities.base;
3                @javax.persistence.Entity
4                
5                public abstract class AbstractStateSensor
6                
7                        extends de.uka.ipd.sdq.sensorframework.entities.base.AbstractSensor
8                
9                implements 
10        de.uka.ipd.sdq.sensorframework.entities.StateSensor
11 
12                {
13                        
14                                public AbstractStateSensor(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.OneToOne(
24                
25                )
26                @javax.persistence.JoinColumn(name="FK_INITIALSTATE")
27        
28 
29        private 
30        de.uka.ipd.sdq.sensorframework.entities.State
31 m_initialState;
32        public 
33        
34        de.uka.ipd.sdq.sensorframework.entities.State
35 getInitialState()
36 {
37                return m_initialState;
38        }
39        public 
40        void setInitialState(
41        de.uka.ipd.sdq.sensorframework.entities.State
42 value)
43 {
44                this.m_initialState = value;
45        }
46 
47                        
48                        /* Getter and Setter for Properties with cardinality 0..1 or 1 which are a composition */
49                        
50                        
51                        /* Getter and Setter for Properties with cardinality 0..* which are not a composition */
52                        
53                        
54                        /* Getter and Setter for Properties with cardinality 0..* which are a composition */
55                        
56        
57        @javax.persistence.OneToMany(cascade=javax.persistence.CascadeType.ALL)
58        @javax.persistence.JoinTable(name="StateSensor_sensorStates",
59                                        joinColumns={@javax.persistence.JoinColumn(name="STATESENSOR_ID")},
60                                        inverseJoinColumns={@javax.persistence.JoinColumn(name="SENSORSTATE_ID")})
61 
62        private java.util.Collection<
63        de.uka.ipd.sdq.sensorframework.entities.State
64> m_sensorStates 
65           = new java.util.ArrayList<
66        de.uka.ipd.sdq.sensorframework.entities.State
67>();
68        
69                public 
70        de.uka.ipd.sdq.sensorframework.entities.State addState(
71                
72                
73   
74        String
75 p_stateliteral
76        )
77 {
78                        
79        de.uka.ipd.sdq.sensorframework.entities.State
80 result = 
81                                myDAOFactory.createStateDAO().addState(
82 
83 
84                        
85                        
86                                p_stateliteral
87                        );
88 
89                        m_sensorStates.add(result);
90                        return result;
91                }
92        
93        public 
94        void addSensorState(de.uka.ipd.sdq.sensorframework.entities.State value)
95 {
96                this.m_sensorStates.add(value);
97        }
98        public 
99        java.util.Collection<
100        de.uka.ipd.sdq.sensorframework.entities.State
101> getSensorStates()
102 {
103                return this.m_sensorStates;
104        }
105 
106                        
107                        /* Abstract Operations */
108                        
109                }
110        

[all classes][de.uka.ipd.sdq.sensorframework.entities.base]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov