Coverage details for umich.cac.data.FieldType

LineHitsSource
1 package umich.cac.data;
2  
3 /**
4  * Describes the types of fields, like a resource used type field, a resource
5  * listed type field, or generic fields. For example a FieldType object for a
6  * field requesting 10 nodes would be a RESOURCE_LIST, while a FieldType object
7  * for a field that user RAN on 10 nodes would be RESOURCE_USED. A GENERIC
8  * would be something like the jobname.
9  * <p>
10  * This is manually used to combine the different fields under the correct tags
11  * in the record parsers
12  *
13  * @author rmach@umich.edu
14  * @version $Header: /cvsroot/pbsaccounting/pbsaccounting/src/umich/cac/data/FieldType.java,v 1.3 2003/10/21 19:08:00 rodmach Exp $
15  */
16  
17 public class FieldType {
18  
19     //The name
209    private String description = null;
21  
22     //A unique id
239    private int id = -1;
24  
25     /** This is a resources used type of field */
263    public static FieldType RESOURCE_USED = new FieldType("resource_used", 0);
27  
28     /** This is a resource requested type of field */
293    public static FieldType RESOURCE_LIST = new FieldType("resource_list", 1);
30  
31     /** This is the record type field for a generic type field */
323    public static FieldType GENERIC = new FieldType("generic", 2);
33  
34     /**
35      *
36      * Constructor for the FieldType object
37      *
38      * @param description
39      * name of the FieldType
40      *
41      * @param id
42      * unique id for this field type
43      *
44      */
45  
469    public FieldType(String description, int id) {
479        this.description = description;
489        this.id = id;
499    }
50  
51 }

this report was generated by version 1.0.5 of jcoverage.
visit www.jcoverage.com for updates.

copyright © 2003, jcoverage ltd. all rights reserved.
Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.