|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.eduvax.grant.core.Node
net.eduvax.grant.core.LocalNode
net.eduvax.grant.simul.TestNode
net.eduvax.grant.simul.TestRandomNode
class TestRandomNode
This node selects strictly randomly other nodes when routing. Full random selection is provided by normal ant engine but feedback is always 0 so selection probability has always same value for all nodes. That is : P(x)=1/NbNodes
| Field Summary |
|---|
| Fields inherited from class net.eduvax.grant.simul.TestNode |
|---|
client |
| Fields inherited from class net.eduvax.grant.core.LocalNode |
|---|
ANT_DEF_DELAY, candidate, STATE_FULL, STATE_HALTED, STATE_RUNNING, STATE_SHUTDOWN, STATE_STARTING, STATES_NAME |
| Constructor Summary | |
|---|---|
TestRandomNode(java.lang.String n,
int p)
Create new TestRandomNode. |
|
| Method Summary | |
|---|---|
protected float |
getFeedback(ExecReport er)
do not report any feedback. |
protected float |
getFeedback(ExecRequest er)
do not report any feedback. |
| Methods inherited from class net.eduvax.grant.simul.TestNode |
|---|
checkLoad, execReportToClient, getLoadValue, load, loadNodes, setClient, setLoadCost, setPerf |
| Methods inherited from class net.eduvax.grant.core.LocalNode |
|---|
addNode, dissipate, execReport, feedback, fitness, getKnownNodes, getTaskCount, handleEvent, removeNode, sendEvent, setMaxLoad, setSelector, shutdown, status, submitRequest |
| Methods inherited from class net.eduvax.grant.core.Node |
|---|
createNode, getFitness, getName, getRCDir, registerNodeFactory, setFitness |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestRandomNode(java.lang.String n,
int p)
n - new node's nameb - broker to use to send request to other nodesp - power indice.| Method Detail |
|---|
protected float getFeedback(ExecReport er)
getFeedback in class LocalNodeer - execute reportl - node index in routing path
protected float getFeedback(ExecRequest er)
getFeedback in class TestNodeer - execute reportl - node index in routing path
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||