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

COVERAGE SUMMARY FOR SOURCE FILE [DataAdapter.java]

nameclass, %method, %block, %line, %
DataAdapter.java0%   (0/1)0%   (0/4)0%   (0/26)0%   (0/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DataAdapter0%   (0/1)0%   (0/4)0%   (0/26)0%   (0/11)
DataAdapter (): void 0%   (0/1)0%   (0/8)0%   (0/3)
DataAdapter (Properties): void 0%   (0/1)0%   (0/6)0%   (0/3)
getProperties (): Properties 0%   (0/1)0%   (0/3)0%   (0/1)
setProperties (Properties): void 0%   (0/1)0%   (0/9)0%   (0/4)

1package de.uka.ipd.sdq.sensorframework.adapter;
2 
3import java.util.Observable;
4import java.util.Properties;
5 
6/**Superclass for all DataAdapter in the SensorFramework.
7 * All Adapters can have property setting and changes need to be observed to
8 * allow changes on the GUI.
9 * @author Henning Groenda
10 */
11public abstract class DataAdapter extends Observable implements IAdapter {
12        public static final String SETTINGS_CHANGED = "Settings have changed";
13        
14        /** The properties settings for this adapter */
15        protected Properties adapterProperties;
16        
17        /**Initializes a new DataAdapter without properties. */
18        public DataAdapter() {
19                super();
20                this.adapterProperties = new Properties();
21        }
22 
23        /**Initializes a new DataAdapter with the given properties.
24         * @param adapterProperties The associated properties.
25         */
26        public DataAdapter(Properties adapterProperties) {
27                super();
28                this.adapterProperties = adapterProperties;
29        }
30        
31        /** {@inheritDoc}
32         */
33        public Properties getProperties() {
34                return adapterProperties;
35        }
36 
37        /** {@inheritDoc}
38         */
39        public void setProperties(Properties newProperties) {
40                this.adapterProperties = newProperties;
41                // notify observers that settings have changed.
42                setChanged();
43                notifyObservers(SETTINGS_CHANGED);
44        }
45        
46}

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