01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/ResourceDescriptionHelper.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 ResourceDescriptionHelper {
11: private static String _id = "IDL:org/cougaar/qos/ResourceStatus/ResourceDescription: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:
29: synchronized public static org.omg.CORBA.TypeCode type() {
30: if (__typeCode == null) {
31: __typeCode = org.cougaar.qos.ResourceStatus.ResourceNodeHelper
32: .type();
33: __typeCode = org.omg.CORBA.ORB.init().create_sequence_tc(0,
34: __typeCode);
35: __typeCode = org.omg.CORBA.ORB
36: .init()
37: .create_alias_tc(
38: org.cougaar.qos.ResourceStatus.ResourceDescriptionHelper
39: .id(), "ResourceDescription",
40: __typeCode);
41: }
42: return __typeCode;
43: }
44:
45: public static String id() {
46: return _id;
47: }
48:
49: public static org.cougaar.qos.ResourceStatus.ResourceNode[] read(
50: org.omg.CORBA.portable.InputStream istream) {
51: org.cougaar.qos.ResourceStatus.ResourceNode value[] = null;
52: int _len0 = istream.read_long();
53: value = new org.cougaar.qos.ResourceStatus.ResourceNode[_len0];
54: for (int _o1 = 0; _o1 < value.length; ++_o1)
55: value[_o1] = org.cougaar.qos.ResourceStatus.ResourceNodeHelper
56: .read(istream);
57: return value;
58: }
59:
60: public static void write(
61: org.omg.CORBA.portable.OutputStream ostream,
62: org.cougaar.qos.ResourceStatus.ResourceNode[] value) {
63: ostream.write_long(value.length);
64: for (int _i0 = 0; _i0 < value.length; ++_i0)
65: org.cougaar.qos.ResourceStatus.ResourceNodeHelper.write(
66: ostream, value[_i0]);
67: }
68:
69: }
|