01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/QualifierKindHelper.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: abstract public class QualifierKindHelper {
12: private static String _id = "IDL:org/cougaar/qos/ResourceStatus/QualifierKind:1.0";
13:
14: public static void insert(org.omg.CORBA.Any a,
15: org.cougaar.qos.ResourceStatus.QualifierKind that) {
16: org.omg.CORBA.portable.OutputStream out = a
17: .create_output_stream();
18: a.type(type());
19: write(out, that);
20: a.read_value(out.create_input_stream(), type());
21: }
22:
23: public static org.cougaar.qos.ResourceStatus.QualifierKind extract(
24: org.omg.CORBA.Any a) {
25: return read(a.create_input_stream());
26: }
27:
28: private static org.omg.CORBA.TypeCode __typeCode = null;
29:
30: synchronized public static org.omg.CORBA.TypeCode type() {
31: if (__typeCode == null) {
32: __typeCode = org.omg.CORBA.ORB.init().create_enum_tc(
33: org.cougaar.qos.ResourceStatus.QualifierKindHelper
34: .id(),
35: "QualifierKind",
36: new String[] { "min_delta", "min_credibility",
37: "exceeds_threshold", "crosses_threshold",
38: "every", "some" });
39: }
40: return __typeCode;
41: }
42:
43: public static String id() {
44: return _id;
45: }
46:
47: public static org.cougaar.qos.ResourceStatus.QualifierKind read(
48: org.omg.CORBA.portable.InputStream istream) {
49: return org.cougaar.qos.ResourceStatus.QualifierKind
50: .from_int(istream.read_long());
51: }
52:
53: public static void write(
54: org.omg.CORBA.portable.OutputStream ostream,
55: org.cougaar.qos.ResourceStatus.QualifierKind value) {
56: ostream.write_long(value.value());
57: }
58:
59: }
|