Java Doc for AspectValue.java in  » Science » Cougaar12_4 » org » cougaar » planning » ldm » plan » 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.plan 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cougaar.planning.ldm.plan.AspectValue

All known Subclasses:   org.cougaar.planning.ldm.plan.TimeAspectValue,  org.cougaar.planning.ldm.plan.TypedAspectValue,
AspectValue
abstract public class AspectValue implements Serializable(Code)
AspectValue is the essential "value" abstraction with respect to evaluation of the goodness or correctness of a particular solution. AspectValues are no longer mutable and no longer implement AspectType.
See Also:   AllocationResult




Method Summary
public static  StringaspectTypeToString(int aspectType)
     This should be in AspectType, but that's an interface and can't have methods.
public static  AspectValue[]clone(AspectValue[] avs)
     Clone an array of AspectValue.
abstract public  doubledoubleValue()
     The value of the aspect as a double.
public  AspectValuedupAspectValue(double newvalue)
     factory for possibly creating a new AspectValue with the same type but a different value.
public  AspectValuedupAspectValue(float newvalue)
    
public  AspectValuedupAspectValue(long newvalue)
    
public  AspectValuedupAspectValue(int newvalue)
    
public  booleanequals(Object v)
    
public static  booleanequals(AspectValue[] avs1, AspectValue[] avs2)
     Compare two arrays of AspectValues.
abstract public  floatfloatValue()
    
public  intgetAspectType()
    
abstract public  intgetType()
    
public  doublegetValue()
     Non-preferred alias for #doubleValue().
public  inthashCode()
    
abstract public  intintValue()
    
public  booleanisBetween(AspectValue low, AspectValue hi)
    
public  booleanisGreaterThan(AspectValue v)
    
public  booleanisLessThan(AspectValue v)
    
abstract public  longlongValue()
    
public  doubleminus(AspectValue v)
    
public  booleannearlyEquals(Object o)
    
public static  booleannearlyEquals(AspectValue[] avs1, AspectValue[] avs2)
    
final public static  AspectValuenewAspectValue(int type, long value)
    
final public static  AspectValuenewAspectValue(int type, double value)
    
final public static  AspectValuenewAspectValue(int type, float value)
    
final public static  AspectValuenewAspectValue(int type, int value)
    
final public static  AspectValuenewAspectValue(int type, Object o)
    
final public static  AspectValuenewAspectValue(AspectType.Factory type, Object o)
    
final public static  AspectValuenewAspectValue(AspectType.Factory type, long value)
    
final public static  AspectValuenewAspectValue(AspectType.Factory type, double value)
    
final public static  AspectValuenewAspectValue(AspectType.Factory type, float value)
    
final public static  AspectValuenewAspectValue(AspectType.Factory type, int value)
    
public  StringtoString()
    



Method Detail
aspectTypeToString
public static String aspectTypeToString(int aspectType)(Code)
This should be in AspectType, but that's an interface and can't have methods. This is the closest place that makes any sense and avoids creating a new class just to convert aspect types into strings.



clone
public static AspectValue[] clone(AspectValue[] avs)(Code)
Clone an array of AspectValue. Does not, of course, clone the elements since they are immutable.
Parameters:
  avs - an array of AspectValue a copy of the array with copies of array element values.



doubleValue
abstract public double doubleValue()(Code)
The value of the aspect as a double.



dupAspectValue
public AspectValue dupAspectValue(double newvalue)(Code)
factory for possibly creating a new AspectValue with the same type but a different value.



dupAspectValue
public AspectValue dupAspectValue(float newvalue)(Code)



dupAspectValue
public AspectValue dupAspectValue(long newvalue)(Code)



dupAspectValue
public AspectValue dupAspectValue(int newvalue)(Code)



equals
public boolean equals(Object v)(Code)



equals
public static boolean equals(AspectValue[] avs1, AspectValue[] avs2)(Code)
Compare two arrays of AspectValues. Since the values are not necessarily in the same order, we first check assuming they are in the same order. If that fails because they are not in the same order, we try again reordering the values as needed. Arrays having repeated AspectTypes produce unspecified results. Such arrays are intrinsically ambiguous.



floatValue
abstract public float floatValue()(Code)
The value of the aspect as a float *



getAspectType
public int getAspectType()(Code)
Non-preferred alias for #getType()



getType
abstract public int getType()(Code)
int The Aspect Type.
See Also:   org.cougaar.planning.ldm.plan.AspectType



getValue
public double getValue()(Code)
Non-preferred alias for #doubleValue().



hashCode
public int hashCode()(Code)



intValue
abstract public int intValue()(Code)
The value of the aspect as an int *



isBetween
public boolean isBetween(AspectValue low, AspectValue hi)(Code)



isGreaterThan
public boolean isGreaterThan(AspectValue v)(Code)



isLessThan
public boolean isLessThan(AspectValue v)(Code)



longValue
abstract public long longValue()(Code)
The value of the aspect as a long *



minus
public double minus(AspectValue v)(Code)



nearlyEquals
public boolean nearlyEquals(Object o)(Code)



nearlyEquals
public static boolean nearlyEquals(AspectValue[] avs1, AspectValue[] avs2)(Code)



newAspectValue
final public static AspectValue newAspectValue(int type, long value)(Code)



newAspectValue
final public static AspectValue newAspectValue(int type, double value)(Code)



newAspectValue
final public static AspectValue newAspectValue(int type, float value)(Code)



newAspectValue
final public static AspectValue newAspectValue(int type, int value)(Code)



newAspectValue
final public static AspectValue newAspectValue(int type, Object o)(Code)



newAspectValue
final public static AspectValue newAspectValue(AspectType.Factory type, Object o)(Code)



newAspectValue
final public static AspectValue newAspectValue(AspectType.Factory type, long value)(Code)



newAspectValue
final public static AspectValue newAspectValue(AspectType.Factory type, double value)(Code)



newAspectValue
final public static AspectValue newAspectValue(AspectType.Factory type, float value)(Code)



newAspectValue
final public static AspectValue newAspectValue(AspectType.Factory type, int value)(Code)



toString
public String toString()(Code)



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.