29 Jan 2007
08 May 2009)
Educational network planning tool for the RWA problem in WDM networks (MILP and heuristic based)
%This function extracts the next event from the list of pending
%events giving the parameters of this event.
%>>>The input is:
% 1) listOfPendingEvents: list of pending events where the first column is
% the type of event, the second column is the arrived/end time of the flow
% and the third column is the serial number of the flow.
%>>>The outputs are:
% 1) eventType: type of event belonging to the next pending event. If Its an
% arrived event, eventType is '0'. If Its an end event, eventType is '1'.
% 2) eventTime: arrived/end time belonging to the next pending event.
% 3) serialNumber: serial number of the next flow.
function [eventType , eventTime , serialNumber] = nextPendingEvent(listOfPendingEvents)
error('There arent any pending events');