01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/ResourceNodeHelper.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: abstract public class ResourceNodeHelper {
11: private static String _id = "IDL:org/cougaar/qos/ResourceStatus/ResourceNode/ResourceNode:1.0";
12:
13: public static void insert(org.omg.CORBA.Any a,
14: org.cougaar.qos.ResourceStatus.ResourceNode that) {
15: org.omg.CORBA.portable.OutputStream out = a
16: .create_output_stream();
17: a.type(type());
18: write(out, that);
19: a.read_value(out.create_input_stream(), type());
20: }
21:
22: public static org.cougaar.qos.ResourceStatus.ResourceNode extract(
23: org.omg.CORBA.Any a) {
24: return read(a.create_input_stream());
25: }
26:
27: private static org.omg.CORBA.TypeCode __typeCode = null;
28: private static boolean __active = false;
29:
30: synchronized public static org.omg.CORBA.TypeCode type() {
31: if (__typeCode == null) {
32: synchronized (org.omg.CORBA.TypeCode.class) {
33: if (__typeCode == null) {
34: if (__active) {
35: return org.omg.CORBA.ORB.init()
36: .create_recursive_tc(_id);
37: }
38: __active = true;
39: org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember[2];
40: org.omg.CORBA.TypeCode _tcOf_members0 = null;
41: _tcOf_members0 = org.omg.CORBA.ORB.init()
42: .create_string_tc(0);
43: _members0[0] = new org.omg.CORBA.StructMember(
44: "kind", _tcOf_members0, null);
45: _tcOf_members0 = org.omg.CORBA.ORB.init()
46: .create_string_tc(0);
47: _tcOf_members0 = org.omg.CORBA.ORB.init()
48: .create_sequence_tc(0, _tcOf_members0);
49: _tcOf_members0 = org.omg.CORBA.ORB
50: .init()
51: .create_alias_tc(
52: org.cougaar.qos.ResourceStatus.ParameterListHelper
53: .id(), "ParameterList",
54: _tcOf_members0);
55: _members0[1] = new org.omg.CORBA.StructMember(
56: "parameters", _tcOf_members0, null);
57: __typeCode = org.omg.CORBA.ORB
58: .init()
59: .create_struct_tc(
60: org.cougaar.qos.ResourceStatus.ResourceNodeHelper
61: .id(), "ResourceNode",
62: _members0);
63: __active = false;
64: }
65: }
66: }
67: return __typeCode;
68: }
69:
70: public static String id() {
71: return _id;
72: }
73:
74: public static org.cougaar.qos.ResourceStatus.ResourceNode read(
75: org.omg.CORBA.portable.InputStream istream) {
76: org.cougaar.qos.ResourceStatus.ResourceNode value = new org.cougaar.qos.ResourceStatus.ResourceNode();
77: value.kind = istream.read_string();
78: value.parameters = org.cougaar.qos.ResourceStatus.ParameterListHelper
79: .read(istream);
80: return value;
81: }
82:
83: public static void write(
84: org.omg.CORBA.portable.OutputStream ostream,
85: org.cougaar.qos.ResourceStatus.ResourceNode value) {
86: ostream.write_string(value.kind);
87: org.cougaar.qos.ResourceStatus.ParameterListHelper.write(
88: ostream, value.parameters);
89: }
90:
91: }
|