selects and starts the user's choice simulhope_init either starts : - simulhope_gui for Graphical User Interface (GUI) utilisation - simulhope_console for command-line (console) utilisation INPUT dir simulhope's home directory OUTPUT no output $Id: simulhope_init.m,v 1.8 2004/07/16 03:49:50 dalai Exp $
0001 % selects and starts the user's choice 0002 % 0003 % simulhope_init either starts : 0004 % - simulhope_gui for Graphical User Interface (GUI) utilisation 0005 % - simulhope_console for command-line (console) utilisation 0006 % 0007 % INPUT 0008 % dir simulhope's home directory 0009 % 0010 % OUTPUT 0011 % no output 0012 % 0013 % 0014 % $Id: simulhope_init.m,v 1.8 2004/07/16 03:49:50 dalai Exp $ 0015 0016 function [par,bs,mob,msg_mcn,msg_std] = simulhope_init(par) 0017 0018 disp(dispconsole('|','=','|')); 0019 disp(dispconsole('|','Initiation of simulation','','','|')); 0020 disp(dispconsole('|','=','|')); 0021 0022 % initiate the potential sites and the "wrapping-border" for the city and hexagonal cases 0023 par = init_env(par); 0024 disp(dispconsole('|','initiation of environment',':','ok','|')); 0025 0026 % initiate configuration for the BS and assign to the structure "bs" 0027 bs = init_bs(par); 0028 disp(dispconsole('|','initiation of base-stations',':','ok','|')); 0029 0030 % initiate configuration for the messages and assign to the structure "msg" 0031 [par,msg_mcn,msg_std] = init_msg(par); 0032 disp(dispconsole('|','initiation of messages',':','ok','|')); 0033 0034 % initiate configuration for the position and speed of the mobiles and assign to the structure "mob" 0035 mob = init_mob(par); 0036 disp(dispconsole('|','initiation of mobiles',':','ok','|')); 0037