| java.lang.Object org.cougaar.lib.xml.parser.InstanceParser
InstanceParser | public class InstanceParser (Code) | | Creates instances specified in ldm.xml files.
Expects a base prototype and optionally a quantity of n instances of the
new asset.
|
Method Summary | |
public List | getInstance(LDMServesPlugin ldm, Node node) | protected Asset | makeNewAsset(LDMServesPlugin ldm, String prototype, String id, Schedule newSchedule, List fields) Make a new asset of the specified prototype and bumper #.
Also gives it a default schedule.
Parameters: ldm - place to get new instances Parameters: prototype - what kind of asset is it Parameters: id - unique identifier within kind Parameters: newSchedule - initial availability Parameters: fields - A List of "Node", extracted from fields,probably property groups. |
makeNewAsset | protected Asset makeNewAsset(LDMServesPlugin ldm, String prototype, String id, Schedule newSchedule, List fields)(Code) | | Make a new asset of the specified prototype and bumper #.
Also gives it a default schedule.
Parameters: ldm - place to get new instances Parameters: prototype - what kind of asset is it Parameters: id - unique identifier within kind Parameters: newSchedule - initial availability Parameters: fields - A List of "Node", extracted from fields,probably property groups. Set to null tonot set any additional fields. the new asset! |
|
|