public abstract class SpaceDimension extends Object implements Serializable
| Constructor and Description |
|---|
SpaceDimension() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
equals(Object o)
Tests itself against the provided dimension object.
|
String |
getLabel()
returns the label for the axis.
|
abstract int |
getLocation(Object value)
returns the closest index for the given value in the dimension.
|
double |
getMax()
returns the right border.
|
double |
getMin()
returns the left border.
|
double |
getStep()
returns the step size on the axis.
|
abstract Object |
getValue(int x)
returns the value at the given point in the dimension.
|
boolean |
isOnBorder(double value)
checks whether the given value is on the border of the dimension.
|
boolean |
isOnBorder(int location)
checks whether the given location is on the border of the dimension.
|
abstract SpaceDimension |
subdimension(int left,
int right)
returns a sub-dimension with the same type/step/list, but different borders.
|
abstract String |
toString()
Returns a string representation of the dimension.
|
int |
width()
returns the number of points on the axis (incl.
|
public abstract boolean equals(Object o)
public double getMin()
public double getMax()
public double getStep()
public String getLabel()
public int width()
public abstract Object getValue(int x)
x - the x-th point on the axispublic abstract int getLocation(Object value)
value - the value to get the index forpublic boolean isOnBorder(double value)
value - the value to checkpublic boolean isOnBorder(int location)
location - the location to checkpublic abstract SpaceDimension subdimension(int left, int right)
left - the left indexright - the right indexCopyright © 2021 University of Waikato, Hamilton, NZ. All Rights Reserved.