Source Code Cross Referenced for Root.java in  » Science » Cougaar12_4 » org » cougaar » core » qos » frame » scale » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Cougaar12_4 » org.cougaar.core.qos.frame.scale 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Generated by Cougaar QoS FrameGen
003:         *   from /Volumes/Data/Projects/cougaar/HEAD/qos/src/org/cougaar/core/qos/frame/scale/test-scale-protos.xml
004:         *   at Aug 3, 2006 10:09:21 AM
005:         *
006:         * Copyright BBN Technologies 2006
007:         *
008:         */
009:        package org.cougaar.core.qos.frame.scale;
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 Root extends Thing {
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 Root(frameSet, uid);
021:                    }
022:                };
023:                DataFrame.registerFrameMaker(
024:                        "org.cougaar.core.qos.frame.scale", "root", __fm);
025:            }
026:            private float rootSlotFloat;
027:            private float avgLevel1;
028:            private int count;
029:            private String rootSlotString;
030:
031:            public Root(UID uid) {
032:                this (null, uid);
033:            }
034:
035:            public Root(FrameSet frameSet, UID uid) {
036:                super (frameSet, uid);
037:                initializeRootSlotFloat(0.0f);
038:                initializeCount(0);
039:                initializeRootSlotString("Zero");
040:            }
041:
042:            public String getKind() {
043:                return "root";
044:            }
045:
046:            protected void collectSlotValues(java.util.Properties __props) {
047:                super .collectSlotValues(__props);
048:                Object __value;
049:                __value = getRootSlotFloat__AsObject();
050:                __props.put("rootSlotFloat", __value != null ? __value : NIL);
051:                __value = getAvgLevel1__AsObject();
052:                __props.put("avgLevel1", __value != null ? __value : NIL);
053:                __value = getCount__AsObject();
054:                __props.put("count", __value != null ? __value : NIL);
055:                __value = getRootSlotString__AsObject();
056:                __props.put("rootSlotString", __value != null ? __value : NIL);
057:            }
058:
059:            public float getRootSlotFloat() {
060:                return rootSlotFloat;
061:            }
062:
063:            float getRootSlotFloat__NoWarn() {
064:                return rootSlotFloat;
065:            }
066:
067:            Object getRootSlotFloat__AsObject() {
068:                return new Float(rootSlotFloat);
069:            }
070:
071:            public void setRootSlotFloat(float __new_value) {
072:                float __old_value = rootSlotFloat;
073:                this .rootSlotFloat = __new_value;
074:                slotModified("rootSlotFloat", new Float(__old_value),
075:                        new Float(__new_value), true, true);
076:            }
077:
078:            public void setRootSlotFloat__AsObject(Object __new_value) {
079:                Object __old_value = getRootSlotFloat__AsObject();
080:                this .rootSlotFloat = force_float(__new_value);
081:                slotModified("rootSlotFloat", __old_value, __new_value, true,
082:                        true);
083:            }
084:
085:            protected void initializeRootSlotFloat(float new_value) {
086:                this .rootSlotFloat = new_value;
087:                slotInitialized("rootSlotFloat", new Float(new_value));
088:            }
089:
090:            void initializeRootSlotFloat__AsObject(Object new_value) {
091:                this .rootSlotFloat = force_float(new_value);
092:                slotInitialized("rootSlotFloat", new_value);
093:            }
094:
095:            public float getAvgLevel1() {
096:                return avgLevel1;
097:            }
098:
099:            float getAvgLevel1__NoWarn() {
100:                return avgLevel1;
101:            }
102:
103:            Object getAvgLevel1__AsObject() {
104:                return new Float(avgLevel1);
105:            }
106:
107:            public void setAvgLevel1(float __new_value) {
108:                float __old_value = avgLevel1;
109:                this .avgLevel1 = __new_value;
110:                slotModified("avgLevel1", new Float(__old_value), new Float(
111:                        __new_value), true, true);
112:            }
113:
114:            public void setAvgLevel1__AsObject(Object __new_value) {
115:                Object __old_value = getAvgLevel1__AsObject();
116:                this .avgLevel1 = force_float(__new_value);
117:                slotModified("avgLevel1", __old_value, __new_value, true, true);
118:            }
119:
120:            protected void initializeAvgLevel1(float new_value) {
121:                this .avgLevel1 = new_value;
122:                slotInitialized("avgLevel1", new Float(new_value));
123:            }
124:
125:            void initializeAvgLevel1__AsObject(Object new_value) {
126:                this .avgLevel1 = force_float(new_value);
127:                slotInitialized("avgLevel1", new_value);
128:            }
129:
130:            public int getCount() {
131:                return count;
132:            }
133:
134:            int getCount__NoWarn() {
135:                return count;
136:            }
137:
138:            Object getCount__AsObject() {
139:                return new Integer(count);
140:            }
141:
142:            public void setCount(int __new_value) {
143:                int __old_value = count;
144:                this .count = __new_value;
145:                slotModified("count", new Integer(__old_value), new Integer(
146:                        __new_value), true, true);
147:            }
148:
149:            public void setCount__AsObject(Object __new_value) {
150:                Object __old_value = getCount__AsObject();
151:                this .count = force_int(__new_value);
152:                slotModified("count", __old_value, __new_value, true, true);
153:            }
154:
155:            protected void initializeCount(int new_value) {
156:                this .count = new_value;
157:                slotInitialized("count", new Integer(new_value));
158:            }
159:
160:            void initializeCount__AsObject(Object new_value) {
161:                this .count = force_int(new_value);
162:                slotInitialized("count", new_value);
163:            }
164:
165:            public String getRootSlotString() {
166:                return rootSlotString;
167:            }
168:
169:            String getRootSlotString__NoWarn() {
170:                return rootSlotString;
171:            }
172:
173:            Object getRootSlotString__AsObject() {
174:                return rootSlotString;
175:            }
176:
177:            public void setRootSlotString(String __new_value) {
178:                String __old_value = rootSlotString;
179:                this .rootSlotString = __new_value;
180:                slotModified("rootSlotString", __old_value, __new_value, true,
181:                        true);
182:            }
183:
184:            public void setRootSlotString__AsObject(Object __new_value) {
185:                Object __old_value = getRootSlotString__AsObject();
186:                this .rootSlotString = force_String(__new_value);
187:                slotModified("rootSlotString", __old_value, __new_value, true,
188:                        true);
189:            }
190:
191:            protected void initializeRootSlotString(String new_value) {
192:                this .rootSlotString = new_value;
193:                slotInitialized("rootSlotString", new_value);
194:            }
195:
196:            void initializeRootSlotString__AsObject(Object new_value) {
197:                this .rootSlotString = force_String(new_value);
198:                slotInitialized("rootSlotString", new_value);
199:            }
200:
201:            protected Object getLocalValue(String __slot) {
202:                String __key = __slot.intern();
203:                if ("rootSlotFloat" == __key)
204:                    return getRootSlotFloat__AsObject();
205:                else if ("avgLevel1" == __key)
206:                    return getAvgLevel1__AsObject();
207:                else if ("count" == __key)
208:                    return getCount__AsObject();
209:                else if ("rootSlotString" == __key)
210:                    return getRootSlotString__AsObject();
211:                else
212:                    return super .getLocalValue(__slot);
213:            }
214:
215:            protected void setLocalValue(String __slot, Object __value) {
216:                String __key = __slot.intern();
217:                if ("rootSlotFloat" == __key)
218:                    setRootSlotFloat__AsObject(__value);
219:                else if ("avgLevel1" == __key)
220:                    setAvgLevel1__AsObject(__value);
221:                else if ("count" == __key)
222:                    setCount__AsObject(__value);
223:                else if ("rootSlotString" == __key)
224:                    setRootSlotString__AsObject(__value);
225:                else
226:                    super .setLocalValue(__slot, __value);
227:            }
228:
229:            protected void initializeLocalValue(String __slot, Object __value) {
230:                String __key = __slot.intern();
231:                if ("rootSlotFloat" == __key)
232:                    initializeRootSlotFloat__AsObject(__value);
233:                else if ("avgLevel1" == __key)
234:                    initializeAvgLevel1__AsObject(__value);
235:                else if ("count" == __key)
236:                    initializeCount__AsObject(__value);
237:                else if ("rootSlotString" == __key)
238:                    initializeRootSlotString__AsObject(__value);
239:                else
240:                    super .initializeLocalValue(__slot, __value);
241:            }
242:
243:            protected void collectSlotNames(java.util.Set<String> slots) {
244:                super .collectSlotNames(slots);
245:                slots.add("rootSlotFloat");
246:                slots.add("avgLevel1");
247:                slots.add("count");
248:                slots.add("rootSlotString");
249:            }
250:
251:            public SlotDescription slotMetaData__RootSlotFloat() {
252:                SlotDescription __desc = new SlotDescription();
253:                __desc.name = "rootSlotFloat";
254:                __desc.prototype = "root";
255:                __desc.is_writable = true;
256:                Object __value;
257:                __value = new Float(rootSlotFloat);
258:                if (__value != null) {
259:                    __desc.is_overridden = true;
260:                    __desc.value = __value;
261:                } else {
262:                    __desc.is_overridden = false;
263:                    __desc.value = new Float(0.0f);
264:                }
265:                return __desc;
266:            }
267:
268:            public SlotDescription slotMetaData__AvgLevel1() {
269:                SlotDescription __desc = new SlotDescription();
270:                __desc.name = "avgLevel1";
271:                __desc.prototype = "root";
272:                __desc.is_writable = true;
273:                Object __value;
274:                __value = new Float(avgLevel1);
275:                if (__value != null) {
276:                    __desc.is_overridden = true;
277:                    __desc.value = __value;
278:                } else {
279:                    __desc.is_overridden = false;
280:                }
281:                return __desc;
282:            }
283:
284:            public SlotDescription slotMetaData__Count() {
285:                SlotDescription __desc = new SlotDescription();
286:                __desc.name = "count";
287:                __desc.prototype = "root";
288:                __desc.is_writable = true;
289:                Object __value;
290:                __value = new Integer(count);
291:                if (__value != null) {
292:                    __desc.is_overridden = true;
293:                    __desc.value = __value;
294:                } else {
295:                    __desc.is_overridden = false;
296:                    __desc.value = new Integer(0);
297:                }
298:                return __desc;
299:            }
300:
301:            public SlotDescription slotMetaData__RootSlotString() {
302:                SlotDescription __desc = new SlotDescription();
303:                __desc.name = "rootSlotString";
304:                __desc.prototype = "root";
305:                __desc.is_writable = true;
306:                Object __value;
307:                __value = rootSlotString;
308:                if (__value != null) {
309:                    __desc.is_overridden = true;
310:                    __desc.value = __value;
311:                } else {
312:                    __desc.is_overridden = false;
313:                    __desc.value = "Zero";
314:                }
315:                return __desc;
316:            }
317:
318:            protected void collectSlotDescriptions(
319:                    java.util.Map<String, SlotDescription> map) {
320:                super .collectSlotDescriptions(map);
321:                map.put("rootSlotFloat", slotMetaData__RootSlotFloat());
322:                map.put("avgLevel1", slotMetaData__AvgLevel1());
323:                map.put("count", slotMetaData__Count());
324:                map.put("rootSlotString", slotMetaData__RootSlotString());
325:            }
326:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.