No BSD License  

Highlights from
MatPlanWDM v0.5

image thumbnail
from MatPlanWDM v0.5 by Pablo Pavon MariƱo
Educational network planning tool for the RWA problem in WDM networks (MILP and heuristic based)

plainText_netStateReport (netState)
% netStateTextReport
% 
%>> Usage: [textReport] = netStateTextReport (netState)
%
%>> Abstract: This function writes a results text report of a virtual
%   topology design (or lightpath network planning) process for a given
%   traffic demand matrix, a given physical topology and a given planning
%   algorithm.
%
%>> Arguments:
% o  In: 
%   netState: is a structure containing the virtual topology design.
%
% o Out:
%  . textReport: Column Cell of Strings whichs the text report consists of
%  
%

function [textReport] = plainText_netStateReport (netState)

textReport={
    [' '],
    ['---------------------------------------------------------'],
    ['NET STATE'],
    ['---------------------------------------------------------'],
    ['Lightpath Table (serialNumber,ingress,egress): '], 
    ['---------------------------------------------------------'],
    [num2str(netState.lightpathTable)],
    ['---------------------------------------------------------'],
    ['---------------------------------------------------------'],
    ['Lightpath Routing Matrix: '], 
    ['---------------------------------------------------------'],
    [num2str(netState.lightpathRoutingMatrix)],
    ['---------------------------------------------------------'],
    ['---------------------------------------------------------'],
    ['Flow Table (serialNumber,ingress,egress,rate,setupTime,duration): '], 
    ['---------------------------------------------------------'],
    [num2str(netState.flowTable)],
    ['---------------------------------------------------------'],
    ['---------------------------------------------------------'],
    ['Flow Routing Matrix: '], 
    ['---------------------------------------------------------'],
    [num2str(netState.flowRoutingMatrix)],
    ['---------------------------------------------------------'],
    ['---------------------------------------------------------'],
    ['Number of Occupied Transmitters Per Node: '],
    ['---------------------------------------------------------'],
    [num2str(netState.numberOfOccupiedTxs')],
    ['---------------------------------------------------------'],
    ['---------------------------------------------------------'],
    ['Number of Occupied Receivers Per Node: '],
    ['---------------------------------------------------------'],
    [num2str(netState.numberOfOccupiedRxs')],
    ['---------------------------------------------------------'],
    ['---------------------------------------------------------'],
    ['Number of Occupied Converters Per Node: '],
    ['---------------------------------------------------------'],
    [num2str(netState.numberOfOccupiedTWCs')],
    ['##################################################'],     
    };

Contact us at files@mathworks.com