Java Doc for ALDynamicSDClientPlugin.java in  » Science » Cougaar12_4 » org » cougaar » logistics » plugin » servicediscovery » 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.logistics.plugin.servicediscovery 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.cougaar.planning.plugin.legacy.SimplePlugin
   org.cougaar.servicediscovery.plugin.SDClientPlugin
      org.cougaar.logistics.plugin.servicediscovery.ALDynamicSDClientPlugin

ALDynamicSDClientPlugin
public class ALDynamicSDClientPlugin extends SDClientPlugin implements GLSConstants(Code)

Inner Class :protected static class ServiceRequestRecord
Inner Class :protected static class ScoredServiceDescriptionComparator implements java.util.Comparator
Inner Class :protected static class ALLineageEchelonScorer extends LineageEchelonScorer



Method Summary
protected  booleanalreadyAskedForContractWithProvider(Role role, String providerName, TimeSpan timeInterval)
     Return true if according to your service request history, you have already asked this provider for this complete time interval for this role.
protected  booleancheckProviderCompletelyCovered(Role role)
     If there is a current request history for this role, check the time interval of it.
protected  booleancheckProviderCompletelyCoveredOrRequested(Role role)
     If there is a current request history for this role, check the time interval of it.
protected  CollectiongetCurrentlyUncoveredIntervalsWithoutOutstandingRequests(long desiredStart, long desiredEnd, Role role)
     requires that start <= end Return a collection of all time intervals between desiredStart and desiredEnd that are not covered by existing service contracts or outstanding requests for this role.
protected  voidhandleChangedServiceContractRelays(Collection changedRelays)
    
protected  voidhandleModifiedServiceContract(ServiceContractRelay relay)
    
protected  voidhandleRequestWithNoRemainingProviderOption(Role role, TimeSpan currentInterval)
    
public static  voidmain(String[] args)
    
protected  CollectionreorderAnyTiedServiceDescriptions(ArrayList scoredServiceDescriptions)
    
protected  voidrequestServiceContract(ServiceDescription serviceDescription, TimeSpan interval)
    
protected  voidsetupSubscriptions()
    



Method Detail
alreadyAskedForContractWithProvider
protected boolean alreadyAskedForContractWithProvider(Role role, String providerName, TimeSpan timeInterval)(Code)
Return true if according to your service request history, you have already asked this provider for this complete time interval for this role. Overrides the superclass to deal with service request history.



checkProviderCompletelyCovered
protected boolean checkProviderCompletelyCovered(Role role)(Code)
If there is a current request history for this role, check the time interval of it. Otherwise, check the default time interval. Return true if the interval is covered by non-revoked service contracts. Override superclass to deal with potential provider relationships that have start/end time not equal to default start/end.



checkProviderCompletelyCoveredOrRequested
protected boolean checkProviderCompletelyCoveredOrRequested(Role role)(Code)
If there is a current request history for this role, check the time interval of it. Otherwise, check the default time interval. Return true if this role is completely covered by service contracts or outstanding requests Override superclass to deal with potential provider relationships that have start/end time not equal to default start/end.



getCurrentlyUncoveredIntervalsWithoutOutstandingRequests
protected Collection getCurrentlyUncoveredIntervalsWithoutOutstandingRequests(long desiredStart, long desiredEnd, Role role)(Code)
requires that start <= end Return a collection of all time intervals between desiredStart and desiredEnd that are not covered by existing service contracts or outstanding requests for this role. Overrides superclass to deal with provider relationships with time spans not the default.



handleChangedServiceContractRelays
protected void handleChangedServiceContractRelays(Collection changedRelays)(Code)
overrides the superclass to deal with service request histories



handleModifiedServiceContract
protected void handleModifiedServiceContract(ServiceContractRelay relay)(Code)



handleRequestWithNoRemainingProviderOption
protected void handleRequestWithNoRemainingProviderOption(Role role, TimeSpan currentInterval)(Code)
overrides the superclass to deal with service request histories



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



reorderAnyTiedServiceDescriptions
protected Collection reorderAnyTiedServiceDescriptions(ArrayList scoredServiceDescriptions)(Code)
overrides the superclass reorder ties by provider name using the scored service description comparator



requestServiceContract
protected void requestServiceContract(ServiceDescription serviceDescription, TimeSpan interval)(Code)
overrides superclass to deal with service request histories



setupSubscriptions
protected void setupSubscriptions()(Code)



Fields inherited from org.cougaar.servicediscovery.plugin.SDClientPlugin
protected EventService myEventService(Code)(Java Doc)
protected LoggingService myLoggingService(Code)(Java Doc)
protected SDFactory mySDFactory(Code)(Java Doc)
protected IncrementalSubscription myServiceContractRelaySubscription(Code)(Java Doc)

