public class GridSimulationCell extends AbstractGridSimulationCell
Modifier and Type | Field and Description |
---|---|
String |
agentTeam |
boolean |
canOpen |
boolean |
cow |
String |
cowID |
int |
cowturn |
boolean |
fence |
boolean |
open |
boolean |
switcher |
agent, object, obstacle
Constructor and Description |
---|
GridSimulationCell() |
Modifier and Type | Method and Description |
---|---|
boolean |
freeCell()
This method checks, if a cell is free to get in
|
boolean |
freeCellforCow()
This method checks, if a cell is free to get in
|
boolean |
isStable1() |
boolean |
isStable2() |
boolean |
noObject()
This method checks whether the cell contains an object or not.
|
void |
setStable1(boolean stable1) |
void |
setStable2(boolean stable2) |
public boolean cow
public boolean fence
public boolean open
public boolean switcher
public boolean canOpen
public int cowturn
public String agentTeam
public String cowID
public boolean noObject()
noObject
in class AbstractGridSimulationCell
public boolean freeCell()
freeCell
in class AbstractGridSimulationCell
x
- Position x on the gridy
- Position y on the gridpublic boolean freeCellforCow()
x
- Position x on the gridy
- Position y on the gridpublic void setStable1(boolean stable1)
public boolean isStable1()
public void setStable2(boolean stable2)
public boolean isStable2()
Copyright © 2013. All Rights Reserved.