model.fish
Class SlowFish

java.lang.Object
  extended by sysModel.fish.AFish
      extended by model.fish.GenericFish
          extended by model.fish.SlowFish
All Implemented Interfaces:
java.lang.Cloneable, java.util.Observer

public class SlowFish
extends GenericFish

Class for a slow fish.

Author:
Mathias G. Ricken

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
protected  void move()
          Carry out movement behavior for the fish.
 
Methods inherited from class sysModel.fish.AFish
act, age, breed, clone, die, draw, getColor, paint, 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

_probOfMoving

private double _probOfMoving
Probability that this slow fish moves.

Constructor Detail

SlowFish

public SlowFish(java.awt.Color fishColor)
Create a new slow fish.

Parameters:
fishColor - color of the fish
Method Detail

move

protected void move()
Carry out movement behavior for the fish.

Overrides:
move in class GenericFish