01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/CrossesThresholdQualifierFactoryHelper.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: // the given threshold.
11: abstract public class CrossesThresholdQualifierFactoryHelper {
12: private static String _id = "IDL:org/cougaar/qos/ResourceStatus/CrossesThresholdQualifierFactory:1.0";
13:
14: public static void insert(
15: org.omg.CORBA.Any a,
16: org.cougaar.qos.ResourceStatus.CrossesThresholdQualifierFactory that) {
17: org.omg.CORBA.portable.OutputStream out = a
18: .create_output_stream();
19: a.type(type());
20: write(out, that);
21: a.read_value(out.create_input_stream(), type());
22: }
23:
24: public static org.cougaar.qos.ResourceStatus.CrossesThresholdQualifierFactory extract(
25: org.omg.CORBA.Any a) {
26: return read(a.create_input_stream());
27: }
28:
29: private static org.omg.CORBA.TypeCode __typeCode = null;
30:
31: synchronized public static org.omg.CORBA.TypeCode type() {
32: if (__typeCode == null) {
33: __typeCode = org.omg.CORBA.ORB
34: .init()
35: .create_interface_tc(
36: org.cougaar.qos.ResourceStatus.CrossesThresholdQualifierFactoryHelper
37: .id(),
38: "CrossesThresholdQualifierFactory");
39: }
40: return __typeCode;
41: }
42:
43: public static String id() {
44: return _id;
45: }
46:
47: public static org.cougaar.qos.ResourceStatus.CrossesThresholdQualifierFactory read(
48: org.omg.CORBA.portable.InputStream istream) {
49: return narrow(istream
50: .read_Object(_CrossesThresholdQualifierFactoryStub.class));
51: }
52:
53: public static void write(
54: org.omg.CORBA.portable.OutputStream ostream,
55: org.cougaar.qos.ResourceStatus.CrossesThresholdQualifierFactory value) {
56: ostream.write_Object((org.omg.CORBA.Object) value);
57: }
58:
59: public static org.cougaar.qos.ResourceStatus.CrossesThresholdQualifierFactory narrow(
60: org.omg.CORBA.Object obj) {
61: if (obj == null)
62: return null;
63: else if (obj instanceof org.cougaar.qos.ResourceStatus.CrossesThresholdQualifierFactory)
64: return (org.cougaar.qos.ResourceStatus.CrossesThresholdQualifierFactory) obj;
65: else if (!obj._is_a(id()))
66: throw new org.omg.CORBA.BAD_PARAM();
67: else {
68: org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)
69: ._get_delegate();
70: org.cougaar.qos.ResourceStatus._CrossesThresholdQualifierFactoryStub stub = new org.cougaar.qos.ResourceStatus._CrossesThresholdQualifierFactoryStub();
71: stub._set_delegate(delegate);
72: return stub;
73: }
74: }
75:
76: public static org.cougaar.qos.ResourceStatus.CrossesThresholdQualifierFactory unchecked_narrow(
77: org.omg.CORBA.Object obj) {
78: if (obj == null)
79: return null;
80: else if (obj instanceof org.cougaar.qos.ResourceStatus.CrossesThresholdQualifierFactory)
81: return (org.cougaar.qos.ResourceStatus.CrossesThresholdQualifierFactory) obj;
82: else {
83: org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)
84: ._get_delegate();
85: org.cougaar.qos.ResourceStatus._CrossesThresholdQualifierFactoryStub stub = new org.cougaar.qos.ResourceStatus._CrossesThresholdQualifierFactoryStub();
86: stub._set_delegate(delegate);
87: return stub;
88: }
89: }
90:
91: }
|