📄 main.html
字号:
if the message arrives on the wrong gate), assuming it's an error in the model logic. Where necessary, replace wait() with waitAndEnqueue(). putAsideQueue will be removed some time in the future (see next item).(-) deprecated putAsideQueue. putAsideQueue has been only used by the methods wait(), receiveOn() (and receiveNewOn()). It stored "wrong" messages (that arrive during the wait period or not on the specified gate). Because of putAsideQueue, the receive() methods had to have 2 versions: receive..() and receiveNew..(). Practice has shown that the usefulness of putAsideQueue was marginal, its purpose was more often misunderstood than not, its implicit use by wait() and the message receiving functions was highly error-prone. It also bloated the API (receiveNew functions wouldn't have been needed without it). On the other hand, it is easy to provide the needed behavior of wait() using waitAndEnqueue(), or a loop with receive(). putAsideQueue will be removed at some point in the future.(!) do not use the receiveNew..() functions as they will be made redundant when putAsideQueue goes away.(+) added ev.flush(), although in most cases using the autoflush=yes/no ini file option is a better idea(-) cSimplemodule: deprecated phase() (nobody really used it)(+) added macro Define_Function2(!) several smaller auxiliary classes were made inner classes to their 'main' classes. (Examples: cQueueIterator --> cQueue::Iterator, sTopoNode --> cTopology::Node, etc; full list in include/ChangeLog.) Compatibility typedefs exist for old names but they will be removed at some point in the future.(!) refactoring on dynamic module creation: instead of modtype->buildInside(mod), one should now write mod->buildInside(), which is more natural. (Former syntax still works -- a cModuleType::buildInside() is still provided for backward compatibility). buildInside() delegates task to doBuildInside() (a new method), so it's doBuildInside() which should be redefined in subclasses, and also nedc generates now doBuildInside() code.(i) container objects are now more consistent in what they do when the requested object doesn't exist: * Convention 1: methods returning an object reference (e.g. cPar&) now always throw an exception if the object is not found. (Until now, some methods issued a warning and returned null reference, i.e. *(cPar*)NULL). * Convention 2: methods returning a pointer (e.g. cGate*) return NULL pointer if the object is not found. (Until now, some methods issued a warning and returned NULL pointer.) These conventions necessitated some changes (see next items):(!) par() of cModule and cMessage now throws an exception if parameter was not found. (Check for existence of a parameter before accessing it can now be replaced with try..catch if you want!)(!) cModule: cGate *gate() methods no longer issue a warning if the gate is not found, just return NULL.(!) cArray::remove(cObject *) and cQueue::remove(cObject *) methods now return NULL instead of the original pointer if the object was not found.(+) cArray: new set(cObject*) method adds optional hashtable-like behaviour to cArray: this method replaces the object with the same name in the array.(!) cSimulation changes: lastModuleIndex() renamed to lastModuleId(); del() renamed to deleteModule(); add() renamed to addModule()(-) cSimulation: operator[] deprecated (use module(int) method instead to access a module by id)(+) channels are now represented by real objects (subclassed from cChannel) rather than parameters in cGate. Channels can be assigned to connections via cGate's setChannel() method;(-) deprecated cGate's setDelay(), setError(), setDatarate(), setLink() methods (these attributes should be now set on the channel object).(-) cSubModIterator: operator[] deprecated (use operator()(int) method instead)(+) cGate: added isConnectedOutside() and isConnectedInside() utility methods(+) cGate: added connectTo() method (setFrom() and setTo() got deprecated, see next item)(-) deprecated cGate's setFrom() and setTo() methods (use connectTo() instead)(+) cMessage: added convenience methods for attaching objects to a message: addObject(), getObject(), hasObject(), removeObject().User interfaces:(!) Cmdenv: obsoleted omnetpp.ini entries: display-update=, verbose-simulation=; they should be replaced with simplified and more powerful options, see next item:(+) Cmdenv: introduced express-mode=yes/no (default: no) switch, with meaning similar to Tkenv (non-express mode: detailed information printed; express mode: only periodic status updates).(+) Cmdenv: in normal mode (express-mode=no), the following new ini file entries are understood: module-messages=yes/no (default: yes) printing module ev<< output on/off (as before) event-banners=yes/no (default: yes) printing event banners on/off; replaces verbose-simulation= message-trace=yes/no (default: no) log message sending (by send(),scheduleAt(), etc) and delivery on standard output(+) Cmdenv: in express mode, following new entries are supported: status-frequency=<integer> (default: 100000) print status update every n events (on today's computers, and for a typical simulation model, default value will produce an update perhaps in every few seconds) performance-display=yes/no (default: yes) print detailed (2-line) performance status(+) Cmdenv: new ini file option: autoflush=yes/no (default: no). Causes fflush(stdout) to be called after each output (event banner, status update, ev<< output, etc). This affects both express and normal mode.(+) Cmdenv: new ini file option: message-trace=yes/no (default: no). This causes logging each message sending (by send(),scheduleAt(), etc) and message delivery on the standard output; effective only in normal mode.(+) Envir (Cmdenv+Tkenv): integrated Steffen Sroka's Akaroa extension that supports multiple independent simulation runs. Akaroa can be activated by specifying [General] outputvectormanager-class=AkOutputVectorManager in the ini file. By default, all output vectors are under Akaroa control; the <modulename>.<vectorname>.akaroa=false setting can be used to make Akaroa ignore specific vectors. For more info see the Akaroa home page and the OMNeT++ documentation.(+) Envir (Cmdenv+Tkenv): added fname-append-host=true/false ini file setting. When turned on, appends the host name to the names of the output files (output vector, output scalar, snapshot files). This is useful when the simulation is run on multiple machines concurrently (parallel independent runs (Akaroa) or parallel/distributed simulation), and all running instances write to the same directory (e.g. shared via NFS mount). [Idea from Steffen Sroka's Akaroa extension](i) Tkenv: with "ring" layout, changed display order of modules from clockwise to the more natural counter-clockwise(!) Tkenv: changed positioning of vector modules with display string "p=x,y" (that is, with position, but no explicit layout parameter). "p=x,y" now ALWAYS means "p=x,y,exact", that is, the module is placed at (x,y). Before, "p=x,y" meant "p=x,y,row" or "p=x,y,ring" (where "row or ring" is a default layout) if the module was in a vector, and this caused counterintuitive displacements if a module was placed individually, because a (dx,dy) shift coming from the layout was superponed onto the position (x,y)).OMNeT++ 2.2 (May 2002)~~~~~~~~~~~~~~~~~~~~~~(+) The simulation kernel was made const-correct; because of this, older code may need changes (especially where one didn't use the Module_Class_Members() macro to define module classes.)(!) cModule's display string methods were reorganized: the displayString(int type) method was split into displayString() and displayStringAsParent(), eliminating the type parameter. Similar change was made to the set...() methods. (Old methods remained but are now deprecated.)(+) New methods: opp_nextrand(long& seed); opp_strlen(..); opp_strprettytrunc(..); opp_mkindexedname(..) (the latter was formerly called indexedname()).(+) fullName() no longer uses a static buffer; with fullPath(), it is possible to avoid static buffers by using the new fullPath(buffer,buflen) method.(+) In NED, an expression may now refer to a submodule parameter with the following syntax: submod.par or submod[index].par. The index may not be an expression itself.OMNeT++ 2.1 (May 2001)OMNeT++ 2.0 patch 1 (March 2001)OMNeT++ 2.0 (February 2001)OMNeT++ 2.0b5 (June 2000) No changes affecting code portability across versions.OMNeT++ 2.0b4 (May 2000)~~~~~~~~~~~~~~~~~~~~~~~~Simulation library:(!) The source was made 'const char *'-correct(-) deprecated TRUE/FALSE: the C++ true/false keywords should be used instead(+) multi-stage module initialization support via cModule's initialize(int stage) and int numInitStages() functions.(+) the send...() functions now have versions which take cGate* pointers.(+) sum() and sqrSum() members added to the statistics classes (cStdDev and subclasses)(+) isNumeric() member added to cPar(+) remove(cObject *) added to cArray.(+) functions added to cModule to facilitate navigating the module hierarchy: int findSubmodule(...), cModule *submodule(...) and cModule *moduleByRelativePath(...).User interfaces:(+) you may link more than one user interfaces into the simulation executable, and select one at runtime with the [General]/user-interface=Tkenv (or =Cmdenv) ini file option or the -u Tkenv (or -u Cmdenv) command-line argument to the simulation executable.(+) The per-module extra stack size needed by the user interface libraries can now be configured from the ini file: [Cmdenv]/extra-stack= and [Tkenv]/extra-stack= options.</pre></div> <hr size="1"><address style=""><small>Generated on Thu Mar 31 22:02:46 2005 for OMNeT++/OMNEST Simulation Library by<a href="http://www.doxygen.org/index.html"><img src="main_data/doxygen.png" alt="doxygen" align="middle" border="0"> </a>1.3.6 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -