|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrowdmodel.CObject
crowdmodel.environment.CellObject
public class CellObject
Describes environmental objects and their location on the grid An object is always situated on one gridCell. Can be part of a larger object, however this is then a set cellObjects.
Field Summary | |
---|---|
static int |
BAR
|
private java.lang.String |
d_name
|
boolean |
d_walkable
|
(package private) int |
d_x
|
(package private) int |
d_y
|
static int |
NOOBJECTS
|
static int |
POI
|
static int |
STAGE
|
static int |
TOILET
|
Fields inherited from class crowdmodel.CObject |
---|
d_id, d_world_context |
Constructor Summary | |
---|---|
CellObject(repast.simphony.context.Context<CObject> worldcontext,
int x,
int y,
int id)
Constructor of CellObject Creates the cell object |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the name-label of the cellObject |
boolean |
getWalkable()
Returns whether the CellObject is walkable |
int |
getX()
Returns the x-coordinate of the cellObject's position |
int |
getY()
Returns the y-coordinate of the cellObject's position |
void |
setName(java.lang.String name)
Sets the name-label of the cellObject |
void |
setValue()
Sets the value of the cellObject in the valueLayer Where this value corresponds with the environment Object it belongs to as the valueLayer uses this value to visualise these objects on the display. |
void |
setValue(repast.simphony.context.Context<CObject> worldcontext)
Sets the value of the cellObject in the valueLayer Where this value corresponds with the environment Object it belongs to as the valueLayer uses this value to visualise these objects on the display. |
void |
setWalkable(boolean walkable)
Sets the CellObject as being walkable or not |
Methods inherited from class crowdmodel.CObject |
---|
CObject, delete, getID, step |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NOOBJECTS
public static final int STAGE
public static final int BAR
public static final int TOILET
public static final int POI
private java.lang.String d_name
public boolean d_walkable
final int d_x
final int d_y
Constructor Detail |
---|
public CellObject(repast.simphony.context.Context<CObject> worldcontext, int x, int y, int id)
Method Detail |
---|
public int getX()
public int getY()
public void setName(java.lang.String name)
public java.lang.String getName()
public void setValue(repast.simphony.context.Context<CObject> worldcontext)
public void setValue()
public void setWalkable(boolean walkable)
public boolean getWalkable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |