예제 #1
0
  /** overrides Planktonic.determineNewLoc implements chemotaxis */
  protected void determineNewLoc() {
    // get the specific soluteGrid
    if (chemotaxSolute == null) {
      chemotaxSolute =
          this._agentGrid.mySim.soluteList[this._agentGrid.mySim.getSoluteIndex(chemoeffector)];
    }
    if (chemotaxSolute.getValueAt(_location) > chem_threshold) {

      chemotax();
    } else {
      super.determineNewLoc();
    }
  }