1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package fr.ens.transcriptome.doelan.tests;
23
24 import fr.ens.transcriptome.doelan.Defaults;
25 import fr.ens.transcriptome.doelan.DoelanRegistery;
26 import fr.ens.transcriptome.nividic.om.BioAssay;
27 import fr.ens.transcriptome.nividic.platform.PlatformException;
28 import fr.ens.transcriptome.nividic.platform.module.AboutModule;
29 import fr.ens.transcriptome.nividic.platform.module.Module;
30 import fr.ens.transcriptome.nividic.platform.module.ModuleDescription;
31 import fr.ens.transcriptome.nividic.util.SystemUtils;
32
33 /***
34 * This class implements the Empty spot test.
35 * @author Laurent Jourdren
36 */
37 public class AbsentSpotTest extends FeatureFlagTest implements Module {
38
39 /*** Default value of the threshold. */
40 private static final double DEFAULT_THRESHOLD = 5.0;
41 private static AboutModule aboutModule;
42
43 /***
44 * Get the description of the module.
45 * @return The description of the module
46 */
47 public AboutModule aboutModule() {
48
49 if (aboutModule == null) {
50
51 ModuleDescription md = null;
52 try {
53 md = new ModuleDescription("AbsentSpotTest",
54 "Test for absent feature flag (Flag=-75)");
55 md.setWebsite(DoelanRegistery.getAppURL());
56 md.setHTMLDocumentation(SystemUtils.readTextRessource("/files/test-"
57 + SystemUtils.getClassShortName(this.getClass()) + ".html"));
58 md.setStability(AboutModule.STATE_STABLE);
59 md.setVersion(Defaults.DEFAULT_TEST_VERSION);
60 } catch (PlatformException e) {
61 getLogger().error("Unable to create the module description");
62 }
63 aboutModule = md;
64 }
65 return aboutModule;
66 }
67
68 protected int getFlagFilterValue() {
69 return BioAssay.FLAG_ABSCENT;
70 }
71
72 protected String getFlagFilerType() {
73 return "Abscent";
74 }
75
76 protected double getDefaultThreshold() {
77 return DEFAULT_THRESHOLD;
78 }
79
80
81
82
83
84 /***
85 * Public constructor.
86 * @throws PlatformException If the name or the version of the element is
87 * <b>null </b>.
88 */
89 public AbsentSpotTest() throws PlatformException {
90
91 }
92
93 }