01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/QualifierKind.java .
05: * Generated by the IDL-to-Java compiler (portable), version "3.2"
06: * from qrs.idl
07: * Tuesday, August 7, 2007 11:57:30 AM EDT
08: */
09:
10: // Only a few kinds of qualifiers so far
11: public class QualifierKind implements org.omg.CORBA.portable.IDLEntity {
12: private int __value;
13: private static int __size = 6;
14: private static org.cougaar.qos.ResourceStatus.QualifierKind[] __array = new org.cougaar.qos.ResourceStatus.QualifierKind[__size];
15:
16: public static final int _min_delta = 0;
17: public static final org.cougaar.qos.ResourceStatus.QualifierKind min_delta = new org.cougaar.qos.ResourceStatus.QualifierKind(
18: _min_delta);
19: public static final int _min_credibility = 1;
20: public static final org.cougaar.qos.ResourceStatus.QualifierKind min_credibility = new org.cougaar.qos.ResourceStatus.QualifierKind(
21: _min_credibility);
22: public static final int _exceeds_threshold = 2;
23: public static final org.cougaar.qos.ResourceStatus.QualifierKind exceeds_threshold = new org.cougaar.qos.ResourceStatus.QualifierKind(
24: _exceeds_threshold);
25: public static final int _crosses_threshold = 3;
26: public static final org.cougaar.qos.ResourceStatus.QualifierKind crosses_threshold = new org.cougaar.qos.ResourceStatus.QualifierKind(
27: _crosses_threshold);
28: public static final int _every = 4;
29: public static final org.cougaar.qos.ResourceStatus.QualifierKind every = new org.cougaar.qos.ResourceStatus.QualifierKind(
30: _every);
31: public static final int _some = 5;
32: public static final org.cougaar.qos.ResourceStatus.QualifierKind some = new org.cougaar.qos.ResourceStatus.QualifierKind(
33: _some);
34:
35: public int value() {
36: return __value;
37: }
38:
39: public static org.cougaar.qos.ResourceStatus.QualifierKind from_int(
40: int value) {
41: if (value >= 0 && value < __size)
42: return __array[value];
43: else
44: throw new org.omg.CORBA.BAD_PARAM();
45: }
46:
47: protected QualifierKind(int value) {
48: __value = value;
49: __array[__value] = this ;
50: }
51: } // class QualifierKind
|