| 100 | - 7. an example !HyperNet config file can be found here: http://www.gpolab.bbn.com/experiment-support/HyperNet/Examples/myConfig.txt |
| 101 | |
| 102 | == Network Hypervisor API calls == |
| 103 | - Config getConfig(String configFile): get configuration from configFile. e.g., |
| 104 | {{{ |
| 105 | #import pvnlib.* |
| 106 | ... |
| 107 | Config myConfig = PVNLib.getConfig("myConfig.txt"); |
| 108 | }}} |
| 109 | - APIMessage registerPVN(Config myConfig): registers a !HyperNet, with configuration specified in myConfig. e.g., |
| 110 | {{{ |
| 111 | #import pvnlib.* |
| 112 | ... |
| 113 | private static boolean regPVN(Config myConfig) { |
| 114 | APIMessage retValue = myPVN.registerPVN(myConfig); |
| 115 | textArea.append(retValue.message + "\n"); |
| 116 | return retValue.result; |
| 117 | } |
| 118 | }}} |