//==============================================================================
// The Society of Actuaries (SOA) makes this computer model and its computer
// code available to its members for educational purposes. The model and its
// code may be modified and redistributed without prior authorization from the
// SOA. The SOA distributes this computer model and its computer code in the
// hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE.
//==============================================================================

package implementation;

import repast.simphony.engine.environment.RunEnvironmentBuilder;
import repast.simphony.scenario.ModelInitializer;
import repast.simphony.scenario.Scenario;

public class SimulationInitializer implements ModelInitializer
{
	//==============================================================================
	// This class is activated as the simulation initializes.
	// Its primary purpose is to activate the user panel on the user GUI.
	// Otherwise, the user panel will not appear when the model starts.
	// For this class to work, the following line must be added to the
	// "scenario.xml" file:
	// "<model.initializer class = "implementation.SimulationInitializer"/>"
	//------------------------------------------------------------------------------     
	SimulationUserPanel simulationUserPanel;
	
	@Override
	public void initialize(Scenario scen, RunEnvironmentBuilder builder)
	{
		// Initialize the GUI user panel.
		// The class "SimulationUserPanel" is in the package "implementation"
		simulationUserPanel = new SimulationUserPanel();

	}//end initialize()
}//end SimulationInitializer class
