| org.cougaar.planning.service.PrototypeRegistryService
All known Subclasses: org.cougaar.planning.ldm.asset.PrototypeRegistry,
PrototypeRegistryService | public interface PrototypeRegistryService extends Service(Code) | | |
cachePrototype | void cachePrototype(String aTypeName, Asset aPrototype)(Code) | | Request that a prototype be remembered by the LDM so that
getPrototype(aTypeName) is likely to return aPrototype
without having to make calls to PrototypeProvider.getPrototype(aTypeName).
Note that the lifespan of a prototype in the prototype registry may
be finite (or even zero!).
Note: this method should be used only by PrototypeProvider LDM Plugins.
|
fillProperties | void fillProperties(Asset anAsset)(Code) | | Notify LDM of a newly created asset. This is generally for the use
of LDMPlugins, but others may use it to request that propertygroups
of the new Asset be filled in from various data sources.
|
getCachedPrototypeCount | int getCachedPrototypeCount()(Code) | | int Count of Cached Prototypes * |
getPropertyProviderCount | int getPropertyProviderCount()(Code) | | int Count of Property Providers * |
getPrototype | Asset getPrototype(String aTypeName, Class anAssetClass)(Code) | | find the prototype Asset named by aTypeName. This service
will actually be provided by a PrototypeProvider via a call to
getPrototype(aTypeName).
It will return null if no prototype is found or can be created
with that name.
There is no need for a client of this method to call cachePrototype
on the returned object (that task is left to whatever prototypeProvider
was responsible for generating the prototype).
Some future release might want to throw an exception if not found.
An example aTypeName: "NSN/12345678901234".
The returned Asset will usually, but not always have a primary
type identifier that is equal to the aTypeName. In cases where
it does not match, aTypeName must appear as one of the extra type
identifiers of the returned asset. PrototypeProviders should cache
the prototype under both type identifiers in these cases.
Parameters: aTypeName - specifies an Asset description. Parameters: anAssetClass - is an optional hint to LDM pluginsto reduce their potential work load. If non-null, the returned asset (if any) should be an instance the specified class or one of itssubclasses. When null, each PrototypeProvider will attemt to decodethe aTypeName enough to determine if it can supply prototypes of thattype. |
getPrototype | Asset getPrototype(String aTypeName)(Code) | | equivalent to getPrototype(aTypeName, null);
|
getPrototypeProviderCount | int getPrototypeProviderCount()(Code) | | int Count of Prototype Providers * |
isPrototypeCached | boolean isPrototypeCached(String aTypeName)(Code) | | is there a prototype with the specified name currently in
the prototype cache?
|
lateFillPropertyGroup | PropertyGroup lateFillPropertyGroup(Asset anAsset, Class pg, long time)(Code) | | Used by assets to activate LateBinding of PropertyGroups to Assets.
Called as late as possible when it is not yet known if there is
a PG for an asset.
|
|
|