Java Doc for UpdateDelta.java in  » Science » Cougaar12_4 » org » cougaar » lib » aggagent » session » 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.lib.aggagent.session 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cougaar.lib.aggagent.session.UpdateDelta

UpdateDelta
public class UpdateDelta (Code)
The UpdateDelta class represents the communication strategy used for transfering data between the society agents and an aggregation agent. The typical usage of this class is as a container for ResultSetDataAtoms, which are loaded into the UpdateDelta by a society agent. The delta is then transfered as XML to the aggregation agent, where it is reconstituted and applied to the appropriate result set.

An alternate usage is as a container for more generic XmlTransferable objects such as queries and result sets. Though such an UpdateDelta cannot (at this time) be reconstituted automatically, this strategy is used in communications between UI clients and the aggregation agent.

An UpdateDelta can be used in either of two modes: increment or replacement. The former reflects the familiar behavior of the IncrementalSubscription class (with "added", "changed", and "removed" lists), while the latter produces a new result set in its entirety. The mode may be set at any time without losing data, but a good practice is to set the mode once before any content elements are added.


Field Summary
public static  StringUPDATE_TAG
    

Constructor Summary
public  UpdateDelta(String agent, String query, String key)
     Create a new UpdateDelta, presumably for transport to a remote location. The three String identifiers indicate which COUGAAR agent, query, and local session are associated with this UpdateDelta.
public  UpdateDelta(Element root)
     Create an UpdateDelta from XML representation.

Method Summary
public  voidclearContents()
    
public  ListgetAddedList()
    
public  StringgetAgentId()
    
public  ListgetChangedList()
    
public  StringgetErrorReport()
    
public  StringgetQueryId()
    
public  ListgetRemovedList()
    
public  ListgetReplacementList()
    
public  voidincludeXml(InverseSax doc)
    
public  booleanisErrorReport()
    
public  booleanisReplacement()
    
public static  voidmain(String[] argv)
    
public  voidsetErrorReport(Throwable t)
    
public  voidsetReplacement(boolean b)
     Set the "replacement mode" true or false.
public  StringtoXml()
     Convert this UpdateDelta to an XML format.

Field Detail
UPDATE_TAG
public static String UPDATE_TAG(Code)




Constructor Detail
UpdateDelta
public UpdateDelta(String agent, String query, String key)(Code)
Create a new UpdateDelta, presumably for transport to a remote location. The three String identifiers indicate which COUGAAR agent, query, and local session are associated with this UpdateDelta. Content must be added before this delta will be useful.

Note: The setReplacement() method must be called before content can safely be added. The boolean argument tells whether to create added, changed, and removed lists, or simply a replacement list.



UpdateDelta
public UpdateDelta(Element root)(Code)
Create an UpdateDelta from XML representation. Presumably, this is received from a remote location, complete with identifiers and content data elements.




Method Detail
clearContents
public void clearContents()(Code)



getAddedList
public List getAddedList()(Code)



getAgentId
public String getAgentId()(Code)



getChangedList
public List getChangedList()(Code)



getErrorReport
public String getErrorReport()(Code)



getQueryId
public String getQueryId()(Code)



getRemovedList
public List getRemovedList()(Code)



getReplacementList
public List getReplacementList()(Code)



includeXml
public void includeXml(InverseSax doc)(Code)



isErrorReport
public boolean isErrorReport()(Code)



isReplacement
public boolean isReplacement()(Code)



main
public static void main(String[] argv)(Code)



setErrorReport
public void setErrorReport(Throwable t)(Code)



setReplacement
public void setReplacement(boolean b)(Code)
Set the "replacement mode" true or false. If true, the UpdateDelta contains three lists of data elements after the fashion of an IncrementalSubscription; i.e., added, changed, and removed elements. If false, the UpdateDelta contains a single list which should be interpreted as a replacement for all previously collected data elements. This distinction is only meaningful for persistent queries.



toXml
public String toXml()(Code)
Convert this UpdateDelta to an XML format. Depending on whether this is a replacement or not, this will, respectively, produce a list of elements intended to replace an existing result set or a list of modifications to be applied to an existing result set. Data elements must implement the XmlTransferable interface.



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.