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


java.lang.Object
   org.cougaar.core.blackboard.Subscription

All known Subclasses:   org.cougaar.core.blackboard.TimestampSubscription,  org.cougaar.core.blackboard.EnvelopeMetricsSubscription,  org.cougaar.core.blackboard.CollectionSubscription,  org.cougaar.core.blackboard.PublisherSubscription,  org.cougaar.core.blackboard.TodoSubscription,
Subscription
abstract public class Subscription (Code)
A filtered view of the blackboard that is updated between org.cougaar.core.service.BlackboardService transactions.

The view is defined by the UnaryPredicate filter's "execute" method.
See Also:   CollectionSubscription
See Also:   
See Also:   IncrementalSubscription
See Also:   



Field Summary
protected  booleanmyHasChanged
    
final protected  UnaryPredicatepredicate
    
protected  Subscribersubscriber
    

Constructor Summary
public  Subscription(UnaryPredicate p)
    

Method Summary
public  booleanapply(Envelope envelope)
     Apply a set of transactional changes to our subscription.
final protected  voidcheckTransactionOK(String s)
     Check to see if we're in a transaction for the named purpose if we have a subscription which supports transactions.
 booleanconditionalAdd(Object o, boolean isVisible)
     Decide if the object is applicable to the subscription and make the appropriate changes.
 booleanconditionalChange(Object o, List changes, boolean isVisible)
     Decide if the object is applicable to the subscription and make the appropriate changes.
 booleanconditionalRemove(Object o, boolean isVisible)
     Decide if the object is applicable to the subscription and make the appropriate changes.
public  voidfill(Envelope envelope)
     Fill the subscription with the initial contents.
public  StringgetName()
    
final public  SubscribergetSubscriber()
    
final public  booleanhasChanged()
     Check to see if this subscription has changed since the last transaction.
abstract protected  voidprivateAdd(Object o, boolean isVisible)
    
final protected  booleanprivateApply(Envelope envelope)
    
abstract protected  voidprivateChange(Object o, List changes, boolean isVisible)
    
abstract protected  voidprivateRemove(Object o, boolean isVisible)
    
protected  voidresetChanges()
     Called by Subscriber's transaction system to update the changes (and delta lists, if applicable) tracking.
final protected  voidsetChanged(boolean changed)
    
final  voidsetIsInitialized()
    
final  voidsetSubscriber(Subscriber s)
     set the Subscriber instance for the subscription.
final protected  voidsubscriberSignalExternalActivity()
    

Field Detail
myHasChanged
protected boolean myHasChanged(Code)



predicate
final protected UnaryPredicate predicate(Code)
The predicate that represents this subscription



subscriber
protected Subscriber subscriber(Code)
our Subscriber and interface to the blackboard




Constructor Detail
Subscription
public Subscription(UnaryPredicate p)(Code)

See Also:   Blackboard.PEDANTIC




Method Detail
apply
public boolean apply(Envelope envelope)(Code)
Apply a set of transactional changes to our subscription. Envelopes are ignored until a matching InitializeSubscriptionEnvelope has been received. Subscription.privateApply(Envelope)



checkTransactionOK
final protected void checkTransactionOK(String s)(Code)
Check to see if we're in a transaction for the named purpose if we have a subscription which supports transactions.



conditionalAdd
boolean conditionalAdd(Object o, boolean isVisible)(Code)
Decide if the object is applicable to the subscription and make the appropriate changes. Called by Envelope.wrapperAdd to add an object to the subscription view.
Parameters:
  isVisible - If FALSE will make the change quietly, e.g. afterrehydration from persistence plugin. true IFF the subscription was changed as a result of the call.



conditionalChange
boolean conditionalChange(Object o, List changes, boolean isVisible)(Code)
Decide if the object is applicable to the subscription and make the appropriate changes. Called by Envelope.wrapperAdd to mark as changed an object in the subscription view.
Parameters:
  changes - a List of ChangeReport instances describing the changesmade to the object. May be null.
Parameters:
  isVisible - If FALSE will make the change quietly, e.g. afterrehydration from persistence plugin. true IFF the subscription was changed as a result of the call.



conditionalRemove
boolean conditionalRemove(Object o, boolean isVisible)(Code)
Decide if the object is applicable to the subscription and make the appropriate changes. Called by Envelope.wrapperAdd to remove an object in the subscription view.
Parameters:
  isVisible - If FALSE will make the change quietly, e.g. afterrehydration from persistence plugin. true IFF the subscription was changed as a result of the call.



fill
public void fill(Envelope envelope)(Code)
Fill the subscription with the initial contents.



getName
public String getName()(Code)



getSubscriber
final public Subscriber getSubscriber()(Code)
the Subscriber instance which is the interface to the plugin.



hasChanged
final public boolean hasChanged()(Code)
Check to see if this subscription has changed since the last transaction.

To be precise, this indicates if there were any visible changes to the subscription contents (add/change/remove) in the interval between the current and the previous calls to Subscriber.openTransaction()




privateAdd
abstract protected void privateAdd(Object o, boolean isVisible)(Code)



privateApply
final protected boolean privateApply(Envelope envelope)(Code)



privateChange
abstract protected void privateChange(Object o, List changes, boolean isVisible)(Code)



privateRemove
abstract protected void privateRemove(Object o, boolean isVisible)(Code)



resetChanges
protected void resetChanges()(Code)
Called by Subscriber's transaction system to update the changes (and delta lists, if applicable) tracking.
See Also:   Subscription.hasChanged()



setChanged
final protected void setChanged(boolean changed)(Code)



setIsInitialized
final void setIsInitialized()(Code)



setSubscriber
final void setSubscriber(Subscriber s)(Code)
set the Subscriber instance for the subscription. Should only be done by Subscriber.subscribe(), and will throw a RuntimeException if called more than once.



subscriberSignalExternalActivity
final protected void subscriberSignalExternalActivity()(Code)



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.