|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.brook.ascape.model.Coordinate
|
+--edu.brook.ascape.model.CoordinateDiscrete
|
+--edu.brook.ascape.model.Coordinate1DDiscrete
A location within a one-dimensional discrete space.
| Fields inherited from class edu.brook.ascape.model.CoordinateDiscrete |
values |
| Constructor Summary | |
Coordinate1DDiscrete()
Creates a 1-dimensional coordinate. |
|
Coordinate1DDiscrete(int value)
Creates a 1-dimensional coordinate with the specified position. |
|
Coordinate1DDiscrete(int[] values)
Creates a 1-dimensional coordinate with the specified postion values. |
|
| Method Summary | |
float |
getDistance(Coordinate coordinate)
|
int |
getValue()
Returns the number of dimensions for this lattice. |
int |
getXValue()
Returns the x value of this coordinate. |
void |
setValue(int x)
Sets the value for this coordinate. |
void |
setXValue(int x)
Sets the y value for this coordinate. |
java.lang.String |
toString()
Returns a string representing this coordinate. |
| Methods inherited from class edu.brook.ascape.model.CoordinateDiscrete |
getDimensionCount,
getProduct,
getValueAtDimension,
getValues,
setValueAtDimension,
setValues |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Coordinate1DDiscrete()
public Coordinate1DDiscrete(int[] values)
public Coordinate1DDiscrete(int value)
| Method Detail |
public float getDistance(Coordinate coordinate)
public final int getValue()
public final void setValue(int x)
public final int getXValue()
public final void setXValue(int x)
public java.lang.String toString()
|
(c) 1998-2000 The Brookings Insitution Webpage |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||