|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectsysModel.fish.AFish
model.fish.GenericFish
model.fish.SlowFish
public class SlowFish
Class for a slow fish.
| Field Summary | |
|---|---|
private double |
_probOfMoving
Probability that this slow fish moves. |
| Fields inherited from class sysModel.fish.AFish |
|---|
_fishColor, _fishDisplay, _probOfBreeding, _probOfDying |
| Constructor Summary | |
|---|---|
SlowFish(java.awt.Color fishColor)
Create a new slow fish. |
|
| Method Summary | |
|---|---|
void |
move()
Execute the movement part of a simulation step. |
void |
paint(java.awt.Graphics2D g,
java.awt.Component comp)
Draw the fish. |
| Methods inherited from class sysModel.fish.AFish |
|---|
act, age, breed, clone, die, draw, getColor, setLocalEnvironment, setProbOfBreeding, setProbOfDying, toString, tryBreedFwd, tryMoveFwd, turnLeft, turnLeft, turnRight, turnRight, update |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private double _probOfMoving
| Constructor Detail |
|---|
public SlowFish(java.awt.Color fishColor)
fishColor - color of the fish| Method Detail |
|---|
public void move()
move in class GenericFish
public void paint(java.awt.Graphics2D g,
java.awt.Component comp)
paint in class AFishg - graphics object to drawFish on.comp - the component to drawFish on
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||