001/*
002        $Id: DataProcessingStepData.java 3207 2009-04-09 06:48:11Z gregory $
003
004        Copyright (C) 2006 Gregory Vincic, Olle Mansson
005        Copyright (C) 2007 Gregory Vincic
006
007        This file is part of Proteios.
008        Available at http://www.proteios.org/
009
010        Proteios is free software; you can redistribute it and/or modify it
011        under the terms of the GNU General Public License as published by
012        the Free Software Foundation; either version 2 of the License, or
013        (at your option) any later version.
014
015        Proteios is distributed in the hope that it will be useful, but
016        WITHOUT ANY WARRANTY; without even the implied warranty of
017        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
018        General Public License for more details.
019
020        You should have received a copy of the GNU General Public License
021        along with this program; if not, write to the Free Software
022        Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
023        02111-1307, USA.
024*/
025package org.proteios.core.data;
026
027import java.util.Date;
028
029/**
030        This represents a data processing step of
031        a peak list set.
032
033        @author Olle
034        @version 2.0
035        @see org.proteios.core.DataProcessingStep
036        @see <a href="../../../../../../../development/overview/data/dataprocessingstep.html">DataProcessingSteps overview</a>
037        @proteios.modified $Date: 2006-06-02 11:31:54Z $
038        @hibernate.class table="`DataProcessingSteps`" lazy="true"
039*/
040public class DataProcessingStepData
041        extends AnnotatedData
042{
043
044        public DataProcessingStepData()
045        {}
046
047        // -------------------------------------------
048        private Date completionTime;
049        /**
050                Get the completionTime date
051                @hibernate.property column="`completion_time`" type="timestamp" not-null="false"
052                @return the completionTime date
053        */
054        public Date getCompletionTime()
055        {
056                return completionTime;
057        }
058
059        /**
060                Set the completionTime date
061                @param completionTime The completionTime date
062        */
063        public void setCompletionTime(Date completionTime)
064        {
065                this.completionTime = completionTime;
066        }
067
068        public static final int MAX_DESCRIPTION_LENGTH = 255;
069        private String description;
070        /**
071                Get the description
072                @hibernate.property column="`description`" type="string" length="255" not-null="false"
073                @return the description string
074        */
075        @Override
076        public String getDescription()
077        {
078                return description;
079        }
080
081        /**
082                Set the description
083                @param description The description string
084        */
085        @Override
086        public void setDescription(String description)
087        {
088                this.description = description;
089        }
090
091        /**
092                The {@link SoftwareData} item
093                software contains information on the
094                software used.
095                The variable is set to an instance of class
096                {@link SoftwareData}.
097        */
098        private SoftwareData software;
099
100        /**
101                Get the software
102                @hibernate.many-to-one column="`software_id`" not-null="false" outer-join="false"
103                @return The {@link SoftwareData} software
104        */
105        public SoftwareData getSoftware()
106        {
107                return this.software;
108        }
109
110        /**
111                Set the software
112                @param software The {@link SoftwareData} software
113        */
114        public void setSoftware(SoftwareData software)
115        {
116                this.software = software;
117        }
118
119}