| java.lang.Object org.cougaar.planning.plugin.asset.AssetDataParamReader
AssetDataParamReader | public class AssetDataParamReader implements AssetDataReader(Code) | | Parses a set of parameters to create local asset.
Relationships must also be passed as parameters but will be handled by the
AssetDataPlugin. See AssetDataPlugin for format of Relationship parameters.
Recognized Parameter Formats:
Prototype: # Must be the first parameter
Prototype parameter used to create the self org asse
LocationSchedulePG:FixedLocation:(, )
Very specific to LocationSchedulePG, creates a single
LocationScheduleElementImpl which has a LatLonImpl as its Location. The
TimeSpan to hardcoded to run from TimeSpan.MIN_VALUE to TimeSpan.MAX_VALUE
:::
General format for setting a slot on one of the self orgs property groups. Must
have a parameter for each slot on each property group.
Sample:
Prototype:Organization
ItemIdentificationPG:ItemIdentification:String:Staples, Inc
ItemIdentificationPG:Nomenclature:String:Staples
ItemIdentificationPG:AlternateItemIdentification:String:SPLS
TypeIdentificationPG:TypeIdentification:String:Office Goods Supplier
TypeIdentificationPG:Nomenclature String:Big Box
TypeIdentificationPG:AlternateTypeIdentification:String:Stationer
ClusterPG:MessageAddress:MessageAddress:Staples
OrganizationPG:Roles:Collection:Subordinate, PaperProvider, CrayonProvider, PaintProvider
LocationSchedulePG:FixedLocation:(31.8500, -81.6000)
Note that when using XSLNode, instead of < and >, use < and >
|
ATTRIBUTE_DELIMITER | final public static String ATTRIBUTE_DELIMITER(Code) | | |
RELATIONSHIP_KEY | final public static String RELATIONSHIP_KEY(Code) | | |
setLocationSchedulePG | protected void setLocationSchedulePG(String param, StringTokenizer tokenizer)(Code) | | Hack to attach a LocationSchedulePG to an Asset.
For now we only support a single LocationScheduleElementImpl
which has a LatLonPointImpl as it's Location. The TimeSpan
is hard-coded to TimeSpan.MIN_VALUE .. TimeSpan.MAX_VALUE.
In the future this can be enhanced to support full location
schedules, but that would likely require a new file format.
The format is:
"FixedLocation:\"(" + LATITUDE + ", " + LONGITUDE + ")\""
For example, all of time at latitude 12.3 longitude -45.6:
FixedLocation:"(12.3, -45.6)"
|
setPropertyForAsset | protected void setPropertyForAsset(String param, String pgName, StringTokenizer tokenizer)(Code) | | Creates the property, fills in the slots based on what's in the
prototype-ini file and then sets it for (or adds it to) the asset
|
|
|