To load this file without formatting, visit http://whoyouknow.co.uk/ants/AntGraph/java/1/src/antgraph/PheromoneParticle.java. This is a spam-protection measure; sorry for the inconvenience.

· PheromoneParticle.java ·

   1/*
   2 * PheromoneParticle.java
   3 *
   4 * Created on 16 February 2007, 02:51
   5 *
   6 * To change this template, choose Tools | Template Manager
   7 * and open the template in the editor.
   8 */
   9
  10package antgraph;
  11
  12import antgraph.Pheromone.Direction;
  13
  14/**
  15 *
  16 * @author James Hamilton
  17 */
  18public class PheromoneParticle {
  19    
  20    private Ant ant = null;
  21    private Direction direction = Direction.AWAY_FROM_NEST;
  22
  23    /** Creates a new instance of PheromoneParticle */
  24    public PheromoneParticle(Ant ant, Direction direction) {
  25        this.setAnt(ant);
  26        this.setDirection(direction);
  27    }
  28
  29    public Ant getAnt() {
  30        return ant;
  31    }
  32
  33    public void setAnt(Ant ant) {
  34        this.ant = ant;
  35    }
  36
  37    public Direction getDirection() {
  38        return direction;
  39    }
  40
  41    public void setDirection(Direction direction) {
  42        this.direction = direction;
  43    }
  44    
  45}
  46

· PheromoneParticle.java ends ·

Generated by CHIP: Code Highlighting in PHP, version 2.7.0.