model.fish
Class DarterFish

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

public class DarterFish
extends AFish

Class for a darter fish.

Author:
Mathias G. Ricken

Field Summary
 
Fields inherited from class sysModel.fish.AFish
_fishColor, _fishDisplay, _probOfBreeding, _probOfDying
 
Constructor Summary
DarterFish(java.awt.Color fishColor)
          Create a new darter fish.
 
Method Summary
 void move()
          Execute the movement part of a simulation step.
 
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
 

Constructor Detail

DarterFish

public DarterFish(java.awt.Color fishColor)
Create a new darter fish.

Parameters:
fishColor - color of the fish
Method Detail

move

public void move()
Execute the movement part of a simulation step.

Specified by:
move in class AFish