Java Doc for Unit.java in  » Scripting » Kawa » gnu » math » 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 » Scripting » Kawa » gnu.math 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Number
      gnu.math.Numeric
         gnu.math.Quantity
            gnu.math.Unit

All known Subclasses:   gnu.math.NamedUnit,  gnu.math.MulUnit,
Unit
abstract public class Unit extends Quantity (Code)


Field Summary
public static  BaseUnitEmpty
    
public static  doubleNON_COMBINABLE
     A magic factor to indicate units that have the same "dimension" but not a fixed multiple. E.g.
 Unitbase
     A Unit equivalent to this unit, divided by factor. Same as the value of the dimensions() only.
final public static  Unitcm
    
final public static  NamedUnitdate
    
 Dimensionsdims
    
final public static  BaseUnitduration
    
 doublefactor
     The value of this Unit is factor*dims.
final public static  BaseUnitgram
    
final public static  Unithour
    
final public static  Unitin
    
final public static  BaseUnitmeter
    
final public static  Unitminute
    
final public static  Unitmm
    
final public static  NamedUnitmonth
    
final public static  Unitpica
    
 MulUnitproducts
    
final public static  Unitpt
    
final public static  Unitradian
    
final public static  NamedUnitsecond
    
static  NamedUnit[]table
     A hash table of named Units.

Constructor Summary
 Unit()
    

Method Summary
public static  Unitdefine(String name, DQuantity value)
    
public static  Unitdefine(String name, double factor, Unit base)
    
final public  Dimensionsdimensions()
    
public static  Unitdivide(Unit unit1, Unit unit2)
    
final public  doubledoubleValue()
    
public  StringgetName()
    
public  inthashCode()
    
public  booleanisExact()
    
final public  booleanisZero()
    
public static  NamedUnitlookup(String name)
    
public static  NamedUnitmake(String name, Quantity value)
    
public  Complexnumber()
    
public static  Unitpow(Unit unit, int power)
    
public  Numericpower(IntNum y)
    
public  Unitsqrt()
    
static  Unittimes(Unit unit1, int power1, Unit unit2, int power2)
    
public static  Unittimes(Unit unit1, Unit unit2)
    
public  StringtoString(double val)
    
public  StringtoString(RealNum val)
    
public  StringtoString()
    
public  Unitunit()
    

Field Detail
Empty
public static BaseUnit Empty(Code)



NON_COMBINABLE
public static double NON_COMBINABLE(Code)
A magic factor to indicate units that have the same "dimension" but not a fixed multiple. E.g. "month" and "day", or money of different currencies. Since they have the same dimension, they can be added to get an (unimplemented) combined quantity, but they cannot be compared. No general support yet, but used for time Duration.



base
Unit base(Code)
A Unit equivalent to this unit, divided by factor. Same as the value of the dimensions() only.



cm
final public static Unit cm(Code)



date
final public static NamedUnit date(Code)



dims
Dimensions dims(Code)



duration
final public static BaseUnit duration(Code)



factor
double factor(Code)
The value of this Unit is factor*dims.



gram
final public static BaseUnit gram(Code)



hour
final public static Unit hour(Code)



in
final public static Unit in(Code)



meter
final public static BaseUnit meter(Code)



minute
final public static Unit minute(Code)



mm
final public static Unit mm(Code)



month
final public static NamedUnit month(Code)



pica
final public static Unit pica(Code)



products
MulUnit products(Code)



pt
final public static Unit pt(Code)



radian
final public static Unit radian(Code)



second
final public static NamedUnit second(Code)



table
static NamedUnit[] table(Code)
A hash table of named Units.




Constructor Detail
Unit
Unit()(Code)




Method Detail
define
public static Unit define(String name, DQuantity value)(Code)



define
public static Unit define(String name, double factor, Unit base)(Code)



dimensions
final public Dimensions dimensions()(Code)



divide
public static Unit divide(Unit unit1, Unit unit2)(Code)



doubleValue
final public double doubleValue()(Code)



getName
public String getName()(Code)



hashCode
public int hashCode()(Code)



isExact
public boolean isExact()(Code)



isZero
final public boolean isZero()(Code)



lookup
public static NamedUnit lookup(String name)(Code)



make
public static NamedUnit make(String name, Quantity value)(Code)



number
public Complex number()(Code)



pow
public static Unit pow(Unit unit, int power)(Code)



power
public Numeric power(IntNum y)(Code)



sqrt
public Unit sqrt()(Code)



times
static Unit times(Unit unit1, int power1, Unit unit2, int power2)(Code)



times
public static Unit times(Unit unit1, Unit unit2)(Code)



toString
public String toString(double val)(Code)



toString
public String toString(RealNum val)(Code)



toString
public String toString()(Code)



unit
public Unit unit()(Code)



Methods inherited from gnu.math.Quantity
public Numeric abs()(Code)(Java Doc)
public static Quantity add(Quantity x, Quantity y, int k)(Code)(Java Doc)
public Numeric add(Object y, int k)(Code)(Java Doc)
public Numeric addReversed(Numeric x, int k)(Code)(Java Doc)
public static int compare(Quantity x, Quantity y)(Code)(Java Doc)
public int compare(Object obj)(Code)(Java Doc)
public int compareReversed(Numeric x)(Code)(Java Doc)
public Dimensions dimensions()(Code)(Java Doc)
public Numeric div(Object y)(Code)(Java Doc)
public Numeric divReversed(Numeric x)(Code)(Java Doc)
public static Quantity divide(Quantity x, Quantity y)(Code)(Java Doc)
public double doubleImagValue()(Code)(Java Doc)
public double doubleValue()(Code)(Java Doc)
public RealNum im()(Code)(Java Doc)
final public double imValue()(Code)(Java Doc)
public static Quantity make(Complex x, Unit u)(Code)(Java Doc)
public static Quantity make(RealNum re, RealNum im, Unit unit)(Code)(Java Doc)
public static Quantity make(double re, double im, Unit unit)(Code)(Java Doc)
public Numeric mul(Object y)(Code)(Java Doc)
public Numeric mulReversed(Numeric x)(Code)(Java Doc)
public Numeric neg()(Code)(Java Doc)
abstract public Complex number()(Code)(Java Doc)
public RealNum re()(Code)(Java Doc)
final public double reValue()(Code)(Java Doc)
public static Quantity times(Quantity x, Quantity y)(Code)(Java Doc)
public String toString(int radix)(Code)(Java Doc)
public Unit unit()(Code)(Java Doc)

Fields inherited from gnu.math.Numeric
final public static int CEILING(Code)(Java Doc)
final public static int FLOOR(Code)(Java Doc)
final public static int ROUND(Code)(Java Doc)
final public static int TRUNCATE(Code)(Java Doc)

Methods inherited from gnu.math.Numeric
abstract public Numeric abs()(Code)(Java Doc)
abstract public Numeric add(Object obj, int k)(Code)(Java Doc)
final public Numeric add(Object obj)(Code)(Java Doc)
public Numeric addReversed(Numeric x, int k)(Code)(Java Doc)
public int compare(Object obj)(Code)(Java Doc)
public int compareReversed(Numeric x)(Code)(Java Doc)
abstract public Numeric div(Object obj)(Code)(Java Doc)
public Numeric divReversed(Numeric x)(Code)(Java Doc)
public Numeric div_inv()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public float floatValue()(Code)(Java Doc)
public boolean geq(Object x)(Code)(Java Doc)
public boolean grt(Object x)(Code)(Java Doc)
public int intValue()(Code)(Java Doc)
abstract public boolean isExact()(Code)(Java Doc)
abstract public boolean isZero()(Code)(Java Doc)
public long longValue()(Code)(Java Doc)
abstract public Numeric mul(Object obj)(Code)(Java Doc)
public Numeric mulReversed(Numeric x)(Code)(Java Doc)
public Numeric mul_ident()(Code)(Java Doc)
abstract public Numeric neg()(Code)(Java Doc)
public Numeric power(IntNum y)(Code)(Java Doc)
final public Numeric sub(Object obj)(Code)(Java Doc)
abstract public String toString(int radix)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Number
public byte byteValue()(Code)(Java Doc)
abstract public double doubleValue()(Code)(Java Doc)
abstract public float floatValue()(Code)(Java Doc)
abstract public int intValue()(Code)(Java Doc)
abstract public long longValue()(Code)(Java Doc)
public short shortValue()(Code)(Java Doc)

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.