001: /*
002: * <copyright>
003: *
004: * Copyright 2001-2004 BBNT Solutions, LLC
005: * under sponsorship of the Defense Advanced Research Projects
006: * Agency (DARPA).
007: *
008: * You can redistribute this software and/or modify it under the
009: * terms of the Cougaar Open Source License as published on the
010: * Cougaar Open Source Website (www.cougaar.org).
011: *
012: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
013: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
014: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
015: * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
016: * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
017: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
018: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
019: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
020: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
021: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
022: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
023: *
024: * </copyright>
025: */
026:
027: package org.cougaar.planning.service;
028:
029: import java.util.List;
030:
031: import org.cougaar.core.component.Service;
032: import org.cougaar.core.domain.Factory;
033: import org.cougaar.core.mts.MessageAddress;
034: import org.cougaar.core.service.UIDServer;
035: import org.cougaar.planning.ldm.LDMServesPlugin;
036: import org.cougaar.planning.ldm.LatePropertyProvider;
037: import org.cougaar.planning.ldm.PlanningFactory;
038: import org.cougaar.planning.ldm.PropertyProvider;
039: import org.cougaar.planning.ldm.PrototypeProvider;
040:
041: /**
042: * Placeholder to clean up plugin-to-manager interactions
043: */
044: public interface LDMService extends Service {
045:
046: //
047: // Mix of DomainService & PrototypeRegistryService
048: //
049:
050: /** Get a reference to the LDM object.
051: * @todo This should be refactored
052: **/
053: LDMServesPlugin getLDM();
054:
055: //
056: // AgentIdentificationService
057: //
058:
059: MessageAddress getMessageAddress();
060:
061: //
062: // UIDService
063: //
064:
065: UIDServer getUIDServer();
066:
067: //
068: // Hack for planning DomainService
069: //
070:
071: PlanningFactory getFactory();
072:
073: //
074: // DomainService
075: //
076:
077: /** return a domain-specific factory **/
078: Factory getFactory(String domainName);
079:
080: /** return a domain-specific factory **/
081: Factory getFactory(Class domainClass);
082:
083: /** return a list of all domain-specific factories **/
084: List getFactories();
085:
086: //
087: // PrototypeRegistryService
088: //
089:
090: /** Add a PrototypeProvider.
091: * @deprecated Use PrototypeRegistryService instead (9.2).
092: **/
093: void addPrototypeProvider(PrototypeProvider plugin);
094:
095: /** Add a PropertyProvider.
096: * @deprecated Use PrototypeRegistryService instead (9.2).
097: **/
098: void addPropertyProvider(PropertyProvider plugin);
099:
100: /** Add a LatePropertyProvider.
101: * @deprecated Use PrototypeRegistryService instead (9.2).
102: **/
103: void addLatePropertyProvider(LatePropertyProvider plugin);
104: }
|