Package microsim.space
Interface ObjectSpace
-
- All Known Implementing Classes:
DenseObjectSpace
,MultiObjectSpace
,SparseObjectSpace
public interface ObjectSpace
- Author:
- michele To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addGridPosition(SpacePosition position)
int
boundX(int x)
int
boundY(int y)
int
countObjectsAt(int x, int y)
java.lang.Object
get(int x, int y)
int
getXSize()
int
getYSize()
boolean
moveGridPosition(SpacePosition object, int destinationX, int destinationY)
int
reflectX(int x)
int
reflectY(int y)
boolean
removeGridPosition(SpacePosition position)
void
set(int x, int y, java.lang.Object obj)
int
torusX(int x)
int
torusY(int y)
-
-
-
Method Detail
-
getXSize
int getXSize()
-
getYSize
int getYSize()
-
boundX
int boundX(int x)
-
boundY
int boundY(int y)
-
reflectX
int reflectX(int x)
-
reflectY
int reflectY(int y)
-
torusX
int torusX(int x)
-
torusY
int torusY(int y)
-
countObjectsAt
int countObjectsAt(int x, int y)
-
addGridPosition
boolean addGridPosition(SpacePosition position)
-
removeGridPosition
boolean removeGridPosition(SpacePosition position)
-
moveGridPosition
boolean moveGridPosition(SpacePosition object, int destinationX, int destinationY)
-
get
java.lang.Object get(int x, int y)
-
set
void set(int x, int y, java.lang.Object obj)
-
-