public class Ant extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<Integer> |
path |
protected Set<Integer> |
visited |
| Constructor and Description |
|---|
Ant() |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(Ant rhs) |
int |
currentState() |
void |
evaluate(PathMediator mediator) |
boolean |
hasVisited(int state_id) |
boolean |
isBetterThan(Ant that) |
List<com.github.chen0040.data.utils.TupleTwo<Integer,Integer>> |
path() |
void |
reset() |
void |
update(List<Integer> path,
double pathCost) |
void |
visit(int state) |
public int currentState()
public void visit(int state)
public void reset()
public boolean hasVisited(int state_id)
public void copy(Ant rhs)
public boolean isBetterThan(Ant that)
public void evaluate(PathMediator mediator)
Copyright © 2017. All rights reserved.