biosim.app.twostateants
Class TwoStateAnt
java.lang.Object
biosim.app.twostateants.TwoStateAnt
- All Implemented Interfaces:
- Agent
public class TwoStateAnt
- extends java.lang.Object
- implements Agent
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 |
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
TwoStateAnt
public TwoStateAnt(AbstractAnt b)
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)