source: xssim/src/schedframe/scheduling/utils/ResourceParameterName.java @ 104

Revision 104, 2.6 KB checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.scheduling.utils;
2
3
4public enum ResourceParameterName {
5
6        /**
7     * Constant OSNAME
8     */
9    OSNAME("osname"),
10    /**
11     * Constant OSTYPE
12     */
13    OSTYPE("ostype"),
14    /**
15     * Constant CPUARCH
16     */
17    CPUARCH("cpuarch"),
18    /**
19     * Constant OSVERSION
20     */
21    OSVERSION("osversion"),
22    /**
23     * Constant OSRELEASE
24     */
25    OSRELEASE("osrelease"),
26    /**
27     * Constant MEMORY
28     */
29    MEMORY("memory"),
30    /**
31     * Constant FREEMEMORY
32     */
33    FREEMEMORY("freememory"),
34    /**
35     * Constant CPUCOUNT
36     */
37    CPUCOUNT("cpucount"),
38   
39    /**
40     * Constant CPUCOUNT
41     */
42    GPUCOUNT("gpucount"),
43   
44    /**
45     * Constant FREECPUS
46     */
47    FREECPUS("freecpus"),
48    /**
49     * Constant CPUSPEED
50     */
51    CPUSPEED("cpuspeed"),
52    /**
53     * Constant APPLICATION
54     */
55    APPLICATION("application"),
56    /**
57     * Constant DISKSPACE
58     */
59    DISKSPACE("diskspace"),
60    /**
61     * Constant FREEDISKSPACE
62     */
63    FREEDISKSPACE("freediskspace"),
64    /**
65     * Constant REMOTESUBMISSIONINTERFACE
66     */
67    REMOTESUBMISSIONINTERFACE("remoteSubmissionInterface"),
68    /**
69     * Constant LOCALRESOURCEMANAGER
70     */
71    LOCALRESOURCEMANAGER("localResourceManager"),
72    /**
73     * Constant HOSTNAME
74     */
75    HOSTNAME("hostname"),
76   
77    COST("cost"),
78   
79    PROCESSINGELEMENTS("processingElements");
80
81      //--------------------------/
82     //- Class/Member Variables -/
83    //--------------------------/
84
85    /**
86     * Field value.
87     */
88    private final java.lang.String value;
89
90
91      //----------------/
92     //- Constructors -/
93    //----------------/
94
95    private ResourceParameterName(final java.lang.String value) {
96        this.value = value;
97    }
98
99
100      //-----------/
101     //- Methods -/
102    //-----------/
103
104    /**
105     * Method fromValue.
106     *
107     * @param value
108     * @return the constant for this value
109     */
110    public static ResourceParameterName fromValue(final java.lang.String value) {
111        for (ResourceParameterName c: ResourceParameterName.values()) {
112            if (c.value.equals(value)) {
113                return c;
114            }
115        }
116        throw new IllegalArgumentException(value);
117    }
118
119    /**
120     *
121     *
122     * @param value
123     */
124    public void setValue(final java.lang.String value) {
125    }
126
127    /**
128     * Method toString.
129     *
130     * @return the value of this constant
131     */
132    public java.lang.String toString() {
133        return this.value;
134    }
135
136    /**
137     * Method value.
138     *
139     * @return the value of this constant
140     */
141    public java.lang.String value() {
142        return this.value;
143    }
144}
Note: See TracBrowser for help on using the repository browser.