model.fish.bad
Class ThreadFish

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

public class ThreadFish
extends AFish

A fish that tries to create a new thread.

Author:
Mathias Ricken

Field Summary
 
Fields inherited from class sysModel.fish.AFish
_fishColor, _fishDisplay, _probOfBreeding, _probOfDying
 
Constructor Summary
ThreadFish(java.awt.Color fishColor)
          Constructor.
 
Method Summary
protected  void move()
          Move 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
 

Constructor Detail

ThreadFish

public ThreadFish(java.awt.Color fishColor)
Constructor.

Parameters:
fishColor - color of the fish
Method Detail

move

protected void move()
Move the fish.

Specified by:
move in class AFish