No BSD License  

Highlights from
MatPlanWDM v0.5

image thumbnail

MatPlanWDM v0.5

by

 

29 Jan 2007 (Updated )

Educational network planning tool for the RWA problem in WDM networks (MILP and heuristic based)

GUIupdateStepAndStopStates.m
%Updating edits from Results Information
GUIResultsInformation;

%Updating the lightpaths and flows popupmenus. 

%Popup Menu of lightpaths
if(isempty(netState.lightpathTable)==0)
    
    set(handles.popupmenu12,'Enable','on');
    lightpathMatrixString=cell(size(netState.lightpathTable,1)+1,1);
    lightpathMatrixString(1)={['Lightpaths']};
    
    for i=2:size(netState.lightpathTable,1)+1,
    lightpathMatrixString(i)={['lightpath ', num2str(netState.lightpathTable(i-1,1)), ...
        ':  [', num2str(netState.lightpathTable(i-1,2)), '-->', num2str(netState.lightpathTable(i-1,3)),']' ]};
    end
    set(handles.popupmenu12,'String', lightpathMatrixString);
    axes(handles.axes8);
    topologyTitle='';
    hold off
    plotTopology (phys.nodesPlaceMatrix, phys.linkTable, 0, topologyTitle, 0);
  
end

%Popup Menu of flows
if(isempty(netState.flowTable)==0)
    set(handles.popupmenu11,'Enable','on');
    flowsMatrixString=cell(size(netState.flowTable,1)+1,1);
    flowsMatrixString(1)={['Flows']};
    for i=2:size(netState.flowTable,1)+1,
    flowsMatrixString(i)={['flow ', num2str(netState.flowTable(i-1,1)), ...
        ':  [', num2str(netState.flowTable(i-1,2)), '-->', num2str(netState.flowTable(i-1,3)),']' ]};
    end
    set(handles.popupmenu11,'String', flowsMatrixString);
    axes(handles.axes2);
    topologyTitle='';
    hold off
    plotTopology (phys.nodesPlaceMatrix, netState.lightpathTable(:,2:3), 1, topologyTitle, 0)

end


Contact us