/* Learning Net - shlomy boshy 031868912
 * Reinforcement Learning network simulation  
 */
package learnnet;

public class SMALLTopology implements Topology {

Node[] nodes;

/* The topology is:
    X --- X
     \   /
       X
   
   packets should learn to use the LONGER 
   path when the shorter is crowded.    
       
 */      


SMALLTopology() {        
    nodes = new Node[3];
  }

  public void loadTopology (Network NT) {
     /** loads nodes and links in network */          
          
     /* create nodes */
     Network.debugPrint("Creating network topology...");
     for (int i=0;i<3;i++)       
          nodes[i] = NT.createNode();  
        
     /* add links by topology (ordered by rows) */          
     NT.createLink(nodes[0],nodes[1],1);
     NT.createLink(nodes[1],nodes[2],1);
     NT.createLink(nodes[2],nodes[0],1);
     
  }
}
