| org.cougaar.core.util.OwnedUniqueObject org.cougaar.planning.ldm.policy.Policy
All known Subclasses: org.cougaar.logistics.plugin.policy.LogClassIPolicy, org.cougaar.logistics.plugin.inventory.InventoryPolicy, org.cougaar.glm.plugins.inventory.InventoryPolicy, org.cougaar.glm.ldm.policy.StockageLevelPolicy, org.cougaar.glm.ldm.policy.ShipPolicy, org.cougaar.planning.plugin.deletion.DeletionPolicyBase, org.cougaar.logistics.ldm.policy.FeedingPolicy, org.cougaar.glm.ldm.policy.ACRPolicy, org.cougaar.glm.plugins.inventory.DaysOnHandPolicy, org.cougaar.glm.plugins.projection.DemandProjectionPolicy,
Policy | public Policy()(Code) | | Default constructor. Creates a PolicyImpl with an empty Hashtable and
no name.
|
Policy | public Policy(String policyName)(Code) | | Creates a new policy with the name policyName
Parameters: policyName - the name of the policy |
Add | public void Add(RuleParameter rule_parameter)(Code) | | Adds a new RuleParameter to the set stored in the Policy. This
should be the sole means for putting parameters into the policy
and can be overridden if desired to take special action such as
caching certain parameters for quicker access.
Parameters: rule_parameter - the new param to be added to the Policy |
Lookup | public RuleParameter Lookup(String name)(Code) | | Lookup and return parameter by name
Return null if no such parameter found.
|
Replace | public boolean Replace(RuleParameter replacement_param)(Code) | | Replace a parameter with replacement_param
Parameters: replacement_param - a RuleParameter to replace a parameterin the Policy. replacement_param must have the same getName() valueas an existing parameter in the Policy. false if there is no matching param in the Policy, true otherwise |
getName | public String getName()(Code) | | Returns the policy name
the name of the Policy |
getRuleParameters | public RuleParameter[] getRuleParameters()(Code) | | this policy's rule parameters |
load | public void load()(Code) | | Restore a Policy object
|
save | public void save()(Code) | | Save the Policy object in some format in some file
|
setName | public void setName(String policyName)(Code) | | Sets the name of the Policy
Parameters: policyName - the name of the policy |
setRuleParameters | public void setRuleParameters(RuleParameter[] params)(Code) | | Replaces existing set of RuleParameters with new set
Parameters: params - the new rule parameters |
|
|