001    /**
002     * Copyright (C) 2010 The Roslin Institute <contact andy.law@roslin.ed.ac.uk>
003     *
004     * This file is part of the Ensembl Java API demonstration project developed by the
005     * Bioinformatics Group at The Roslin Institute, The Royal (Dick) School of
006     * Veterinary Studies, University of Edinburgh.
007     *
008     * This is free software: you can redistribute it and/or modify
009     * it under the terms of the GNU General Public License (version 3) as published by
010     * the Free Software Foundation.
011     *
012     * This software is distributed in the hope that it will be useful,
013     * but WITHOUT ANY WARRANTY; without even the implied warranty of
014     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
015     * GNU General Public License for more details.
016     *
017     * You should have received a copy of the GNU General Public License
018     * in this software distribution. If not, see <http://www.gnu.org/licenses/gpl-3.0.html/>.
019     */
020    
021    package uk.ac.roslin.ensembl.datasourceaware.core;
022    
023    import uk.ac.roslin.ensembl.dao.factory.DAOCoreFactory;
024    import uk.ac.roslin.ensembl.model.ObjectType;
025    import uk.ac.roslin.ensembl.model.core.ProteinFeature;
026    
027    public class DAProteinFeature extends DACoreObject implements ProteinFeature {
028    
029        private int translationID;
030        private int sourceStart;
031        private int sourceEnd;
032        private String targetName;
033        private int targetStart;
034        private int targetEnd;
035        private int analysisID;
036        private Double score;
037        private Double eValue;
038        private Double percentIdentity;
039    
040    
041        public DAProteinFeature() {
042        }
043    
044        public DAProteinFeature(DAOCoreFactory factory) {
045            super.setDaoFactory(factory);
046        }
047    
048        public int getAnalysisID() {
049            return analysisID;
050        }
051    
052        public void setAnalysisID(int analysisID) {
053            this.analysisID = analysisID;
054        }
055    
056        public Double getEValue() {
057            return eValue;
058        }
059    
060        public void setEValue(Double eValue) {
061            this.eValue = eValue;
062        }
063    
064        public Double getPercentIdentity() {
065            return percentIdentity;
066        }
067    
068        public void setPercentIdentity(Double percentIdentity) {
069            this.percentIdentity = percentIdentity;
070        }
071    
072        public Double getScore() {
073            return score;
074        }
075    
076        public void setScore(Double score) {
077            this.score = score;
078        }
079    
080        public int getSourceEnd() {
081            return sourceEnd;
082        }
083    
084        public void setSourceEnd(int sourceEnd) {
085            this.sourceEnd = sourceEnd;
086        }
087    
088        public int getSourceStart() {
089            return sourceStart;
090        }
091    
092        public void setSourceStart(int sourceStart) {
093            this.sourceStart = sourceStart;
094        }
095    
096        public int getTargetEnd() {
097            return targetEnd;
098        }
099    
100        public void setTargetEnd(int targetEnd) {
101            this.targetEnd = targetEnd;
102        }
103    
104        public String getTargetName() {
105            return targetName;
106        }
107    
108        public void setTargetName(String targetName) {
109            this.targetName = targetName;
110        }
111    
112        public int getTargetStart() {
113            return targetStart;
114        }
115    
116        public void setTargetStart(int targetStart) {
117            this.targetStart = targetStart;
118        }
119    
120        public int getTranslationID() {
121            return translationID;
122        }
123    
124        public void setTranslationID(int translationID) {
125            this.translationID = translationID;
126        }
127    
128        public ObjectType getType() {
129            return null;
130        }
131    }