Method: TraceExecutionSetup(IVdmProject, String, String, File, float, TraceReductionType, long)

1: /*
2: * #%~
3: * Combinatorial Testing
4: * %%
5: * Copyright (C) 2008 - 2014 Overture
6: * %%
7: * This program is free software: you can redistribute it and/or modify
8: * it under the terms of the GNU General Public License as
9: * published by the Free Software Foundation, either version 3 of the
10: * License, or (at your option) any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: * GNU General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public
18: * License along with this program. If not, see
19: * <http://www.gnu.org/licenses/gpl-3.0.html>.
20: * #~%
21: */
22: package org.overture.ide.plugins.combinatorialtesting.internal;
23:
24: import java.io.File;
25:
26: import org.overture.ide.core.resources.IVdmProject;
27: import org.overture.interpreter.traces.TraceReductionType;
28:
29: public class TraceExecutionSetup
30: {
31:         final IVdmProject project;
32:         final String container;
33:         final String traceName;
34:         final File coverageFolder;
35:         final boolean customReduction;
36:
37:         final float subset;
38:         final TraceReductionType reductionType;
39:         final long seed;
40:
41:         public TraceExecutionSetup(final IVdmProject project,
42:                         final String container, final String traceName, final File coverage)
43:         {
44:                 this.project = project;
45:                 this.container = container;
46:                 this.traceName = traceName;
47:                 this.coverageFolder = coverage;
48:                 this.customReduction = false;
49:
50:                 this.subset = 1.0F;
51:                 this.reductionType = TraceReductionType.NONE;
52:                 this.seed = 999;
53:         }
54:
55:         public TraceExecutionSetup(final IVdmProject project,
56:                         final String container, final String traceName,
57:                         final File coverage, float subset,
58:                         TraceReductionType reductionType, long seed)
59:         {
60:                 this.project = project;
61:                 this.container = container;
62:                 this.traceName = traceName;
63:                 this.coverageFolder = coverage;
64:                 this.customReduction = true;
65:
66:                 this.subset = subset;
67:                 this.reductionType = reductionType;
68:                 this.seed = seed;
69:         }
70:
71:         public TraceExecutionSetup(final IVdmProject project,
72:                         final String container, final String traceName,
73:                         final File coverage, float subset,
74:                         TraceReductionType reductionType, long seed, boolean customReduction)
75:         {
76:                 this.project = project;
77:                 this.container = container;
78:                 this.traceName = traceName;
79:                 this.coverageFolder = coverage;
80:                 this.customReduction = customReduction;
81:
82:                 this.subset = subset;
83:                 this.reductionType = reductionType;
84:                 this.seed = seed;
85:         }
86: }