public boolean initialize() { /** * TODO : Checking if the user provides the arguements currectly. TODO : This can now plot only * for one input stream value. */ TreeMap<String, String> params = getVirtualSensorConfiguration().getMainClassInitialParams(); ChartInfo chartInfo = new ChartInfo(); chartInfo.setInputStreamName(params.get("input-stream")); chartInfo.setPlotTitle(params.get("title")); chartInfo.setType(params.get("type")); chartInfo.setHeight(ParamParser.getInteger(params.get("height"), 480)); chartInfo.setWidth(ParamParser.getInteger(params.get("width"), 640)); chartInfo.setVerticalAxisTitle(params.get("vertical-axis")); chartInfo.setHistorySize(ParamParser.getInteger(params.get("history-size"), 10)); input_stream_name_to_ChartInfo_map.put(chartInfo.getInputStreamName(), chartInfo); chartInfo.initialize(); return true; }