net.eduvax.grant.simul
Class TestRoundRobinNode

java.lang.Object
  extended by net.eduvax.grant.core.Node
      extended by net.eduvax.grant.core.LocalNode
          extended by net.eduvax.grant.simul.TestNode
              extended by net.eduvax.grant.simul.TestRoundRobinNode

 class TestRoundRobinNode
extends TestNode

Test node with round robin selector. This node behavior is its parent behavior. It just use a RoundRobin selector i.e. The ant engine is not use to route tasklets to next node. Nodes are selected sequentially one by one. Each step selects next node in know nodes list. last's next is fist :
A RoundRobin selector is used insteed of native ant engine one. See RoundRobin class for more details.


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
TestRoundRobinNode(java.lang.String n, int p)
          create new round robin test node.
 
Method Summary
 
Methods inherited from class net.eduvax.grant.simul.TestNode
checkLoad, execReportToClient, getFeedback, getLoadValue, load, loadNodes, setClient, setLoadCost, setPerf
 
Methods inherited from class net.eduvax.grant.core.LocalNode
addNode, dissipate, execReport, feedback, fitness, getFeedback, 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

TestRoundRobinNode

public TestRoundRobinNode(java.lang.String n,
                          int p)
create new round robin test node.

Parameters:
n - new node's name.
b - broker to use to send requests to parent and selected nodes.
p - perf number.
See Also:
details about p and max params.