Package se.sics.mspsim.extutil.jfreechart

Examples of se.sics.mspsim.extutil.jfreechart.DataSourceSampler


            }
            if (stats != null) {
                // A HACK for some "graphs"!!!
                DataChart dataChart =  new DataChart(registry, "Duty Cycle", "Duty Cycle");
                registry.registerComponent("dutychart", dataChart);
                DataSourceSampler dss = dataChart.setupChipFrame(cpu);
                dataChart.addDataSource(dss, "LEDS", stats.getDataSource(getID(), 0, OperatingModeStatistics.OP_INVERT));
                dataChart.addDataSource(dss, "Listen", stats.getDataSource(radio.getID(), CC2420.MODE_RX_ON));
                dataChart.addDataSource(dss, "Transmit", stats.getDataSource(radio.getID(), CC2420.MODE_TXRX_ON));
                dataChart.addDataSource(dss, "CPU", stats.getDataSource(cpu.getID(), MSP430.MODE_ACTIVE));
            }
View Full Code Here


      if (stats != null) {
        // A HACK for some "graphs"!!!
        DataChart dataChart =  new DataChart(registry, "Duty Cycle", "Duty Cycle");
        registry.registerComponent("dutychart", dataChart);
        DataSourceSampler dss = dataChart.setupChipFrame(cpu);
        dataChart.addDataSource(dss, "LEDS", stats.getDataSource(getID(), 0, OperatingModeStatistics.OP_INVERT));
        dataChart.addDataSource(dss, "Listen", stats.getDataSource(radio.getID(), TR1001.MODE_RX_ON));
        dataChart.addDataSource(dss, "Transmit", stats.getDataSource(radio.getID(), TR1001.MODE_TXRX_ON));
        dataChart.addDataSource(dss, "CPU", stats.getDataSource(cpu.getID(), MSP430.MODE_ACTIVE));
      }
View Full Code Here

TOP

Related Classes of se.sics.mspsim.extutil.jfreechart.DataSourceSampler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.