| org.cougaar.glm.ldm.QueryLDMPlugin org.cougaar.logistics.ldm.ClassIPartsPrototypeProvider
ClassIPartsPrototypeProvider | public class ClassIPartsPrototypeProvider extends QueryLDMPlugin (Code) | | Creates and rototype and their property groups for Subsistence
|
Method Summary | |
public boolean | canHandle(String typeid, Class class_hint) | protected Vector | doQuery(String query_name, String a, String b) Convenience method to read the query statement from a file
and execute the query. | public void | fillProperties(Asset anAsset) | protected String | getNomenclature(String type_id, String type) | protected HashMap | getSupplementalList(String meal_type, String alternate_name) | public Asset | makePrototype(String type_name, Class class_hint) Makes a prototype for as Asset of an item of type class_hint
Parameters: type_name - identifier for item e.g a Parameters: class_hint - hint as to class of item being requested Asset Prtotype that's created. | public void | setLoggingService(LoggingService logger) | public String | substituteList(String q, String meal_type, String nomenclature) Replaces the ":nsn" in the query with the actual NSN. | public String | substituteNSN(String q, String nsn, String nsnStr) Replaces the ":nsns" in the query with the actual NSN. |
canHandle | public boolean canHandle(String typeid, Class class_hint)(Code) | | Method to determine if this class can handle an item typeid of type class_hint
Parameters: typeid - identifier for item (an NSN) Parameters: class_hint - hint as to class of item being requested boolean representing whether this prototype provider can handlethis item |
doQuery | protected Vector doQuery(String query_name, String a, String b)(Code) | | Convenience method to read the query statement from a file
and execute the query.
Parameters: query_name - String refers to the specific query statement Parameters: a - String for first query variable Parameters: b - String for second query varaible Vector containing the query result |
fillProperties | public void fillProperties(Asset anAsset)(Code) | | |
getNomenclature | protected String getNomenclature(String type_id, String type)(Code) | | Method to retrieve the nomenclature for the item in question
Parameters: type_id - identifier for item e.g a nsn Parameters: type - class type of item being requested Nomenclature |
getSupplementalList | protected HashMap getSupplementalList(String meal_type, String alternate_name)(Code) | | Gets a list of supplement NSNs for a specific meal_type and specific alternate_name
Parameters: meal_type - type of meals: BREAKFAST, LUNCH/DINNER HashMap of NSNs and their rates |
makePrototype | public Asset makePrototype(String type_name, Class class_hint)(Code) | | Makes a prototype for as Asset of an item of type class_hint
Parameters: type_name - identifier for item e.g a Parameters: class_hint - hint as to class of item being requested Asset Prtotype that's created. Note that Asset is actually a prototype here |
substituteList | public String substituteList(String q, String meal_type, String nomenclature)(Code) | | Replaces the ":nsn" in the query with the actual NSN.
Parameters: q - query string Parameters: nomenclature - new query |
substituteNSN | public String substituteNSN(String q, String nsn, String nsnStr)(Code) | | Replaces the ":nsns" in the query with the actual NSN.
Parameters: q - query string Parameters: nsn - actual NSN Parameters: nsnStr - String in the database new query |
|
|