Java Doc for ResourceContext.java in  » Science » Cougaar12_4 » org » cougaar » qos » qrs » 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.qos.qrs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cougaar.qos.qrs.ResourceContext

All known Subclasses:   org.cougaar.qos.qrs.MethodDS,  org.cougaar.qos.qrs.SiteFlowDS,  org.cougaar.qos.qrs.ProcessDS,  org.cougaar.qos.qrs.IpFlowDS,  org.cougaar.qos.qrs.RSS,  org.cougaar.qos.qrs.MvaDS,  org.cougaar.qos.qrs.DeflectingContext,  org.cougaar.qos.qrs.ClassDS,  org.cougaar.qos.qrs.HostDS,  org.cougaar.core.qos.rss.CougaarDS,  org.cougaar.qos.qrs.IntegraterDS,  org.cougaar.qos.qrs.AlarmDS,
ResourceContext
abstract public class ResourceContext implements Constants(Code)
Abstract definition of a contect for resource data, ie a collection of attributes bound over a set of parameter values. The attributes are implemented as DataFormula instances.

Inner Class :public static class ParameterError extends Exception
Inner Class :public static class NoSuchMethodException extends Exception


Constructor Summary
protected  ResourceContext(String[] parameters, ResourceContext parent)
     Standard constructor.

Method Summary
protected  voidaddChild(Object id, ResourceContext child)
    
public  voidbindSymbolValue(String symbol, Object value)
    
protected  voiddelete()
    
public  List<String>getContextClasses()
     Returns a list of the classes of any ResourceContexts that have been instantiated so far.
protected  StringgetContextKind()
    
public  List<ResourceContext>getContextsForClass(String c)
     Returns a list of the ResourceContexts for a given class that have been instantiated so far.
public  DataFormulagetFormula(String kind, String[] args)
    
public  List<String>getFormulaKinds()
     Returns an list of Formula classes instantiated so far by this context.
public  List<DataFormula>getFormulasForKind(String kind)
     Returns a list of the Formulas for a given class that have been instantiated so far.
protected  ObjectgetID()
    
 ObjectgetIdentifier(String kind, String[] parameters)
    
public  String[]getParameters()
     Returns a list of the parameter bindings.
public  ResourceContextgetParent()
     Return the parent of this.
protected  List<ResourceNode>getPath()
    
public  ResourceContextgetPathContext(ResourceNode[] path)
    
public  DataFormulagetPathFormula(ResourceNode[] path)
     ResourceContext factory method, arbitrary depth.
public  ObjectgetSymbolValue(String symbol)
    
public  ObjectgetValue(String symbol)
    
abstract protected  DataFormulainstantiateFormula(String formula_kind)
    
protected  voidinvoke(String method, String[] parameters)
    
protected  ObjectlookupSymbol(String symbol, String[] args, boolean resolve)
    
protected  ObjectnextLookup(String symbol, String[] args, boolean resolve)
    
protected  booleanparamEqual(Object x, Object y)
    
protected  voidpostInitialize()
    
protected  ResourceContextpreferredParent(RSS root)
    
public static  voidregisterContextInstantiater(String kind, ContextInstantiater instantiater)
    
protected  voidreinitializeFormulas()
    
protected  voidremoveChild(ResourceContext child)
    
protected  ResourceContextresolveSpec(String kind, String[] parameters)
    
 ResourceContextresolveSpec(Object id, String kind, String[] parameters)
    
protected  voidsetDependencies(ResourceNode[] dependencies)
    
protected  voidsetParent(ResourceContext parent)
    
protected  voidsetSymbolValue(String symbol, Object value)
    
public  StringtoString()
    
protected  voidunbindSymbolValue(String symbol)
    
protected  booleanuseParentPath()
    
abstract protected  voidverifyParameters(String[] parameters)
     Subclasses should provide this method.


Constructor Detail
ResourceContext
protected ResourceContext(String[] parameters, ResourceContext parent) throws ParameterError(Code)
Standard constructor. It verifies the parameters and adds the context to the list of known contexts.




Method Detail
addChild
protected void addChild(Object id, ResourceContext child)(Code)



bindSymbolValue
public void bindSymbolValue(String symbol, Object value)(Code)



delete
protected void delete()(Code)



getContextClasses
public List<String> getContextClasses()(Code)
Returns a list of the classes of any ResourceContexts that have been instantiated so far. This is only used by the ResourceContext gui.



getContextKind
protected String getContextKind()(Code)



getContextsForClass
public List<ResourceContext> getContextsForClass(String c)(Code)
Returns a list of the ResourceContexts for a given class that have been instantiated so far. This is only used by the ResourceContext gui.



getFormula
public DataFormula getFormula(String kind, String[] args)(Code)



getFormulaKinds
public List<String> getFormulaKinds()(Code)
Returns an list of Formula classes instantiated so far by this context. Only used by the ResourceContext gui.



getFormulasForKind
public List<DataFormula> getFormulasForKind(String kind)(Code)
Returns a list of the Formulas for a given class that have been instantiated so far. This is only used by the ResourceContext gui.



getID
protected Object getID()(Code)



getIdentifier
Object getIdentifier(String kind, String[] parameters)(Code)



getParameters
public String[] getParameters()(Code)
Returns a list of the parameter bindings. So far this is only used by the ResourceContext gui.



getParent
public ResourceContext getParent()(Code)
Return the parent of this.



getPath
protected List<ResourceNode> getPath()(Code)



getPathContext
public ResourceContext getPathContext(ResourceNode[] path)(Code)



getPathFormula
public DataFormula getPathFormula(ResourceNode[] path)(Code)
ResourceContext factory method, arbitrary depth.



getSymbolValue
public Object getSymbolValue(String symbol)(Code)



getValue
public Object getValue(String symbol)(Code)



instantiateFormula
abstract protected DataFormula instantiateFormula(String formula_kind)(Code)



invoke
protected void invoke(String method, String[] parameters) throws NoSuchMethodException(Code)



lookupSymbol
protected Object lookupSymbol(String symbol, String[] args, boolean resolve)(Code)



nextLookup
protected Object nextLookup(String symbol, String[] args, boolean resolve)(Code)



paramEqual
protected boolean paramEqual(Object x, Object y)(Code)



postInitialize
protected void postInitialize()(Code)



preferredParent
protected ResourceContext preferredParent(RSS root)(Code)



registerContextInstantiater
public static void registerContextInstantiater(String kind, ContextInstantiater instantiater)(Code)



reinitializeFormulas
protected void reinitializeFormulas()(Code)



removeChild
protected void removeChild(ResourceContext child)(Code)



resolveSpec
protected ResourceContext resolveSpec(String kind, String[] parameters)(Code)



resolveSpec
ResourceContext resolveSpec(Object id, String kind, String[] parameters)(Code)



setDependencies
protected void setDependencies(ResourceNode[] dependencies)(Code)



setParent
protected void setParent(ResourceContext parent)(Code)



setSymbolValue
protected void setSymbolValue(String symbol, Object value)(Code)



toString
public String toString()(Code)



unbindSymbolValue
protected void unbindSymbolValue(String symbol)(Code)



useParentPath
protected boolean useParentPath()(Code)



verifyParameters
abstract protected void verifyParameters(String[] parameters) throws ParameterError(Code)
Subclasses should provide this method. It should verify that the given parameters are correct in number, position, type and value, throwing ParameterError if not.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.