Line | Hits | Source |
---|---|---|
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 | |
20 | 9 | private String description = null; |
21 | ||
22 | //A unique id | |
23 | 9 | private int id = -1; |
24 | ||
25 | /** This is a resources used type of field */ | |
26 | 3 | public static FieldType RESOURCE_USED = new FieldType("resource_used", 0); |
27 | ||
28 | /** This is a resource requested type of field */ | |
29 | 3 | public static FieldType RESOURCE_LIST = new FieldType("resource_list", 1); |
30 | ||
31 | /** This is the record type field for a generic type field */ | |
32 | 3 | 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 | ||
46 | 9 | public FieldType(String description, int id) { |
47 | 9 | this.description = description; |
48 | 9 | this.id = id; |
49 | 9 | } |
50 | ||
51 | } |
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |