001: package org.cougaar.qos.ResourceStatus;
002:
003: /**
004: * org/cougaar/qos/ResourceStatus/data_value.java .
005: * Generated by the IDL-to-Java compiler (portable), version "3.2"
006: * from qrs.idl
007: * Tuesday, August 7, 2007 11:57:30 AM EDT
008: */
009:
010: public final class data_value implements
011: org.omg.CORBA.portable.IDLEntity {
012: private double ___d_value;
013: private String ___s_value;
014: private boolean ___b_value;
015: private org.cougaar.qos.ResourceStatus.data_types __discriminator;
016: private boolean __uninitialized = true;
017:
018: public data_value() {
019: }
020:
021: public org.cougaar.qos.ResourceStatus.data_types discriminator() {
022: if (__uninitialized)
023: throw new org.omg.CORBA.BAD_OPERATION();
024: return __discriminator;
025: }
026:
027: public double d_value() {
028: if (__uninitialized)
029: throw new org.omg.CORBA.BAD_OPERATION();
030: verifyd_value(__discriminator);
031: return ___d_value;
032: }
033:
034: public void d_value(double value) {
035: __discriminator = org.cougaar.qos.ResourceStatus.data_types.number_data;
036: ___d_value = value;
037: __uninitialized = false;
038: }
039:
040: public void d_value(
041: org.cougaar.qos.ResourceStatus.data_types discriminator,
042: double value) {
043: verifyd_value(discriminator);
044: __discriminator = discriminator;
045: ___d_value = value;
046: __uninitialized = false;
047: }
048:
049: private void verifyd_value(
050: org.cougaar.qos.ResourceStatus.data_types discriminator) {
051: if (discriminator != org.cougaar.qos.ResourceStatus.data_types.number_data)
052: throw new org.omg.CORBA.BAD_OPERATION();
053: }
054:
055: public String s_value() {
056: if (__uninitialized)
057: throw new org.omg.CORBA.BAD_OPERATION();
058: verifys_value(__discriminator);
059: return ___s_value;
060: }
061:
062: public void s_value(String value) {
063: __discriminator = org.cougaar.qos.ResourceStatus.data_types.string_data;
064: ___s_value = value;
065: __uninitialized = false;
066: }
067:
068: public void s_value(
069: org.cougaar.qos.ResourceStatus.data_types discriminator,
070: String value) {
071: verifys_value(discriminator);
072: __discriminator = discriminator;
073: ___s_value = value;
074: __uninitialized = false;
075: }
076:
077: private void verifys_value(
078: org.cougaar.qos.ResourceStatus.data_types discriminator) {
079: if (discriminator != org.cougaar.qos.ResourceStatus.data_types.string_data)
080: throw new org.omg.CORBA.BAD_OPERATION();
081: }
082:
083: public boolean b_value() {
084: if (__uninitialized)
085: throw new org.omg.CORBA.BAD_OPERATION();
086: verifyb_value(__discriminator);
087: return ___b_value;
088: }
089:
090: public void b_value(boolean value) {
091: __discriminator = org.cougaar.qos.ResourceStatus.data_types.boolean_data;
092: ___b_value = value;
093: __uninitialized = false;
094: }
095:
096: public void b_value(
097: org.cougaar.qos.ResourceStatus.data_types discriminator,
098: boolean value) {
099: verifyb_value(discriminator);
100: __discriminator = discriminator;
101: ___b_value = value;
102: __uninitialized = false;
103: }
104:
105: private void verifyb_value(
106: org.cougaar.qos.ResourceStatus.data_types discriminator) {
107: if (discriminator != org.cougaar.qos.ResourceStatus.data_types.boolean_data)
108: throw new org.omg.CORBA.BAD_OPERATION();
109: }
110:
111: } // class data_value
|