biosim.app.twostateants
Class TwoStateAnt

java.lang.Object
  extended by biosim.app.twostateants.TwoStateAnt
All Implemented Interfaces:
Agent

public class TwoStateAnt
extends java.lang.Object
implements Agent


Field Summary
static java.util.ArrayList<java.lang.Double> acqTimes
           
 AbstractAnt antBody
           
static java.util.ArrayList<java.lang.Double> antDists
           
static double AVOID_TIME
           
static java.util.ArrayList<java.lang.Double> collectTimes
           
 int foodCounter
           
static java.util.ArrayList<java.lang.Double> foodCounts
           
static int FORAGE
           
static double HEIGHT
           
static int RETURN
           
 int state
           
 double timeAvoiding
           
 double timeNearAnt
           
static double VISIT_RANGE
           
static double VISIT_TIME
           
static java.util.ArrayList<java.lang.Double> wallDists
           
static double WIDTH
           
 
Constructor Summary
TwoStateAnt(AbstractAnt b)
           
 
Method Summary
 void act(double time)
           
 void finish()
           
 void init()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

antBody

public AbstractAnt antBody

timeNearAnt

public double timeNearAnt

timeAvoiding

public double timeAvoiding

state

public int state

RETURN

public static final int RETURN
See Also:
Constant Field Values

FORAGE

public static final int FORAGE
See Also:
Constant Field Values

VISIT_TIME

public static final double VISIT_TIME
See Also:
Constant Field Values

VISIT_RANGE

public static final double VISIT_RANGE
See Also:
Constant Field Values

AVOID_TIME

public static final double AVOID_TIME
See Also:
Constant Field Values

collectTimes

public static java.util.ArrayList<java.lang.Double> collectTimes

antDists

public static java.util.ArrayList<java.lang.Double> antDists

wallDists

public static java.util.ArrayList<java.lang.Double> wallDists

foodCounts

public static java.util.ArrayList<java.lang.Double> foodCounts

acqTimes

public static java.util.ArrayList<java.lang.Double> acqTimes

foodCounter

public int foodCounter

WIDTH

public static final double WIDTH
See Also:
Constant Field Values

HEIGHT

public static final double HEIGHT
See Also:
Constant Field Values
Constructor Detail

TwoStateAnt

public TwoStateAnt(AbstractAnt b)
Method Detail

init

public void init()
Specified by:
init in interface Agent

finish

public void finish()
Specified by:
finish in interface Agent

act

public void act(double time)
Specified by:
act in interface Agent

main

public static void main(java.lang.String[] args)