|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.generation5.bio.CAAgent
Implements a simple CA agent to be used with CellularAutomataLayered,
where the CA agent is an embodied entity within the CA world.
| Field Summary | |
int |
dataInteger
An integer to be used at programmer's discretion. |
protected int |
pos_x
The x-position. |
protected int |
pos_y
The y-position. |
protected int |
state
The agent state. |
| Constructor Summary | |
CAAgent()
Default constructor. |
|
CAAgent(int x,
int y)
Creates a CA2DInfo instance with positional information. |
|
CAAgent(int x,
int y,
int s)
Creates a CA2DInfo instance with positional and state information. |
|
| Method Summary | |
int |
getState()
|
int |
getX()
|
int |
getY()
|
void |
setPosition(int x,
int y)
Set the position of this CA. |
void |
setState(int s)
Set the state of this CA. |
void |
setX(int x)
Set only the X-position. |
void |
setY(int y)
Set only the Y-position. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int dataInteger
protected int pos_x
protected int pos_y
protected int state
| Constructor Detail |
public CAAgent()
public CAAgent(int x,
int y)
x - X-position.y - Y-position.
public CAAgent(int x,
int y,
int s)
x - X-position.y - Y-position.s - cell state.| Method Detail |
public void setPosition(int x,
int y)
x - X-position to set.y - Y-position to set.public void setState(int s)
s - this cell state.public void setX(int x)
x - this cell's new X-position.public void setY(int y)
y - this cell's new Y-position.public int getX()
public int getY()
public int getState()
|
This documentation is part of the Generation5 JDK.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||