Documentation of 'visad.QuantityDimension' Java class
QuantityDimension
visad

Class QuantityDimension

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable


    public final class QuantityDimension
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable
    This class represents the dimension of a quantity. For example, consider a nonrelativistic particle of mass m in uniform motion which travels a distance l in a time t. Its velocity is v=l/t and its kinetic energy is E=mv2/2=ml2t-2/2. The dimension of E is dim E=ML2T-2 and the dimensional exponents are 1, 2, and -2. A QuantityDimension is immutable.
    See Also:
    Serialized Form
    • Constructor Detail

      • QuantityDimension

        public QuantityDimension()
        Constructs from nothing (i.e. constructs a dimensionless quantity).
      • QuantityDimension

        public QuantityDimension(QuantityDimension that)
        Constructs from another dimension of a quantity.
    • Method Detail

      • compareTo

        public int compareTo(java.lang.Object obj)
        Compare this dimension of a quantity to another.
        Specified by:
        compareTo in interface java.lang.Comparable
      • equals

        public boolean equals(java.lang.Object obj)
        Indicate whether or not this dimension of a quantity is the same as another.
        Overrides:
        equals in class java.lang.Object
      • raise

        public QuantityDimension raise(int power)
        Raise this dimension of a quantity by a power.
      • isDimensionless

        public boolean isDimensionless()
        Indicate whether or not this dimension of a quantity is dimensionless.
      • toString

        public java.lang.String toString()
        Return a string representation of this dimension of a quantity.
        Overrides:
        toString in class java.lang.Object
      • main

        public static void main(java.lang.String[] args)
        Test this class.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.