source: trunk/CrossPare/src/de/ugoe/cs/cpdp/versions/SoftwareVersion.java @ 25

Last change on this file since 25 was 2, checked in by sherbold, 10 years ago
  • initial commit
  • Property svn:mime-type set to text/plain
File size: 1.1 KB
Line 
1package de.ugoe.cs.cpdp.versions;
2
3import weka.core.Instances;
4
5/**
6 * Data class for software versions.
7 * @author Steffen Herbold
8 */
9public class SoftwareVersion {
10
11        /**
12         * name of the project
13         */
14        private final String project;
15       
16        /**
17         * version of the project
18         */
19        private final String version;
20
21        /**
22         * data of the version
23         */
24        private final Instances instances;
25       
26        /**
27         * Constructor. Creates a new version.
28         * @param project name of the project
29         * @param version name of the version
30         * @param instances data of the version
31         */
32        public SoftwareVersion(String project, String version, Instances instances) {
33                this.project = project;
34                this.version = version;
35                this.instances = instances;
36        }
37       
38        /**
39         * returns the project name
40         * @return project name
41         */
42        public String getProject() {
43                return project;
44        }
45       
46        /**
47         * returns the name of the version
48         * @return name of the version
49         */
50        public String getVersion() {
51                return version;
52        }
53       
54        /**
55         * returns the data of the version
56         * @return data
57         */
58        public Instances getInstances() {
59                return new Instances(instances);
60        }
61}
Note: See TracBrowser for help on using the repository browser.