Example #1
0
 private void interpreter(String config) throws JSONException {
   JSONObject json = new JSONObject(config);
   logger.interpreter(json.getJSONObject(LOGGER));
   generator.interpreter(json.getJSONObject(PCAP_GENERATOR));
   switch1.interpreter(json.getJSONObject(SWITCH));
   controller.interpreter(json.getJSONObject(CONTROLLER));
   interval = json.getLong(INTERVAL);
   if (json.has(LINK)) {
     link.interpreter(json.getJSONObject(LINK));
   }
 }
Example #2
0
 public Controller getController() {
   return controller.getController();
 }