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

COVERAGE SUMMARY FOR SOURCE FILE [FileExperimentRunDAO.java]

nameclass, %method, %block, %line, %
FileExperimentRunDAO.java100% (1/1)60%  (3/5)55%  (29/53)53%  (8/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FileExperimentRunDAO100% (1/1)60%  (3/5)55%  (29/53)53%  (8/15)
addScalabilityExperimentRun (String): ExperimentRun 0%   (0/1)0%   (0/19)0%   (0/5)
removeExperimentRun (ExperimentRun, boolean): void 0%   (0/1)0%   (0/5)0%   (0/2)
FileExperimentRunDAO (FileDAOFactory, IDGenerator): void 100% (1/1)100% (6/6)100% (2/2)
addExperimentRun (String): ExperimentRun 100% (1/1)100% (19/19)100% (5/5)
getExperimentRuns (): Collection 100% (1/1)100% (4/4)100% (1/1)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.sensorframework.dao.file;
5 
6import java.util.Collection;
7import java.util.Collections;
8 
9import de.uka.ipd.sdq.sensorframework.dao.file.entities.ExperimentRunImpl;
10import de.uka.ipd.sdq.sensorframework.dao.file.entities.ScalabilityExperimentRunImpl;
11import de.uka.ipd.sdq.sensorframework.entities.ExperimentRun;
12import de.uka.ipd.sdq.sensorframework.entities.dao.IExperimentRunDAO;
13 
14/**
15 * @author Ihssane El-Oudghiri 
16 * @author Steffen Becker
17 * 
18 * Data Access Object (DAO) for persistence of ExperimentRun Objects.
19 * 
20 */
21public class FileExperimentRunDAO extends AbstractFileDAO<ExperimentRun> implements IExperimentRunDAO {
22 
23        public FileExperimentRunDAO(FileDAOFactory factory, IDGenerator idGen) {
24                super(factory,idGen,FileDAOFactory.EXPRUN_FILE_NAME_PREFIX);
25        }
26 
27        public ExperimentRun addExperimentRun(String p_experimentdatetime) {
28                ExperimentRunImpl expRun = new ExperimentRunImpl(factory);
29                expRun.setExperimentRunID(idGen.getNextExperimentRunID());
30                expRun.setExperimentDateTime(p_experimentdatetime);
31                
32                this.putEntity(expRun);
33 
34                return expRun;
35        }
36        
37        public ExperimentRun addScalabilityExperimentRun(String p_experimentdatetime) {
38                ScalabilityExperimentRunImpl expRun = new ScalabilityExperimentRunImpl(factory);
39                expRun.setExperimentRunID(idGen.getNextExperimentRunID());
40                expRun.setExperimentDateTime(p_experimentdatetime);
41                
42                this.putEntity(expRun);
43 
44                return expRun;
45        }
46 
47        public Collection<ExperimentRun> getExperimentRuns() {
48                return Collections.unmodifiableCollection(getAllEntities());
49        }
50 
51        public void removeExperimentRun(ExperimentRun experimentRun,
52                        boolean doCascade) {
53                this.removeEntity(experimentRun, doCascade);
54        }
55}

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