public class Dimension
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
A level 0 object (Abstract0
, etc.) has a set of
integer-valued and a set of real-valued dimensions.
A Dimension objects indicates how many dimensions of each kind.
It is simply a pair of positive integers: intDim and realDim.
In level 0 objects, integer-valued variables are numbered from 0 to intDim-1, and real-valued variables are numbered from intDim to intDim+realDim-1.
Modifier and Type | Field and Description |
---|---|
int |
intDim
Number of integer-valued dimensions.
|
int |
realDim
Number of real-valued dimensions.
|
Constructor and Description |
---|
Dimension(int intdim,
int realdim)
Constructs a new Dimension object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object x)
Whether x is a Dimension and structurally equal to this.
|
int |
getIntegerDimension() |
int |
getRealDimension() |
boolean |
isEqual(Dimension x)
Whether x is equal to this.
|
void |
setIntegerDimension(int d) |
void |
setRealDimension(int d) |
java.lang.String |
toString()
Returns a String representation of the dimension.
|
public int intDim
public int realDim
public Dimension(int intdim, int realdim)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isEqual(Dimension x)
public boolean equals(java.lang.Object x)
equals
in class java.lang.Object
public int getIntegerDimension()
public int getRealDimension()
public void setIntegerDimension(int d)
public void setRealDimension(int d)