try
{
    wedebug.addLogger("shortestpath", "ShortestPath");
}
catch(e)
{
    alert(e.message);
}

var ShortestPathController = Class.create();
ShortestPathController.prototype = {
    m_menuController : null,
    
    initialize : function(t_menuController)
    {
        wedebug.log("shortestpath", "ShortestPathController.initialize: " + [t_menuController]);
        this.m_menuController = t_menuController;
    },
    
    setStart : function(t_caption, t_lat, t_lon)
    {
        wedebug.log("shortestpath", "setStart: " + [t_caption, t_lat, t_lon]);
        var t_menu = this.m_menuController.getMenu();
        this.m_menuController.expand();
        t_menu.route.setRouteStart(t_caption, t_lat, t_lon);
        t_menu.collapsible.showPane(t_menu.Collapsible.PANELS.Route, true, false);
    },
    
    setDestination : function(t_caption, t_lat, t_lon)
    {
        wedebug.log("shortestpath", "setDestination: " + [t_caption, t_lat, t_lon]);
        
        var t_menu = this.m_menuController.getMenu();
        this.m_menuController.expand();
        t_menu.route.setRouteDestination(t_caption, t_lat, t_lon);
        t_menu.collapsible.showPane(t_menu.Collapsible.PANELS.Route, true, false);
    },
    
    reset : function()
    {
//        alert("not implemented.");
    }
}

