Package org.lemsml.jlems.core.type
Class Dimension
- java.lang.Object
-
- org.lemsml.jlems.core.type.Dimension
-
- All Implemented Interfaces:
Dimensional
,DataMatchable
,Named
,Summaried
- Direct Known Subclasses:
DeferredDimension
public class Dimension extends java.lang.Object implements Named, Summaried, DataMatchable, Dimensional
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
dataMatches(java.lang.Object obj)
java.lang.String
getDimensionString()
Dimensional
getDivideBy(Dimensional d)
double
getDoubleValue()
int
getI()
int
getJ()
int
getK()
int
getL()
int
getM()
int
getN()
java.lang.String
getName()
static Dimension
getNoDimension()
static java.lang.String
getSIUnit(Dimension d)
int
getT()
static Dimension
getTimeDimension()
Dimension
getTimes(Dimensional d)
boolean
isAny()
boolean
isDimensionless()
boolean
matches(Dimensional d)
boolean
matches(Dimension d)
Dimensional
power(double dbl)
void
setDoubleValue(double d)
void
setI(int i)
void
setJ(int j)
void
setK(int k)
void
setL(int l)
void
setM(int m)
void
setN(int n)
void
setT(int t)
java.lang.String
summary()
java.lang.String
toString()
-
-
-
Field Detail
-
NO_DIMENSION
public static final java.lang.String NO_DIMENSION
- See Also:
- Constant Field Values
-
name
public java.lang.String name
-
m
public int m
-
l
public int l
-
t
public int t
-
i
public int i
-
k
public int k
-
n
public int n
-
j
public int j
-
dval
private double dval
-
timeDimension
public static Dimension timeDimension
-
-
Method Detail
-
getNoDimension
public static Dimension getNoDimension()
-
dataMatches
public boolean dataMatches(java.lang.Object obj)
- Specified by:
dataMatches
in interfaceDataMatchable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
matches
public boolean matches(Dimension d)
-
getTimes
public Dimension getTimes(Dimensional d)
- Specified by:
getTimes
in interfaceDimensional
-
getDivideBy
public Dimensional getDivideBy(Dimensional d)
- Specified by:
getDivideBy
in interfaceDimensional
-
isDimensionless
public boolean isDimensionless()
- Specified by:
isDimensionless
in interfaceDimensional
-
getL
public int getL()
- Specified by:
getL
in interfaceDimensional
-
getM
public int getM()
- Specified by:
getM
in interfaceDimensional
-
getT
public int getT()
- Specified by:
getT
in interfaceDimensional
-
getI
public int getI()
- Specified by:
getI
in interfaceDimensional
-
getK
public int getK()
- Specified by:
getK
in interfaceDimensional
-
getN
public int getN()
- Specified by:
getN
in interfaceDimensional
-
getJ
public int getJ()
- Specified by:
getJ
in interfaceDimensional
-
setN
public void setN(int n)
-
setI
public void setI(int i)
-
setK
public void setK(int k)
-
setL
public void setL(int l)
-
setM
public void setM(int m)
-
setT
public void setT(int t)
-
setJ
public void setJ(int j)
-
matches
public boolean matches(Dimensional d)
- Specified by:
matches
in interfaceDimensional
-
power
public Dimensional power(double dbl)
- Specified by:
power
in interfaceDimensional
-
isAny
public boolean isAny()
- Specified by:
isAny
in interfaceDimensional
-
setDoubleValue
public void setDoubleValue(double d)
-
getDoubleValue
public double getDoubleValue()
- Specified by:
getDoubleValue
in interfaceDimensional
-
getTimeDimension
public static Dimension getTimeDimension()
-
getSIUnit
public static java.lang.String getSIUnit(Dimension d)
-
getDimensionString
public java.lang.String getDimensionString()
-
-