org.cougaar.pizza
Class PizzaDomain
java.lang.Object
org.cougaar.util.GenericStateModelAdapter
org.cougaar.core.domain.DomainAdapter
org.cougaar.pizza.PizzaDomain
- All Implemented Interfaces:
- org.cougaar.core.component.Component, org.cougaar.core.domain.Domain, org.cougaar.util.GenericStateModel
- public class PizzaDomain
- extends org.cougaar.core.domain.DomainAdapter
PizzaDomain definition, initializing our Constants and loading our AssetFactory.
Required to ensure that Roles and Assets specific to the pizza
application are initialized correctly. The PizzaDomain does not include any
domain specific LogicProviders. It only initializes our Constants
and loads our AssetFactory.
Other applications might have custom objects to transmit between
agents, and therefore need their own LogicProviders. Similarly,
they might want their own XPlan, to have custom-tuned lookup
methods for objects (the Planning LogPlan for example looks up
PlanElements by Task UID).
|
Field Summary |
static java.lang.String |
PIZZA_NAME
Name of this Domain.
|
| Fields inherited from interface org.cougaar.util.GenericStateModel |
ACTIVE, IDLE, LOADED, UNINITIALIZED, UNLOADED |
| Methods inherited from class org.cougaar.core.domain.DomainAdapter |
addLogicProvider, getABAChangeLPs, getBindingSite, getEnvelopeLPs, getFactory, getLoggingService, getMessageLPs, getRestartLPs, getServiceBroker, getXPlan, getXPlanForDomain, getXPlanForDomain, invokeABAChangeLogicProviders, invokeEnvelopeLogicProviders, invokeMessageLogicProviders, invokeRestartLogicProviders, load, setBindingSite, setFactory, setParameter, setServiceBroker, setXPlan |
| Methods inherited from class org.cougaar.util.GenericStateModelAdapter |
getModelState, halt, resume, start, stop, suspend, transitState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.cougaar.util.GenericStateModel |
getModelState, halt, resume, start, stop, suspend |
PIZZA_NAME
public static final java.lang.String PIZZA_NAME
- Name of this Domain.
Note the _NAME variable naming pattern
- See Also:
- Constant Field Values
PizzaDomain
public PizzaDomain()
getDomainName
public java.lang.String getDomainName()
setDomainService
public void setDomainService(org.cougaar.core.service.DomainService domainService)
setLDMService
public void setLDMService(org.cougaar.planning.service.LDMService ldmService)
initialize
public void initialize()
- Initialize this domain, specifically our
Constants.Roles
unload
public void unload()
getAliases
public java.util.Collection getAliases()
loadFactory
protected void loadFactory()
- Load the PlanningFactory and our Domain-specify Asset and PropertyGroup Factories
loadXPlan
protected void loadXPlan()
loadLPs
protected void loadLPs()