1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.model.molecular;
|
11
|
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.media.ReferencedMedia;
|
14
|
|
15
|
import org.apache.log4j.Logger;
|
16
|
|
17
|
import java.util.*;
|
18
|
|
19
|
import javax.persistence.*;
|
20
|
|
21
|
/**
|
22
|
* @author m.doering
|
23
|
* @version 1.0
|
24
|
* @created 08-Nov-2007 13:06:43
|
25
|
*/
|
26
|
@Entity
|
27
|
public class PhylogeneticTree extends ReferencedMedia {
|
28
|
static Logger logger = Logger.getLogger(PhylogeneticTree.class);
|
29
|
private Set<Sequence> usedSequences = new HashSet();
|
30
|
|
31
|
@OneToMany
|
32
|
public Set<Sequence> getUsedSequences() {
|
33
|
return usedSequences;
|
34
|
}
|
35
|
protected void setUsedSequences(Set<Sequence> usedSequences) {
|
36
|
this.usedSequences = usedSequences;
|
37
|
}
|
38
|
public void addUsedSequences(Sequence usedSequence) {
|
39
|
this.usedSequences.add(usedSequence);
|
40
|
}
|
41
|
public void removeUsedSequences(Sequence usedSequence) {
|
42
|
this.usedSequences.remove(usedSequence);
|
43
|
}
|
44
|
|
45
|
}
|