public class PebbleData extends java.lang.Object implements VertexData
Constructor and Description |
---|
PebbleData() |
PebbleData(int numberOfPebbles) |
Modifier and Type | Method and Description |
---|---|
void |
addPebbles(int n) |
VertexData |
copy()
Makes a copy of this object (Creates a new EdgeData object and sets all fields in the copy to the same values as those in this object)
|
int |
getNumberOfPebbles() |
boolean |
isCovered() |
void |
removePebbles(int n) |
void |
setCovered(boolean covered) |
void |
setNumberOfPebbles(int numberOfPebbles) |
void |
setNumberOfPebblesWithoutUpdatingCovered(int numberOfPebbles) |
void |
updateCovered() |
public int getNumberOfPebbles()
public void setNumberOfPebblesWithoutUpdatingCovered(int numberOfPebbles)
public void setNumberOfPebbles(int numberOfPebbles)
public void removePebbles(int n)
public void addPebbles(int n)
public void updateCovered()
public boolean isCovered()
public void setCovered(boolean covered)
public VertexData copy()
VertexData
copy
in interface VertexData