|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Root class of all 2d discrete spaces.. A Discrete2d is basically a 2d array of ids. Subclasses add particular space semantics onto this. Currently Discrete2d grids are accessed by integer pairs of X and Y coordinates.
Method Summary | |
Object |
copyDiscrete2d$toDiscrete2d(Discrete2d a,
Discrete2d b)
This method copies the data in one Discrete2d object to another Discrete2d object. |
Object |
fastFillWithObject(Object anObj)
Directly fills the lattice with an object. |
Object |
fastFillWithValue(int aValue)
Directly fills the lattice with a value. |
Object |
fillWithObject(Object anObj)
Fills the space using putObject. |
Object |
fillWithValue(int aValue)
Fills the space using putValue. |
Object |
getObjectAtX$Y(int x,
int y)
Return the pointer stored at (x,y). |
int |
getSizeX()
Get the size of the lattice in the X dimension. |
int |
getSizeY()
Get the size of the lattice in the Y dimension. |
int |
getValueAtX$Y(int x,
int y)
Return the integer stored at (x,y). |
Object |
putObject$atX$Y(Object anObject,
int x,
int y)
Put the given pointer to (x,y) overwriting whatever was there. |
Object |
putValue$atX$Y(int v,
int x,
int y)
Put the given integer to (x,y) overwriting whatever was there. |
int |
setDiscrete2d$toFile(Discrete2d a,
String filename)
This method reads a PGM formatted file and pipes the data into a Discrete2d object. |
Methods inherited from interface swarm.objectbase.SwarmObject |
getCompleteProbeMap,
getProbeForMessage,
getProbeForVariable,
getProbeMap |
Methods inherited from interface swarm.defobj.Drop |
drop |
Methods inherited from interface swarm.defobj.DefinedObject |
compare,
describe,
describeID,
getDisplayName,
getTypeName,
getZone,
perform,
perform$with,
perform$with$with,
perform$with$with$with,
respondsTo,
setDisplayName,
xfprint,
xfprintid,
xprint,
xprintid |
Method Detail |
public int getSizeX()
public int getSizeY()
public Object getObjectAtX$Y(int x, int y)
public int getValueAtX$Y(int x, int y)
public Object putObject$atX$Y(Object anObject, int x, int y)
public Object putValue$atX$Y(int v, int x, int y)
public Object fastFillWithValue(int aValue)
public Object fastFillWithObject(Object anObj)
public Object fillWithValue(int aValue)
public Object fillWithObject(Object anObj)
public int setDiscrete2d$toFile(Discrete2d a, String filename)
public Object copyDiscrete2d$toDiscrete2d(Discrete2d a, Discrete2d b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |