1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
package com.genebio.toxico.compound;
* Basic class for the compound object
import java.util.ArrayList;
public class CompoundImpl extends CompoundImplBase implements Serializable{
protected String cid;
protected int id;
protected String SMILE;
protected ArrayList<CompoundDescriptor> compoundDescriptors;
protected ArrayList<CompoundName> compoundNames;
protected ArrayList<CompoundClassification> compoundclassification;
protected ArrayList<CompoundCorrelation> compoundcorrelations;
protected ArrayList<CompoundXref> compoundXrefs;
//minimum information for a compound
public CompoundImpl(int id, String cid, String SMILE){
this.id = id;
this.cid = cid;
this.SMILE = SMILE;
}
//primary information for a compound
public CompoundImpl(int id, String cid, String SMILE,
ArrayList<CompoundDescriptor> compoundDescriptors,
ArrayList<CompoundName> compoundNames,
ArrayList<CompoundXref> compoundXrefs
){
this.id = id;
this.cid = cid;
this.SMILE = SMILE;
this.compoundDescriptors = compoundDescriptors;
this.compoundNames = compoundNames;
this.compoundXrefs = compoundXrefs;
}
//future information for a compound (correlation and classification informations are added)
public CompoundImpl(int id, String cid, String SMILE,
ArrayList<CompoundDescriptor> compoundDescriptors,
ArrayList<CompoundName> compoundNames,
ArrayList<CompoundXref> compoundXrefs,
ArrayList<CompoundClassification> compoundclassification,
ArrayList<CompoundCorrelation> compoundcorrelations
){
this.id = id;
this.cid = cid;
this.SMILE = SMILE;
this.compoundclassification = compoundclassification;
this.compoundcorrelations = compoundcorrelations;
this.compoundDescriptors = compoundDescriptors;
this.compoundNames = compoundNames;
this.compoundXrefs = compoundXrefs;
}
public String getSMILE(){
return SMILE;
}
public ArrayList<CompoundClassification> getCompoundclassification() {
return compoundclassification;
}
public void setCompoundclassification(
ArrayList<CompoundClassification> compoundclassification) {
this.compoundclassification = compoundclassification;
}
public ArrayList<CompoundCorrelation> getCompoundcorrelations() {
return compoundcorrelations;
}
public void setCompoundcorrelations(
ArrayList<CompoundCorrelation> compoundcorrelations) {
this.compoundcorrelations = compoundcorrelations;
}
public ArrayList<CompoundDescriptor> getCompoundDescriptors() {
return compoundDescriptors;
}
public void setCompoundDescriptors(
ArrayList<CompoundDescriptor> compoundDescriptors) {
this.compoundDescriptors = compoundDescriptors;
}
public ArrayList<CompoundName> getCompoundNames() {
return compoundNames;
}
public void setCompoundNames(ArrayList<CompoundName> compoundNames) {
this.compoundNames = compoundNames;
}
public ArrayList<CompoundXref> getCompoundXrefs() {
return compoundXrefs;
}
public void setCompoundXrefs(ArrayList<CompoundXref> compoundXrefs) {
this.compoundXrefs = compoundXrefs;
}
public int getId() {
return id;
}
public String getCid() {
return cid;
}
} |
Partager