|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.ants.felixgm.trmsim_wsn.network.Link
es.ants.felixgm.trmsim_wsn.trm.lftm.LFTM_Link
public class LFTM_Link
This class models a link between two sensors, with a certain trace of pheromone and a certain heuristic value.
| Field Summary | |
|---|---|
protected double |
heuristic
Heuristic value of this link |
static double |
MAX_PHEROMONE
Maximum value for a pheromone trace: 0.999999 |
static double |
MIN_PHEROMONE
Minimum value for a pheromone trace: 0.000001 |
protected double |
pheromone
Pheromone trace of this link |
| Fields inherited from class es.ants.felixgm.trmsim_wsn.network.Link |
|---|
destination, source |
| Constructor Summary | |
|---|---|
LFTM_Link(LFTM_Sensor source,
LFTM_Sensor destination)
Class LFTM_Link constructor |
|
| Method Summary | |
|---|---|
LFTM_Sensor |
get_destination()
Retrives the destination sensor of this link |
double |
get_heuristic()
Returns the heuristic value of this link |
double |
get_pheromone()
Returns the pheromone trace of this link |
LFTM_Sensor |
get_source()
Retrives the source sensor of this link |
void |
reset()
Sets this link to an initial state |
void |
set_heuristic(double value)
Sets the heuristic value of this link |
static void |
set_initialPheromone(double initialPheromone)
Sets the initial value of pheromone of this link |
void |
set_pheromone(double value)
Sets the pheromone trace of this link |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double MAX_PHEROMONE
public static final double MIN_PHEROMONE
protected double pheromone
protected double heuristic
| Constructor Detail |
|---|
public LFTM_Link(LFTM_Sensor source,
LFTM_Sensor destination)
source - Source sensor of the linkdestination - Destination sensor of the link| Method Detail |
|---|
public void reset()
public LFTM_Sensor get_source()
Link
get_source in class Linkpublic LFTM_Sensor get_destination()
Link
get_destination in class Linkpublic double get_pheromone()
public void set_pheromone(double value)
value - The new pheromone trace of this linkpublic double get_heuristic()
public void set_heuristic(double value)
value - The new heuristic value of this linkpublic static void set_initialPheromone(double initialPheromone)
initialPheromone - The new initial value of pheromone of this link
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||