Changes between Version 17 and Version 18 of GENIEducation/HyperNets


Ignore:
Timestamp:
08/16/13 14:26:55 (6 years ago)
Author:
shuang@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIEducation/HyperNets

    v17 v18  
    114114 private static boolean regPVN(Config myConfig) {
    115115        APIMessage retValue = myPVN.registerPVN(myConfig);
    116         textArea.append(retValue.message + "\n");
     116        System.out.println(retValue.message + "\n");
    117117        return retValue.result;
    118118 }
    119119}}}
    120  - Topology buildRandomRing(String pvnName, int nodeNum): builds a random ring with nodeNum of nodes on the ring, returns the topology of the ring. e.g.,
     120 - APIMessage buildTopo(String pvnName): build the topology on GENI with the given !HyperNet name. e.g.,
    121121{{{
    122122 #import pvnlib.*
    123123 ...
    124  Topology myRing = myPVN.buildRandomRing(myConfig.PVNName, myConfig.nodeNum);
     124 private PVNLib myPVN = new PVNLib("andor.gpolab.bbn.com");
     125 private static void build() {
     126        APIMessage ret = myPVN.buildTopo(myConfig.PVNName);
     127        System.out.println("\n"+ret.message + "\n");
     128        myPVN.parseLogin(ret);
     129 }
     130}}}
     131 - APIMessage tearDown(String pvnName): tears down the topology on GENI with given !HyperNet name. e.g.,
     132{{{
     133 #import pvnlib.*
     134 ...
     135 private PVNLib myPVN = new PVNLib("andor.gpolab.bbn.com");
     136 private static void tearDown() {
     137        APIMessage ret = myPVN.tearDown(myConfig);
     138        textArea.append("\n"+ret.message + "\n");
     139        myPVN.parseLogin(ret);
     140 }
     141}}}
     142 - Topology buildRandomRing(String pvnName, int nodeNum): builds a random ring with nodeNum of nodes on the ring, returns the topology of the ring.
     143 - Topology buildRing(String pvnName, ArrayList<Node> nodeList): builds a ring with connecting the given nodeList, returns the topology of the ring.
     144 - Topology buildRandomStar(String pvnName, int nodeNum): builds a random star with nodeNum of nodes in the star, excluding the central node (so there are nodeNum+1 total number of nodes), returns the topology of the star.
     145 - Topology buildStar(String pvnName, Node center, ArrayList<Node> nodeList): builds a star with center the center of the star, and nodeList are the nodes connecting the center node. Returns the topology of the star.
     146 - Topology buildRandomMesh(String pvnName, int nodeNum, int degree): builds a random connected mesh network, with nodeNum of nodes in the network. Degree defines the least number of links each node in the topology has. i.e., if degree = nodeNum-1, then it is a full mesh.
     147 - Topology buildMesh(String pvnName, ArrayList<Node> nodeList, int degree): builds a mesh network connecting the given list of nodes
     148 - Topology buildRandomFullMesh(String pvnName, int nodeNum): builds a full mesh network connecting nodeNum of random nodes.
     149 - Topology buildFullMesh(String pvnName, ArrayList<Node> nodeList): builds a full mesh with the given list of nodes.
     150{{{
     151 #import pvnlib.*
     152 ...
     153 Topology myTopo;
     154 //myTopo = myPVN.buildRandomRing(myConfig.PVNName, myConfig.nodeNum);
     155 //myTopo = myPVN.buildRandomStar(myConfig.PVNName, myConfig.nodeNum);
     156 //myTopo = myPVN.buildRandomMesh(myConfig.PVNName, myConfig.nodeNum, 2);
     157 myPVN.buildRandomFullMesh(myConfig.PVNName, myConfig.nodeNum);
    125158}}}
    126159
    127