001    /** =====================================================================       
002     *
003     *  File Name : $Id: Fault.java,v 1.5 2008/01/15 11:08:16 cb Exp $
004     * 
005     *  Description
006     *  -----------
007     *  See javadoc comment 
008     * 
009     *  =====================================================================
010     *
011     *   @Author : Craige Bevil 
012     *             Control Software Group
013     *             Isaac Newton Group of Telescopes
014     * 
015     *     Modification Log
016     *     Vers         Date        Author       Reason
017     *     ----         ----        ------       ------
018     *      1                       C.Bevil      First Release
019     *     Commissioning Notes
020     *     -------------------
021     *     None
022     *     
023     *     @Version   : $Id: Fault.java,v 1.5 2008/01/15 11:08:16 cb Exp $
024     *     @Author    : $Author: cb $
025     *     Header     : $Header: /opt/INGsrc/src/CVS/softproj/FaultDatabase/src/FaultDatabase/FaultDatabase/src/GWTApplication/client/Fault.java,v 1.5 2008/01/15 11:08:16 cb Exp $
026     *     Log        : $Log: Fault.java,v $
027     *     Log        : Revision 1.5  2008/01/15 11:08:16  cb
028     *     Log        : Ran through PMD and sorted out the javadoc so that we could export the
029     *     Log        : javadoc to the javadoc repository.
030     *     Log        :
031     *     Log        : Revision 1.4  2007/08/17 14:23:10  cb
032     *     Log        : Comment change
033     *     Log        :
034     *     Log        : Revision 1.3  2007/07/24 08:29:15  cb
035     *     Log        : Added the lastModified and the faultopen option
036     *     Log        :
037     *     Log        : Revision 1.2  2007/07/13 10:54:09  cb
038     *     Log        : Complete interface prototype
039     *     Log        :
040     *     Log        : Revision 1.1.1.1  2007/06/01 08:33:26  cb
041     *     Log        : Imported using TkCVS
042     *     Log        :
043     * =====================================================================*/
044    
045    package GWTApplication.client;
046    
047    import com.google.gwt.user.client.rpc.*;
048    
049    /**
050     * This is an entity class which is used to hold the details of a fault and will 
051     * be used to transfer the details of a defect report around the system. 
052     * @author Craige Bevil
053     * @version 1.0
054     * @created 15-May-2007 14:32:45
055     */
056    
057    public class Fault implements IsSerializable {
058    
059        /**
060         * This is the time that the fault was last modified 
061         */
062         
063        public long lastModified;
064         
065        /**
066         * Whether the perform who is entering the fault is interested in
067         * updates to the fault
068         */
069        
070        public boolean userWantsEmailUpdates = false;
071    
072        /**
073         * This is the identifier which is associated with the fault. This
074         * is the primary key for the fault and is commonly known as the
075         * defect report number.  
076         */
077    
078        public int id;
079    
080        /**
081         * Free format text field into which the user can enter the
082         * details of the description.
083         */
084    
085        public String description;
086    
087        /**
088         * This is the title which is associated with the fault.
089         */
090    
091        public String title;
092    
093        /**
094         * This is the time which the fault occurred
095         */
096    
097        public String timeOccured;
098    
099        /**
100         * Whether the fault it open or not
101         */
102        
103        public boolean faultOpen;
104    
105        /**
106         * This is the date that the fault occurred
107         */
108    
109        public String dateOccured;
110    
111        /**
112         * This is the time at which the fault was entered into the
113         * database
114         */
115    
116        public String timeEntered;
117    
118        /**
119         * This is the date that the entry was made 
120         */
121        
122        public String dateEntered;
123        
124        /**
125         * Total time spent on fault
126         */
127        
128        public String totalTimeSpentOnFault;
129    
130        /**
131         * This is the amount of time which was lost to the fault
132         */
133    
134        public String timeLost;
135    
136        /**
137         * This is the priority which has been assigned to the fault
138         */
139    
140        public int priority;
141    
142        /**
143         * This is the e-mail address of the person who has been assigned
144         * default to fix
145         */
146        public String assignedToEmail;
147    
148        /**
149         * This is the e-mail address of the telescope operator who was on
150         * duty at the time that the fault occurred
151         */
152    
153        public String telescopeOperatorEmail;
154    
155        /**
156         * This is the site at which the fault occurred
157         */
158        
159        public String site;
160        public String site_id;
161    
162        /**
163         * This is the name of the observer who was observing at the time
164         * that the fault occurred. This is a free format text field as we
165         * will never actually be able to store all of the names of all of
166         * the visiting observers in the database
167         */
168    
169        public String observer;
170    
171        /**
172         * This is the system which is associated with the fault which is
173         * the language of the current locale
174         */
175    
176        public String system;
177        public String system_id;
178    
179        /**
180         * This is the current state of the fault which is
181         * the language of the current locale
182         */
183    
184        public String state;
185    
186        public String state_id;
187        
188        
189        /**
190         * This is the name of the instrument which is associated with the
191         * fault which is in the language of the locale
192         */
193    
194        public String instrument;
195        public String instrument_id;
196    
197        /**
198         * This is the type of fault which is the language of the current
199         * locale.  For example this could be a software fault or a
200         * mechanical fault
201         */
202    
203        public String faultType;
204    
205        public String faultType_id;
206    
207        /**
208         * This is the name of the duty technician who was on duty at the
209         * time that the fault occurred
210         */
211    
212        public String dutyTechnicianEmail;
213    
214        /**
215         * This is the e-mail address of the support astronomer who was on
216         * duty at the time that the fault occurred
217         */
218    
219        public String supportAstronomerEmail;
220    
221        /**
222         * This is the name of the person which has entered the
223         * fault. Anybody can enter a fault hence the fact that it is not
224         * reliant on another table to contain the permissible names
225         * (which is a shame)
226         */
227    
228        public String enteredByEmail;
229    
230        /**
231         * This is the date that the fault was assigned
232         */
233    
234        public String assignedDate;
235    
236        /**
237         * This is the perceived severity of the fault which is
238         * the language of the current locale
239         */
240    
241        public String severity;
242        public String severity_id;
243    
244        /**
245         * This is the person which entered by the fault
246         */
247    
248        public String person;
249        
250        /** 
251         * Surname of the TO 
252         */
253        
254        public String telescopeOperatorSurname;
255        
256        /**
257         * This is the name of the TO 
258         */
259        public String telescopeOperatorName;
260    
261        /** 
262         * Surname of the support astronomer 
263         */
264        
265        public String supportAstronomerSurname;
266        
267        /**
268         * This is the name of the support astronomer
269         */
270        
271        public String supportAstronomerName;
272        
273        /** 
274         * Surname of the duty engineer 
275         */
276        
277        public String dutyTechnicianSurname;
278        
279        /**
280         * This is the name of the duty engineer
281         */
282        
283        public String dutyTechnicianName;
284        
285        /** 
286         * Surname of the person that the fault was assigned to 
287         */
288        
289        public String assignedToSurname;
290        
291        /**
292         * This is the name of the person that the fault was assigned to 
293         */
294        
295        public String assignedToName;
296     
297       /** 
298         * Surname of the person that entered the fault
299         */
300        
301        public String enteredBySurname;
302        
303        /**
304         * This is the name of the person that entered the fault
305         */
306        
307        public String enteredByName;
308         
309    }