|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ants.freeant.Gnutant
Constructor Summary | |
Gnutant(RequestId rid,
String query,
HashedKeyword key,
NestId requestor,
float explorationProbability,
int trailAttempts,
double trailDev,
int explorationAttempts,
int maxResources,
int maxProviders)
Instantiate a new Gnutant by setting the query to be satisfied and the hash value to be searched. |
Method Summary | |
void |
doSearch(AntView view)
|
String |
getSpecies()
Returns the identifier of the "species" of this ant. |
void |
init(AntView view)
FIXME: add this method to AntView; add the invocation of this method in the local nest. |
void |
readExternal(ObjectInput in)
|
void |
run(AntView view)
This method encapsulate the computation performed by the ant. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Gnutant(RequestId rid, String query, HashedKeyword key, NestId requestor, float explorationProbability, int trailAttempts, double trailDev, int explorationAttempts, int maxResources, int maxProviders)
Method Detail |
public String getSpecies()
Ant
getSpecies
in interface Ant
public void init(AntView view)
init
in interface Ant
public void run(AntView view)
run
in interface Ant
view
- reference to the AntView object which
constitutes the controlled environment of the antpublic void doSearch(AntView view)
public void writeExternal(ObjectOutput out) throws IOException
IOException
public void readExternal(ObjectInput in)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |