package nl.tudelft.simulation.dsol.statistics.charts;
import java.rmi.RemoteException;
import javax.naming.Context;
import javax.naming.NamingException;
import nl.tudelft.simulation.dsol.simulators.SimulatorInterface;
import nl.tudelft.simulation.logger.Logger;
import nl.tudelft.simulation.naming.context.ContextUtil;
/**
* The BoxAndWhiskerPlot extends the BoxAndWhiskerPlot and links this it to the dsol framework
* (c) copyright 2002-2005 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
{
/**
* 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 (RemoteException | NamingException exception)
{
Logger.warning(this, "", exception);
}
}
/** {@inheritDoc} */
@Override
public String toString()
{
return super.getChart().getTitle().getText();
}
}