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)); } }
public Controller getController() { return controller.getController(); }