| org.cougaar.planning.plugin.legacy.SimplePlugin org.cougaar.servicediscovery.plugin.SDClientPlugin org.cougaar.logistics.plugin.servicediscovery.ALDynamicSDClientPlugin
Inner Class :protected static class ServiceRequestRecord | |
Inner Class :protected static class ScoredServiceDescriptionComparator implements java.util.Comparator | |
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
|
handleRequestWithNoRemainingProviderOption | protected void handleRequestWithNoRemainingProviderOption(Role role, TimeSpan currentInterval)(Code) | | overrides the superclass to deal with service request histories
|
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) | | |
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)
|
|
|