|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uchicago.src.sim.gui.ProbeableNumber
Turns a primitive number into an Object that can be probed. This is used to make spaces that contain primitive numbers probeable.
| Constructor Summary | |
ProbeableNumber(int x,
int y,
Discrete2DSpace grid,
Object o)
Creates a Probeable number with the specified coordinates, in the specified grid, out of the specified object. |
|
| Method Summary | |
String[] |
getProbedProperties()
Returns a list of properties suitable for probing. |
double |
getVal()
Gets the primitive value of the the number. |
int |
getX()
Gets the x coordinate. |
int |
getY()
Gets the y coordinate. |
void |
setVal(double val)
Sets the value of the number. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProbeableNumber(int x,
int y,
Discrete2DSpace grid,
Object o)
x - the x coordinate for this numbery - the y coordinate for this numbergrid - the grid from where this number cameo - the primitive wrapper (e.g. Double) that carries the
value of the number| Method Detail |
public int getX()
public int getY()
public double getVal()
public void setVal(double val)
public String[] getProbedProperties()
getProbedProperties in interface CustomProbeable
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||