Java Doc for ConsumerSpec.java in  » Science » Cougaar12_4 » org » cougaar » glm » plugins » projection » 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.glm.plugins.projection 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cougaar.glm.plugins.projection.ConsumerSpec

All known Subclasses:   org.cougaar.mlm.construction.ConstructionDemandSpec,
ConsumerSpec
abstract public class ConsumerSpec implements Serializable(Code)


Field Summary
protected  Objectconsumer_
    
protected  SchedulemergedSchedule_
    
protected  StringresourceType_
    

Constructor Summary
public  ConsumerSpec(Object consumer, String type, Map multipliers)
    
public  ConsumerSpec(Object consumer, String type)
    

Method Summary
public  SchedulebuildConsumptionRateSchedule(Asset resource)
    
abstract public  EnumerationgetConsumed()
    
public  StringgetConsumedType()
    
public  ObjectgetConsumer()
    
public  SchedulegetMergedSchedule()
     Here is what this method does (Ray Tomlinson).
public  DoublegetMultiplier(Asset consumed)
    
public  DoublegetMultiplier(String consumedId)
    
abstract public  VectorgetParameterSchedules()
    
abstract public  RategetRate(Asset resource, Vector params)
    
public static  SchedulenewObjectSchedule(Enumeration elements)
    
public  voidreset()
     The merged schedule drives the consumer spec.

Field Detail
consumer_
protected Object consumer_(Code)



mergedSchedule_
protected Schedule mergedSchedule_(Code)



resourceType_
protected String resourceType_(Code)




Constructor Detail
ConsumerSpec
public ConsumerSpec(Object consumer, String type, Map multipliers)(Code)



ConsumerSpec
public ConsumerSpec(Object consumer, String type)(Code)




Method Detail
buildConsumptionRateSchedule
public Schedule buildConsumptionRateSchedule(Asset resource)(Code)

Parameters:
  resource - consumed resource schedule quantity schedule of the daily rate of consumptionof the given resource.



getConsumed
abstract public Enumeration getConsumed()(Code)



getConsumedType
public String getConsumedType()(Code)



getConsumer
public Object getConsumer()(Code)



getMergedSchedule
public Schedule getMergedSchedule()(Code)
Here is what this method does (Ray Tomlinson). Merges a number of parameter schedules into a combined schedule. In the combined schedule, the "parameter" of each element is a Vector of the parameters from each of the input schedules. For elements not covered by the input schedule, the corresponding Vector element is null. The output schedule elements correspond to the intersections of the elements or inter-element gaps of the input schedules. No schedule element is generated for time spans where none of the input schedules has an element. Conversely, all elements of the merged schedule have at least one non-null parameter. There is an assumption that the elements of the input schedules and the output schedule are non-overlapping.



getMultiplier
public Double getMultiplier(Asset consumed)(Code)



getMultiplier
public Double getMultiplier(String consumedId)(Code)



getParameterSchedules
abstract public Vector getParameterSchedules()(Code)



getRate
abstract public Rate getRate(Asset resource, Vector params)(Code)
at what rate is it consumed -1 if rate is not defined such as when there isno org activity



newObjectSchedule
public static Schedule newObjectSchedule(Enumeration elements)(Code)



reset
public void reset()(Code)
The merged schedule drives the consumer spec. It is only calculated once unless reset() is called.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.