|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use NestId | |
anthill | This package contains the main interfaces needed by ant implementors; in particular, it contains the Ant interface, which is the agent interface to be implemented. |
anthill.antnet | This package is a prototype implementation of package
anthill.nest to be used during actual
deployment in a real environment. |
anthill.nest | This package contains the main interfaces needed by nest implementors. |
anthill.nestor | This package is a prototype implementation of package
anthill.nest to be used during Anthill
simulations. |
freenetant | This package contains a simple ant implementation that perform a random walking through a peer-to-peer network. |
gnutant | This package contains a simple ant implementation. |
random | This package contains a simple ant implementation that perform a random walking through a peer-to-peer network. |
Uses of NestId in anthill |
Methods in anthill that return NestId | |
NestId |
Neighbour.getId()
Returns the nest identifier of the neighbour |
NestId |
AntView.getNestId()
Returns the identifier of the nest hosting the ant using this AntView . |
NestId |
AntView.getLastVisited()
Returns the identifier of the last nest visisted by this ant. |
NestId |
AntView.getReturnNest(AntId aid,
boolean remove)
Returns the identifier of the previous nest in the incoming path, as stored through during the forward trip through method storePreviousNest() . |
Methods in anthill with parameters of type NestId | |
Ant[] |
AntFactory.getAnts(RequestId rid,
java.lang.Object request,
NestId requestor)
Factory method for creating a set of ants aimed at satisfying a particular request. |
void |
AntView.move(NestId id)
Method invoked by an ant in order to be sent to another Nest . |
boolean |
AntView.storeReturnNest(AntId aid,
NestId nid)
Store information about the last nest visited by the ant associated with this AntView on the current
nest. |
void |
AntView.addNeighbour(NestId id)
Ants invoke this method to add the identifier of a new neighbour nest to the set of neighbours known to the current nest. |
void |
AntView.removeNeighbour(NestId id)
Ants invoke this method to remove a neighbor nest from the list of neighbors known to this nest. |
Constructors in anthill with parameters of type NestId | |
Neighbour(NestId id)
Constructs a new neighbour with the given identifier. |
|
Neighbour(NestId id,
float cost,
boolean reachable)
Constructs a new neighbour with the given identifier and with the specified additional parameters. |
Uses of NestId in anthill.antnet |
Classes in anthill.antnet that implement NestId | |
class |
UdpNid
An UDP anthill identifier is composed by an IP address plus an UDP port. |
Methods in anthill.antnet that return NestId | |
NestId |
UdpGate.getId()
Returns the identifier of the Nest to which this gate is associated. |
Methods in anthill.antnet with parameters of type NestId | |
void |
UdpGate.send(NestId id,
Ant ant,
int ttl)
Send an agent to the specified anthill. |
Uses of NestId in anthill.nest |
Methods in anthill.nest that return NestId | |
NestId |
Nest.getId()
Returns the identifier of this nest |
NestId |
Gate.getId()
Returns the identifier of the nest containing this gate. |
NestId |
Trail.lookup(AntId id,
boolean remove)
Lookup the Trail object in order to obtain the identifier of the nest from which the specified ant arrived. |
NestId |
AntDescriptor.getLastVisited()
Return the identifier of the last nest visited by the ant associated with this ant descriptor. |
Methods in anthill.nest with parameters of type NestId | |
void |
Nest.addClientNeighbour(NestId nid)
Adds the identifier of a new neighbour nest to the set of neighbours known to this nest, on behalf of the nest user. |
void |
Nest.addAntNeighbour(NestId nid)
Adds the identifier of a new neighbour nest to the set of neighbours known to this nest, on behalf of an ant visiting the nest. |
void |
Nest.removeNeighbour(NestId nid)
Removes the identifier of a neighbour nest from the set of neighbours known to this Nest. |
void |
Gate.send(NestId dest,
Ant ant,
int ttl)
Sends an ant to the specified nest. |
boolean |
Trail.add(AntId id,
NestId source)
Add a pair (ant identifier, previous nest identifier) to Trail object. |
Constructors in anthill.nest with parameters of type NestId | |
AntDescriptor(NestId sender,
Ant ant,
int ttl)
Instantiates an ant descriptor and copies the initialization parameters in it. |
Uses of NestId in anthill.nestor |
Classes in anthill.nestor that implement NestId | |
class |
LocalNid
Class LocalNid is the implementation of NestId for the
to be used during off-line simulation. |
Methods in anthill.nestor that return NestId | |
NestId |
LocalAntView.getNestId()
|
NestId |
LocalAntView.getLastVisited()
|
NestId |
LocalAntView.getReturnNest(AntId aid,
boolean remove)
Lookup trail information on the Trail object stored
in the nest and move to the obtained nest. |
NestId |
LocalGate.getId()
Returns the identifier of the Nest to which this
gate is associated. |
NestId |
LocalNest.getId()
Return the identifier of this Nest |
NestId |
LocalTrail.lookup(AntId id,
boolean remove)
Lookup this LocalTrail object in order to obtain the
identifier of the nest from which the specified
ant arrived. |
Methods in anthill.nestor with parameters of type NestId | |
void |
LocalAntView.move(NestId id)
Moves an ant to the specified nest. |
boolean |
LocalAntView.storeReturnNest(AntId aid,
NestId nid)
Leave trail information on the Trail object stored
in the nest. |
void |
LocalAntView.addNeighbour(NestId id)
Add the new neighbor information to the Gate object contained
in the current nest. |
void |
LocalAntView.removeNeighbour(NestId id)
FIXME: Implement. |
void |
LocalGate.send(NestId dest,
Ant ant,
int ttl)
Sends an ant to the specified nest. |
void |
LocalNest.addClientNeighbour(NestId aid)
Add the identifier of a new neighbour nest to the set of neighbours known to this Nest , on behalf of
an Nest client. |
void |
LocalNest.addAntNeighbour(NestId aid)
Add the identifier of a new neighbour nest to the set of neighbours known to this Nest , on behalf of
an ant. |
void |
LocalNest.removeNeighbour(NestId aid)
Remove a neighbour identifier from the set of neighbour |
boolean |
LocalTrail.add(AntId id,
NestId source)
Add a pair (id, source) to the trail object containing the host. |
Uses of NestId in freenetant |
Methods in freenetant with parameters of type NestId | |
Ant[] |
FreenetAntFactory.getAnts(RequestId rid,
java.lang.Object request,
NestId requestor)
Returns a freenet ant for a query. |
boolean |
FreenetAntPheromone.addKeyword(java.lang.String keyword,
NestId nestid)
Convert the query string in the corresponding hash value. |
boolean |
FreenetAntPheromone.addKeyhash(KeyHash keyhash,
NestId nestid)
Add a new nest containing a document that match the specified keyword, represented by a hash of the keyword. |
Constructors in freenetant with parameters of type NestId | |
FreenetAnt(RequestId rid,
java.lang.String query,
int copyProb,
int fakeProb,
NestId requestor)
Instantiate a new FreeAnt by setting the query to be satisfied and the hash value to be searched. |
Uses of NestId in gnutant |
Methods in gnutant with parameters of type NestId | |
boolean |
GnutantPheromone.addKeyhash(KeyHash keyhash,
NestId nestid)
Add a new nest containing a document that match the specified keyword, represented by a hash of the keyword. |
Ant[] |
GnutantFactory.getAnts(RequestId rid,
java.lang.Object request,
NestId requestor)
Returns a set of ants for a query. |
Constructors in gnutant with parameters of type NestId | |
ResponseGnutant(RequestId rid,
Resource[] resources,
NestId requestor,
AntId responseId)
Initializes a new ResponseGnutant with the set of resources to be returned, the identifier of the requestor nest and an ant identifier to be used to obtain return information through nests. |
|
Gnutant(RequestId rid,
java.lang.String query,
KeyHash key,
NestId requestor)
Instantiate a new Gnutant by setting the query to be satisfied and the hash value to be searched. |
|
TrailGnutant(NestId provider,
KeyHash key,
Resource[] resources,
AntId trailId,
History history)
Initializes a new TrailGnutant with the set of resources to be returned, the identifier of the requestor nest and an ant identifier to be used to obtain return information through nests. |
|
ReplyGnutant(RequestId rid,
Resource[] resources,
NestId requestor)
Initializes a new ReplyGnutant with the set of resources to be returned, the request identifier and the identifier of the requestor nest. |
Uses of NestId in random |
Methods in random with parameters of type NestId | |
Ant[] |
RandomAntFactory.getAnts(RequestId rid,
java.lang.Object request,
NestId requestor)
Returns a set of ants for a query. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |