package controller.commande;

import org.sig.fw.db.corrida.model.Commande;

import controller.Controller;
import controller.history.Application_Controller;
import view.commande.Commande_View;

public class Commande_Controller extends Controller
{
	private Commande_View vw_commande;
	private Commande commande;
	
	public Commande_Controller(Application_Controller ctrl_application, Commande commande)
	{
		super(ctrl_application);
		this.commande = commande;
		this.commande.computeReference();
		
		this.vw_commande = new Commande_View(this);
		this.vw_commande.setVisible(true);
	}

	public Commande getModel()
	{
		return this.commande;
	}
	
	public Commande_View getView()
	{
		return this.vw_commande;
	}
}
