001: /*
002: * Generated by Cougaar QoS FrameGen
003: * from c:\marla\mmon\cougaar\HEAD\qos\src\org\cougaar\core\qos\frame\topology\cougaar-topology-protos.xml
004: * at Mar 14, 2007 4:18:10 PM
005: *
006: * Copyright BBN Technologies 2006
007: *
008: */
009: package org.cougaar.core.qos.frame.topology;
010:
011: import org.cougaar.core.qos.frame.DataFrame;
012: import org.cougaar.core.qos.frame.FrameSet;
013: import org.cougaar.core.qos.frame.SlotDescription;
014: import org.cougaar.core.util.UID;
015:
016: public class MsgInIndicator extends MsgIndicator {
017: static {
018: org.cougaar.core.qos.frame.FrameMaker __fm = new org.cougaar.core.qos.frame.FrameMaker() {
019: public DataFrame makeFrame(FrameSet frameSet, UID uid) {
020: return new MsgInIndicator(frameSet, uid);
021: }
022: };
023: DataFrame.registerFrameMaker(
024: "org.cougaar.core.qos.frame.topology",
025: "msgInIndicator", __fm);
026: }
027: private String watchSlot;
028:
029: public MsgInIndicator(UID uid) {
030: this (null, uid);
031: }
032:
033: public MsgInIndicator(FrameSet frameSet, UID uid) {
034: super (frameSet, uid);
035: initializeWatchSlot("msgOut");
036: }
037:
038: public String getKind() {
039: return "msgInIndicator";
040: }
041:
042: protected void collectSlotValues(java.util.Properties __props) {
043: super .collectSlotValues(__props);
044: Object __value;
045: __value = getWatchSlot__AsObject();
046: __props.put("watchSlot", __value != null ? __value : NIL);
047: }
048:
049: public String getWatchSlot() {
050: return watchSlot;
051: }
052:
053: String getWatchSlot__NoWarn() {
054: return watchSlot;
055: }
056:
057: Object getWatchSlot__AsObject() {
058: return watchSlot;
059: }
060:
061: public void setWatchSlot(String __new_value) {
062: String __old_value = watchSlot;
063: this .watchSlot = __new_value;
064: slotModified("watchSlot", __old_value, __new_value, true, true);
065: }
066:
067: public void setWatchSlot__AsObject(Object __new_value) {
068: Object __old_value = getWatchSlot__AsObject();
069: this .watchSlot = force_String(__new_value);
070: slotModified("watchSlot", __old_value, __new_value, true, true);
071: }
072:
073: protected void initializeWatchSlot(String new_value) {
074: this .watchSlot = new_value;
075: slotInitialized("watchSlot", new_value);
076: }
077:
078: void initializeWatchSlot__AsObject(Object new_value) {
079: this .watchSlot = force_String(new_value);
080: slotInitialized("watchSlot", new_value);
081: }
082:
083: protected Object getLocalValue(String __slot) {
084: String __key = __slot.intern();
085: if ("watchSlot" == __key)
086: return getWatchSlot__AsObject();
087: else
088: return super .getLocalValue(__slot);
089: }
090:
091: protected void setLocalValue(String __slot, Object __value) {
092: String __key = __slot.intern();
093: if ("watchSlot" == __key)
094: setWatchSlot__AsObject(__value);
095: else
096: super .setLocalValue(__slot, __value);
097: }
098:
099: protected void initializeLocalValue(String __slot, Object __value) {
100: String __key = __slot.intern();
101: if ("watchSlot" == __key)
102: initializeWatchSlot__AsObject(__value);
103: else
104: super .initializeLocalValue(__slot, __value);
105: }
106:
107: protected void collectSlotNames(java.util.Set<String> slots) {
108: super .collectSlotNames(slots);
109: slots.add("watchSlot");
110: }
111:
112: public SlotDescription slotMetaData__WatchSlot() {
113: SlotDescription __desc = new SlotDescription();
114: __desc.name = "watchSlot";
115: __desc.prototype = "msgInIndicator";
116: __desc.is_writable = true;
117: Object __value;
118: __value = watchSlot;
119: if (__value != null) {
120: __desc.is_overridden = true;
121: __desc.value = __value;
122: } else {
123: __desc.is_overridden = false;
124: __desc.value = "msgOut";
125: }
126: return __desc;
127: }
128:
129: protected void collectSlotDescriptions(
130: java.util.Map<String, SlotDescription> map) {
131: super .collectSlotDescriptions(map);
132: map.put("watchSlot", slotMetaData__WatchSlot());
133: }
134: }
|