01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/CrossesThresholdQualifierFactoryPOA.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: public abstract class CrossesThresholdQualifierFactoryPOA extends
12: org.omg.PortableServer.Servant
13: implements
14: org.cougaar.qos.ResourceStatus.CrossesThresholdQualifierFactoryOperations,
15: org.omg.CORBA.portable.InvokeHandler {
16:
17: // Constructors
18:
19: private static java.util.Hashtable _methods = new java.util.Hashtable();
20: static {
21: _methods.put("getQualifier", new java.lang.Integer(0));
22: }
23:
24: public org.omg.CORBA.portable.OutputStream _invoke(String $method,
25: org.omg.CORBA.portable.InputStream in,
26: org.omg.CORBA.portable.ResponseHandler $rh) {
27: org.omg.CORBA.portable.OutputStream out = null;
28: java.lang.Integer __method = (java.lang.Integer) _methods
29: .get($method);
30: if (__method == null)
31: throw new org.omg.CORBA.BAD_OPERATION(0,
32: org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
33:
34: switch (__method.intValue()) {
35: case 0: // org/cougaar/qos/ResourceStatus/CrossesThresholdQualifierFactory/getQualifier
36: {
37: double threshold = in.read_double();
38: org.cougaar.qos.ResourceStatus.Qualifier $result = null;
39: $result = this .getQualifier(threshold);
40: out = $rh.createReply();
41: org.cougaar.qos.ResourceStatus.QualifierHelper.write(out,
42: $result);
43: break;
44: }
45:
46: default:
47: throw new org.omg.CORBA.BAD_OPERATION(0,
48: org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
49: }
50:
51: return out;
52: } // _invoke
53:
54: // Type-specific CORBA::Object operations
55: private static String[] __ids = {
56: "IDL:org/cougaar/qos/ResourceStatus/CrossesThresholdQualifierFactory:1.0",
57: "IDL:org/cougaar/qos/ResourceStatus/QualifierFactory:1.0" };
58:
59: public String[] _all_interfaces(org.omg.PortableServer.POA poa,
60: byte[] objectId) {
61: return (String[]) __ids.clone();
62: }
63:
64: public CrossesThresholdQualifierFactory _this () {
65: return CrossesThresholdQualifierFactoryHelper.narrow(super
66: ._this _object());
67: }
68:
69: public CrossesThresholdQualifierFactory _this (org.omg.CORBA.ORB orb) {
70: return CrossesThresholdQualifierFactoryHelper.narrow(super
71: ._this _object(orb));
72: }
73:
74: } // class CrossesThresholdQualifierFactoryPOA
|