Java Doc for Policy.java in  » Science » Cougaar12_4 » org » cougaar » planning » ldm » policy » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Cougaar12_4 » org.cougaar.planning.ldm.policy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 class Policy extends OwnedUniqueObject implements java.io.Serializable,Transferable,UniqueObject(Code)
Policy is a class that contains RuleParameters


Field Summary
protected  Hashtablemy_parameters
    
protected  Stringname
    
protected transient  PropertyChangeSupportpcs
    

Constructor Summary
public  Policy()
     Default constructor.
public  Policy(String policyName)
    

Method Summary
public  voidAdd(RuleParameter rule_parameter)
     Adds a new RuleParameter to the set stored in the Policy.
public  RuleParameterLookup(String name)
     Lookup and return parameter by name Return null if no such parameter found.
public  voidRemove(String name)
    
public  booleanReplace(RuleParameter replacement_param)
     Replace a parameter with replacement_param
Parameters:
  replacement_param - a RuleParameter to replace a parameterin the Policy.
public  voidaddPropertyChangeListener(PropertyChangeListener pcl)
    
public  Objectclone()
    
 ContextgetContext()
     Get the problem Context (if any) for this policy.
public  StringgetName()
    
public  RuleParameter[]getRuleParameters()
    
public  voidload()
    
public  voidremovePropertyChangeListener(PropertyChangeListener pcl)
    
public  booleansame(Transferable other)
    
public  voidsave()
    
public  voidsetAll(Transferable other)
    
 voidsetContext(Context context)
     Set the problem Context of this policy.
public  voidsetName(String policyName)
    
public  voidsetRuleParameters(RuleParameter[] params)
    

Field Detail
my_parameters
protected Hashtable my_parameters(Code)



name
protected String name(Code)



pcs
protected transient PropertyChangeSupport pcs(Code)




Constructor Detail
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




Method Detail
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.



Remove
public void Remove(String name)(Code)



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



addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener pcl)(Code)



clone
public Object clone()(Code)



getContext
Context getContext()(Code)
Get the problem Context (if any) for this policy.
See Also:   org.cougaar.planning.ldm.plan.Context



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



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener pcl)(Code)



same
public boolean same(Transferable other)(Code)



save
public void save()(Code)
Save the Policy object in some format in some file



setAll
public void setAll(Transferable other)(Code)



setContext
void setContext(Context context)(Code)
Set the problem Context of this policy.
See Also:   org.cougaar.planning.ldm.plan.Context



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



Fields inherited from org.cougaar.core.util.OwnedUniqueObject
protected MessageAddress owner(Code)(Java Doc)

Methods inherited from org.cougaar.core.util.OwnedUniqueObject
public MessageAddress getOwner()(Code)(Java Doc)
public MessageAddress getSource()(Code)(Java Doc)
public boolean isFrom(MessageAddress where)(Code)(Java Doc)
public void setOwner(MessageAddress newOwner)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.