printout.ps
来自「obs网络试验平台」· PS 代码 · 共 1,912 行 · 第 1/4 页
PS
1,912 行
end % of iso1dictpagesave restoreshowpage%%Page: (15-16) 8%%BeginPageSetup/pagesave save defsh 0 translate 90 rotate%%EndPageSetupiso1dict begingsavellx lly 12 add translate/v 0 store/x0 x v get 3.362408 add sx cw mul add store/y0 y v get bfs th add sub storex0 y0 moveto(Table.h) K( Aug 27 11:32 2003 Page: 13) p n() N( HashEntry\(\){;}) N( /* The unique burstidentifier, incoming and outgoing channel */) N( unsigned long burstId, inChannel, outChannel;) N( /* The arrival time, departureTime and ExpTime */) N( double arrTime, depTime, expTime;) N(};) N() N(/* The lookup switch */) N(class LookupSwitch) N({) N( public:) N( // constructor -- do nothing) N( LookupSwitch\(\) {}) N( // add new entry information into the lookup switch) N( void add\( u_long burstid, u_long inChannel, u_long outChannel,) N( double arrTime, double depTime, double expTime \);) N( // Add a new entry to the lookup switch) N( void add\( HashEntry* he \);) N( // Find and get an entry corresponding to the key) N( HashEntry* lookup\( unsigned long key \);) N( // Delete an entry corresponding to the key) N( HashEntry* erase\( unsigned long key \);) N( // Displays the elements of the lookupswitch) N( void showall\(\);) N( protected:) N( /* Main loookup switch for the node */) N( static map<unsigned long, HashEntry*> table__;) N(};) N() N(#endif) N() N(stdin) (Page 15/22) (Feb 24, 04 9:54) titleborder/v 1 store/x0 x v get 3.362408 add sx cw mul add store/y0 y v get bfs th add sub storex0 y0 moveto(fdl-scheduler.h) K( Feb 24 09:25 2004 Page: 14) p n() N(#ifndef fdl_scheduler_h) N(#define fdl_scheduler_h) N() N(using namespace std;) N() N(#include <cassert>) N(#include <cmath>) N(#include <cstdlib>) N(#include <cstring>) N(#include <iostream>) N(#include "../debug.h") N() N(class FdlSchedule) N({) N( public:) N( // constructs a new FdlSchedule object) N( FdlSchedule\( int fdl = -1, double stime = -1. \){) N( fdl_ = fdl;) N( startTime_ = stime;) N( }) N( // accessor and modifiers methods) N( virtual int& fdl\(\) { return \(fdl_\); }) N( virtual double& startTime\(\) { return \(startTime_\); }) N( protected:) N( int fdl_;) N( double startTime_;) N(};) N() N() N(class FdlScheduler) N({) N( public:) N( /* alloc method */) N( void alloc \( u_int nfdl\);) N( /* Schedule an FDL at the proposed schedule time and duration */) N( FdlSchedule schedFdl\( double schedTime, double schedDur \);) N() N( /// Accesor and modifiers) N( // return the number of FDLs per node) N( u_int& nfdl\(\) { return nfdl_; }) N( // return the per FDL delay) N( u_int &fdl_delay\(\) { return fdl_delay_; }) N() N( /* Number of FDLs per node */) N( u_int nfdl_;) N() N( /* Unscheduled time, startTime and the endTime */) N( double *unschTime_, *startTime_, *endTime_;) N() N( /* per FDL delay */) N( double fdl_delay_;) N() N( /* global FDL option */) N( static int option_;) N() N() N(stdin) (Page 16/22) (Feb 24, 04 9:54) titlebordergrestore(Printed by U-GMGPC2\\Geoffrey M. Garner) rhead(stdin) (8/11) (Tuesday February 24, 2004) footerend % of iso1dictpagesave restoreshowpage%%Page: (17-18) 9%%BeginPageSetup/pagesave save defsh 0 translate 90 rotate%%EndPageSetupiso1dict begingsavellx lly 12 add translate/v 0 store/x0 x v get 3.362408 add sx cw mul add store/y0 y v get bfs th add sub storex0 y0 moveto(fdl-scheduler.h) K( Feb 24 09:25 2004 Page: 15) p n() N( /* max fdls used \(per path or per node, depending on option_\);) N( * global parameter */) N( static int max_fdls_;) N() N( /* search for an appropriate fdl-schedule */) N( FdlSchedule search\( double schedTime, double schedDur \);) N() N( /* update FDL information */) N( void update\( u_int fdl, double schedTime, double schedDur \);) N(};) N() N(#endif) N() N(stdin) (Page 17/22) (Feb 24, 04 9:54) titleborder/v 1 store/x0 x v get 3.362408 add sx cw mul add store/y0 y v get bfs th add sub storex0 y0 moveto(lauc-scheduler.h) K( Jan 30 20:16 2004 Page: 16) p n() N(/* Copyright \(c\) University of Maryland, Baltimore County, 2003.) N( * Original Authors: Ramakrishna Shenai, Sunil Gowda and Krishna Sivalingam.) N( *) N( * This software is developed at the University of Maryland, Baltimore County un) N(der) N( * grants from Cisco Systems Inc and the University of Maryland, Baltimore Count) N(y.) N( *) N( * Permission to use, copy, modify, and distribute this software and its) N( * documentation in source and binary forms for non-commercial purposes) N( * and without fee is hereby granted, provided that the above copyright) N( * notice appear in all copies and that both the copyright notice and) N( * this permission notice appear in supporting documentation. and that) N( * any documentation, advertising materials, and other materials related) N( * to such distribution and use acknowledge that the software was) N( * developed by the University of Maryland, Baltimore County. The name of) N( * the University may not be used to endorse or promote products derived from) N( * this software without specific prior written permission.) N( *) N( * Copyright \(C\) 2000-2003 Washington State University. All rights reserved.) N( * This software was originally developed at Alcatel USA and subsequently modifi) N(ed) N( * at Washington State University, Pullman, WA through research work which was) N( * supported by Alcatel USA, Inc and Cisco Systems Inc.) N() N( * The following notice is in adherence to the Washington State University) N( * copyright policy follows.) N( *) N( * License is granted to copy, to use, and to make and to use derivative) N( * works for research and evaluation purposes, provided that Washington) N( * State University is acknowledged in all documentation pertaining to any such) N( * copy or derivative work. Washington State University grants no other) N( * licenses expressed or implied. The Washington State University name) N( * should not be used in any advertising without its written permission.) N( *) N( * WASHINGTON STATE UNIVERSITY MAKES NO REPRESENTATIONS CONCERNING EITHER) N( * THE MERCHANTABILITY OF THIS SOFTWARE OR THE SUITABILITY OF THIS SOFTWARE) N( * FOR ANY PARTICULAR PURPOSE. The software is provided "as is") N( * without express or implied warranty of any kind. These notices must) N( * be retained in any copies of any part of this software.) N( */) N() N(#ifndef lauc_scheduler_h) N(#define lauc_scheduler_h) N() N(using namespace std;) N() N(#include <cassert>) N(#include <cmath>) N(#include <cstdlib>) N(#include <cstring>) N(#include <iostream>) N(#include "../debug.h") N() N(class Schedule) N({) N( public:) N( // constructs a new schedule object) N() N(stdin) (Page 18/22) (Feb 24, 04 9:54) titlebordergrestore(Printed by U-GMGPC2\\Geoffrey M. Garner) rhead(stdin) (9/11) (Tuesday February 24, 2004) footerend % of iso1dictpagesave restoreshowpage%%Page: (19-20) 10%%BeginPageSetup/pagesave save defsh 0 translate 90 rotate%%EndPageSetupiso1dict begingsavellx lly 12 add translate/v 0 store/x0 x v get 3.362408 add sx cw mul add store/y0 y v get bfs th add sub storex0 y0 moveto(lauc-scheduler.h) K( Jan 30 20:16 2004 Page: 17) p n() N( Schedule\( int ch = -1, double stime = -1. \){) N( channel_ = ch;) N( startTime_ = stime;) N( }) N( // accessor and modifiers methods) N( virtual int& channel\(\) { return \(channel_\); }) N( virtual double& startTime\(\) { return \(startTime_\); }) N( protected:) N( int channel_;) N( double startTime_;) N(};) N() N() N(class LaucScheduler) N({) N( public:) N( /* do nothing constructor */) N( LaucScheduler\(\){}) N( /* Construct a new Lauc Scheduler object with the provided control and d) N(ata */) N( LaucScheduler\( u_int ncc, u_int ndc, u_int maxChannels \);) N( /* alloc space and assign ncc ndc and maxChannels */) N( virtual void alloc\( u_int ncc, u_int ndc, u_int maxChannels \);) N( /* Schedule a control channel at the proposed schedule time and duration) N( */) N( virtual Schedule schedControl\( double schedTime, double schedDur \);) N( /* Schedule a data channel at the proposed schedule time and duration */) N( virtual Schedule schedData\( double schedTime, double schedDur \);) N() N( /// Accesor and modifiers) N( u_int& ncc\(\) { return ncc_; }) N( u_int& ndc\(\) { return ndc_; }) N( u_int& maxChannels\(\) { return maxChannels_; }) N( // return the destination Node id) N( u_int& destNodeId\(\) { return destNodeId_; }) N( // the per channel bw) N( u_int &chbw\(\) { return chbw_; }) N() N( // Returns the packets duration) N( virtual double duration\( u_int pktsize \) {) N( if\( pktsize > 0 \)) N(// return \(8. * pktsize / \( 1.* \( chbw_ * maxChannels_ \)\) \);) N(// GMG -- removed maxChannels from above \(packet is transmitted on one channel\)) N( return \(8. * pktsize / \( 1.* chbw_\) \);) N( else {) N( Debug::debug\( __FILE__, __LINE__, "Critical error: provided pack) N(et's size is <0" \);) N( exit \(-1\);) N( }) N( }) N() N( /* Diagnostic method */) N( virtual void printChInfo\( u_int channel \);) N( protected:) N( /* Number of control data and total channels present per-fiber-link */) N( u_int ncc_, ndc_, maxChannels_;) N( /* Unscheduled time, startTime and the endTime */) N( double *unschTime_, *startTime_, *endTime_;) N() N() N(stdin) (Page 19/22) (Feb 24, 04 9:54) titleborder/v 1 store/x0 x v get 3.362408 add sx cw mul add store/y0 y v get bfs th add sub storex0 y0 moveto(lauc-scheduler.h) K( Jan 30 20:16 2004 Page: 18) p n() N( /* per channel bandwidth */) N( u_int chbw_;) N() N( /* destination node id of the lauc-scheduler */) N( u_int destNodeId_;) N() N( /* search for an appropriate data-schedule */) N( Schedule search\( double schedTime, double schedDur \);) N( /* update channel information */) N( void update\( u_int channel, double schedTime, double schedDur \);) N(};) N() N() N() N() N() N() N(#endif) N() N() N() N() N() N() N() N() N(stdin) (Page 20/22) (Feb 24, 04 9:54) titlebordergrestore(Printed by U-GMGPC2\\Geoffrey M. Garner) rhead(stdin) (10/11) (Tuesday February 24, 2004) footerend % of iso1dictpagesave restoreshowpage%%Page: (21-22) 11%%BeginPageSetup/pagesave save defsh 0 translate 90 rotate%%EndPageSetupiso1dict begingsavellx lly 12 add translate/v 0 store/x0 x v get 3.362408 add sx cw mul add store/y0 y v get bfs th add sub storex0 y0 moveto(scheduler-group.h) K( Aug 27 11:32 2003 Page: 19) p n() N(/* Copyright \(c\) University of Maryland, Baltimore County, 2003.) N( * Original Authors: Ramakrishna Shenai, Sunil Gowda and Krishna Sivalingam.) N( *) N( * This software is developed at the University of Maryland, Baltimore County un) N(der) N( * grants from Cisco Systems Inc and the University of Maryland, Baltimore Count) N(y.) N( *) N( * Permission to use, copy, modify, and distribute this software and its) N( * documentation in source and binary forms for non-commercial purposes) N( * and without fee is hereby granted, provided that the above copyright) N( * notice appear in all copies and that both the copyright notice and) N( * this permission notice appear in supporting documentation. and that) N( * any documentation, advertising materials, and other materials related) N( * to such distribution and use acknowledge that the software was) N( * developed by the University of Maryland, Baltimore County. The name of) N( * the University may not be used to endorse or promote products derived from) N( * this software without specific prior written permission.) N( *) N( * Copyright \(C\) 2000-2003 Washington State University. All rights reserved.) N( * This software was originally developed at Alcatel USA and subsequently modifi) N(ed) N( * at Washington State University, Pullman, WA through research work which was) N( * supported by Alcatel USA, Inc and Cisco Systems Inc.) N() N( * The following notice is in adherence to the Washington State University) N( * copyright policy follows.) N( *) N( * License is granted to copy, to use, and to make and to use derivative) N( * works for research and evaluation purposes, provided that Washington) N( * State University is acknowledged in all documentation pertaining to any such) N( * copy or derivative work. Washington State University grants no other) N( * licenses expressed or implied. The Washington State University name) N( * should not be used in any advertising without its written permission.) N( *) N( * WASHINGTON STATE UNIVERSITY MAKES NO REPRESENTATIONS CONCERNING EITHER) N( * THE MERCHANTABILITY OF THIS SOFTWARE OR THE SUITABILITY OF THIS SOFTWARE) N( * FOR ANY PARTICULAR PURPOSE. The software is provided "as is") N( * without express or implied warranty of any kind. These notices must) N( * be retained in any copies of any part of this software.) N( */) N() N(#ifndef _scheduler_group_h) N(#define _scheduler_group_h) N() N(using namespace std;) N() N(#include <cassert>) N(#include <cstdlib>) N(#include <cstring>) N(#include <iostream>) N() N(#include "lauc-scheduler.h") N() N(/* Scheduler group maintains a list of schedulers on a) N( * one per link basis. \(The default scheduler maintained is the) N( * LaucScheduler\)) N( */) N() N(stdin) (Page 21/22) (Feb 24, 04 9:54) titleborder/v 1 store/x0 x v get 3.362408 add sx cw mul add store/y0 y v get bfs th add sub storex0 y0 moveto(scheduler-group.h) K( Aug 27 11:32 2003 Page: 20) p n() N(class Scheduler_group) N({) N( public:) N( // default constructor) N( Scheduler_group\(\);) N( // destructor) N( ~Scheduler_group\(\);) N( // install the LaucScheduler at the specified slot) N( void install\( LaucScheduler *obj, u_int slot \);) N( // install LaucScheduler at the next available slot) N( void install\( LaucScheduler *obj \);) N( // return the LaucScheduler specified by the slot number or NULL) N( LaucScheduler* getObject\( u_int slot \);) N( // search for a LauScheduler based upon its dest-node-id) N( LaucScheduler* search\( u_int dest_id \);) N() N( // diagnostic method) N( void printInfo\(\);) N() N( protected:) N( // the slot list) N( LaucScheduler **slot_;) N( // represents the current number of slots) N( u_int currsize_;) N( // add new slots) N( void add_slots\( u_int nslots \);) N( // get the next available slot. if the no slots) N( // are available then add new slots and return) N( // a new slot.) N( u_int getNext\(\);) N() N( // default size by which the group list grows.) N( static const u_int default_size = 10;) N(};) N() N(#endif) N() N() N(stdin) (Page 22/22) (Feb 24, 04 9:54) titlebordergrestore(Printed by U-GMGPC2\\Geoffrey M. Garner) rhead(stdin) (11/11) (Tuesday February 24, 2004) footerend % of iso1dictpagesave restoreshowpage%%Trailerend%%EOF
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?