package nl.tudelft.simulation.dsol.statistics.charts;
import javax.naming.Context;
import javax.naming.NamingException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import nl.tudelft.simulation.dsol.simulators.SimulatorInterface;
import nl.tudelft.simulation.naming.context.ContextUtil;
/**
* The BoxAndWhiskerPlot extends the BoxAndWhiskerPlot and links this it to the dsol framework
* (c) 2002-2018 Delft University of Technology , the Netherlands.
* See for project information www.simulation.tudelft.nl
* License of use: Lesser General Public License (LGPL) , no
* warranty.
* @version $Revision: 1.1 $ $Date: 2010/08/10 11:37:21 $
* @author Peter Jacobs
*/
public class BoxAndWhiskerChart extends nl.tudelft.simulation.jstats.charts.boxAndWhisker.BoxAndWhiskerChart
{
/** the logger. */
private static Logger logger = LogManager.getLogger(BoxAndWhiskerChart.class);
/**
* constructs a new BoxAndWhiskerChart.
* @param simulator the simulator
* @param title the title
*/
public BoxAndWhiskerChart(final SimulatorInterface simulator, final String title)
{
super(title);
try
{
Context context = ContextUtil.lookup(simulator.getReplication().getContext(), "/charts");
ContextUtil.bind(context, this);
}
catch (NamingException exception)
{
logger.warn("", exception);
}
}
/** {@inheritDoc} */
@Override
public String toString()
{
return super.getChart().getTitle().getText();
}
}