Methods inherited from org.cougaar.servicediscovery.plugin.SDClientPlugin
protected boolean alreadyAskedForContractWithProvider(Role role, String providerName, TimeSpan timeSpan)(Code)(Java Doc)
protected NonOverlappingTimeSpanSet buildOPCONSchedule()(Code)(Java Doc)
protected boolean checkProviderCompletelyCovered(Role role, TimeSpan timeSpan)(Code)(Java Doc)
protected boolean checkProviderCompletelyRequested(Role role, TimeSpan timeSpan)(Code)(Java Doc)
protected boolean continuousCoverage(TimeSpan targetTimeSpan, TimeSpanSet timeSpanSet)(Code)(Java Doc)
protected boolean covered(Role role, TimeSpan timeSpan)(Code)(Java Doc)
public String dateString(Date date)(Code)(Java Doc)
public void execute()(Code)(Java Doc)
protected void findProviders()(Code)(Java Doc)
protected void generateServiceRequests(Collection mmRequests)(Code)(Java Doc)
protected Lineage getCommandLineage(TimeSpan timeSpan)(Code)(Java Doc)
protected Collection getCurrentlyUncoveredIntervalsWithoutOutstandingRequests(long desiredStart, long desiredEnd, Role role)(Code)(Java Doc)
protected int getDesiredNumberOfProviders(Role role)(Code)(Java Doc)
protected IncrementalSubscription getMMRequestSubscription()(Code)(Java Doc)
protected String getMinimumEchelon(Role role)(Code)(Java Doc)
protected NonOverlappingTimeSpanSet getOPCONSchedule()(Code)(Java Doc)
protected TimeSpan getOPCONTimeSpan()(Code)(Java Doc)
protected Set getOplanStages(Task task)(Code)(Java Doc)
protected Role getRole(ServiceDescription serviceDescription)(Code)(Java Doc)
protected Asset getSelfOrg()(Code)(Java Doc)
protected long getWarningCutoffTime()(Code)(Java Doc)
protected boolean handleChangedLineage()(Code)(Java Doc)
protected void handleChangedServiceContractRelays(Collection changedRelays)(Code)(Java Doc)
protected void handleRequestWithNoRemainingProviderOption(Role role, TimeSpan currentInterval)(Code)(Java Doc)
protected void initializeNumberOfProvidersPerRole()(Code)(Java Doc)
protected boolean matchingRequest(MMQueryRequest request, Role role, TimeSpan timeSpan, ServiceInfoScorer scorer)(Code)(Java Doc)
protected boolean needToFindProviders()(Code)(Java Doc)
protected Collection parseRoleParams()(Code)(Java Doc)
protected void queryServices(Role role)(Code)(Java Doc)
protected void queryServices(Role role, TimeSpan timeSpan)(Code)(Java Doc)
protected void queryServices(Role role, ServiceInfoScorer scorer, TimeSpan timeSpan)(Code)(Java Doc)
protected Collection reorderAnyTiedServiceDescriptions(ArrayList scoredServiceDescriptions)(Code)(Java Doc)
protected void requestServiceContract(ServiceDescription serviceDescription, TimeSpan interval)(Code)(Java Doc)
protected void requestServiceContract(Role role, String providerName, TimeSpan interval)(Code)(Java Doc)
protected boolean requested(Role role, TimeSpan timeSpan)(Code)(Java Doc)
protected void resetWarningCutoffTime()(Code)(Java Doc)
protected void setNeedToFindProviders(boolean flag)(Code)(Java Doc)
protected void setOPCONSchedule(NonOverlappingTimeSpanSet opconSchedule)(Code)(Java Doc)
protected void setupSubscriptions()(Code)(Java Doc)
public void verifyOutstandingRequests(TimeSpanSet currentOPCONSchedule)(Code)(Java Doc)
public void verifyServiceContracts(TimeSpanSet currentOPCONSchedule)(Code)(Java Doc)

Methods inherited from org.cougaar.planning.plugin.legacy.SimplePlugin
public AllocationResult createEstimatedAllocationResult(Task t, double confidenceRating, boolean success)(Code)(Java Doc)
public void createPublishExpansion(Task parent)(Code)(Java Doc)
final protected void cycle()(Code)(Java Doc)
abstract protected void execute()(Code)(Java Doc)
final public void initialize() throws StateModelException(Code)(Java Doc)
public void load(Object object) throws StateModelException(Code)(Java Doc)
final protected void prerun()(Code)(Java Doc)
final public void resume() throws StateModelException(Code)(Java Doc)
protected void setExecutionDelay(long minDelay, long maxDelay)(Code)(Java Doc)
abstract protected void setupSubscriptions()(Code)(Java Doc)
final public void start() throws StateModelException(Code)(Java Doc)
final public void stop() throws StateModelException(Code)(Java Doc)
final public void suspend() throws StateModelException(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.