| org.cougaar.planning.ldm.PrototypeProvider
All known Subclasses: org.cougaar.mlm.plugin.xml.XMLPrototypeProviderPlugin, org.cougaar.planning.ldm.DefaultPrototypeProviderPlugin, org.cougaar.mlm.examples.PrototypeProviderPluginExample,
Method Summary | |
Asset | getPrototype(String aTypeName, Class anAssetClassHint) return the prototype Asset described by aTypeName.
implementations should probably call LDMServesPlugin.cachePrototype
and LDMServesPlugin.fillProperties if needed before returning.
May return null if aTypeName is not something that the implementation
knows about.
An example aTypeName: "NSN/12345678901234".
The returned Asset will usually, but not always have a primary
type identifier that is equal to the aTypeName. |
getPrototype | Asset getPrototype(String aTypeName, Class anAssetClassHint)(Code) | | return the prototype Asset described by aTypeName.
implementations should probably call LDMServesPlugin.cachePrototype
and LDMServesPlugin.fillProperties if needed before returning.
May return null if aTypeName is not something that the implementation
knows about.
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: anAssetClassHint - 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. |
|
|