-
Notifications
You must be signed in to change notification settings - Fork 170
Expand file tree
/
Copy pathChangeLog
More file actions
6851 lines (4288 loc) · 201 KB
/
ChangeLog
File metadata and controls
6851 lines (4288 loc) · 201 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2025-11-10 ------ omnetpp-6.3.0 released ------
2025-10-21 Andras Varga
* Follow cPar and cParImpl changes that allow the target parameter pointer
to propagate to NED functions.
2025-07-24 Andras Varga
* cSingleFingerprintCalculator: Implemented "b","g" fingerprints. In cEvent
and cMessage, parsimPack() was updated to support the new fingerprint
ingredients.
2025-07-17 Andras Varga
* parsimPack()/parsimUnpack() functions are no longer protected by #ifdef
WITH_PARSIM, allowing calls even if the simulation kernel was compiled
without parsim support (previously threw "parsim not available" exceptions).
2025-07-17 Andras Varga
* cCommBuffer classes moved here from parsim/, to make them available even
if the simulation kernel was compiled without parsim support. These classes
do not depend on parsim code, and have uses outside parallel simulation
(e.g. fingerprint).
2025-09-22 Andras Varga
* DemuxFilter: Implemented getDemuxLabel().
2025-07-14 ------ omnetpp-6.2.0 released ------
2025-07-09 Andras Varga
* cComponent: emit(): refine error message for undeclared signals.
Include NED type name in the error message. This is important because a
module might call emit() on *another* module, and the error message
previously only contained the context module, and not the one on which
the emit() was called.
2025-06-05 ------ omnetpp-6.2.0pre1 released ------
2025-04-18 Andras Varga
* cTopology: implemented extractFromNetwork() overload taking an std::function.
2025-03-21 Andras Varga
* cLCG32, cMersenneTwister: implemented str() to make seed/state visible at runtime.
2025-02-24 Levente Meszaros
* Added separate catch case for cTerminationException in order to
allow the debugger determining the type_info of the exception.
This is needed to allow lldb to skip the C++ throw exception breakpoint.
2025-02-21 Levente Meszaros
* Implemented getTerminationExceptionTypeInfoPointer().
2025-02-19 Andras Varga
* cArray: Fixed #1313 "cArray::addAt() throws segmentation fault when
using cArray::setCapacity()"
2025-02-10 Andras Varga
* Fixed #1308 "Error at network deletion after simulation finished"
<!> (omnetpp::cChannel)channel: Fatal: Direct deletion of a channel
object is illegal, use cGate's disconnect() or reconnectWith() instead;
ABORTING -- during network cleanup
This was due to cGate::getDisplayString() accidentally creating a
dangling channel object (for a gate that's not connected as a source
gate).
2025-01-14 Attila Torok
* cAbstractTextFigure: implemented getTextExtent() and getFontAscent().
2025-01-09 Attila Torok
* cLabelFigure: Make getBounds() take angle into account.
2024-12-10 Andras Varga
* Fix duplicated call to channels' preDelete() method during network
teardown.
2024-12-10 Andras Varga
* cModule: fix preDelete() being called multiple times during deleting
a network or compound module.
2024-12-13 Andras Varga
* cConfiguration: Fix crash caused by reading a config option before
having a cSimulation installed (i.e. when getSimulation()==nullptr).
Fixes #1271.
2024-10-08 ------ omnetpp-6.1.0 released ------
2024-09-27 Attila Torok
* Fix: Make the MPI implementation of parsim actually get built in
when available and requested, by adding missing inclusions of
platdep/config.h before any WITH_MPI (or WITH_PARSIM) macro usages.
2024-09-09 Andras Varga
* Added the "print-instantiated-ned-types" and "print-unused-parameters"
config options
2024-09-10 Andras Varga
* cEnvir: added getOutputStream()
2024-07-12 Levente Meszaros
* Fixed incorrectly sharing double parameters that have NaN values.
When setting one with a deep parameter assignment the other was also set.
See https://github.com/inet-framework/inet/issues/988
2024-06-18 Andras Varga
* SimTime: better error messages in arithmetic operations involving cPars
2024-06-10 Andras Varga
* NED functions: Documentation strings proofread
2024-05-28 Andras Varga
* SimTime: adjust error messages
- Use "simtime_t:" prefix.
- Use "Cannot represent x" instead of "x cannot be represented" or "Cannot convert x"
2024-03-25 Andras Varga
* SimTime: Follow/implement changes described in include/omnetpp/ChangeLog.
2024-05-06 Andras Varga
* SimTime: Follow/implement changes described in include/omnetpp/ChangeLog.
* implement @enum for string parameters
2024-04-07 Andras Varga
* cEnvir: Follow/implement changes described in include/omnetpp/ChangeLog.
2024-04-04 Andras Varga
* cResultRecorder: resolve "enumname" attr in the @statistic to "enum"
Given the following C++ code:
enum LinkState {UP, DOWN, FAULTY};
Register_Enum(LinkState, (UP, DOWN, FAULTY))
and NED:
@statistic[linkState](record=vector; enumname=LinkState);
The recorded vector will have the following attributes in the .vec file:
attr enumname LinkState
attr enum "UP=1, DOWN=2, FAULTY=3"
which can be utilized by the SeqChart, chart templates, etc.
If enumname is specified, the enum MUST exist and be registered.
Only one of the enum and enumname attrs may be present in a @statistic.
2024-04-04 Andras Varga
* cEnum cosmetics
2024-03-20 Levente Meszaros
* cSimulation: set CTX_SCHEDULER context in the takeNextEvent() method
that invokes the scheduler.
2024-03-20 Levente Meszaros
* Print the qualified name of instantiated NED modules; enable with
the -DPRINT_MODULE_TYPES_USED compiler option.
This is an internally used (non-public) feature, used by the automatic
project feature dependency discovery mechanism of INET.
Recompile OMNeT++ to enable/disable it.
2024-03-19 Andras Varga
* cPar: implement new resetEvalContext=true argument of parse().
If resetEvalContext=true, parse() now sets the evaluation context
to the owner component.
This fixes #1132 "Pattern assignment causes subsequently assigned parameter
expression to be evaluated in wrong context".
It was chosen to add the restoring code into parse(), because it is
called at multiple places, and almost always the intention is that the
expression should be evaluated in the context of the component that owns
the parameter.
2024-03-09 Andras Varga
* cOutVector: Follow/implement changes described in include/omnetpp/ChangeLog.
2024-03-07 Andras Varga
* VectorRecorder, StaticEnv: Follow cEnvir changes described in include/omnetpp/ChangeLog.
2024-01-18 Andras Varga
* cSingleFingerprintCalculator, cMultiFingerprintCalculator:
Follow/implement cFingerprintCalculator changes described in
include/omnetpp/ChangeLog.
2024-01-10 Andras Varga
* cResultFilter: Implement removeDelegate(), described in include/omnetpp/ChangeLog.
2024-01-18 Andras Varga
* cComponent: removeListener(): Keep order of listeners
2023-02-09 Andras Varga
* cValue: use UnitConversion::formatQuantity()
2023-01-16 Andras Varga
* cXMLParImpl, etc: made it possible to assign XML data to NED "object" parameters
Example:
**.config = xmldoc("config.xml")
Motivation: INET contains several NED parameters of type XML which we'd
like to port to JSON. However, we don't want to break existing models. If
a parameter of type "object" accepts both XML amd JSON, then we cam
achieve that by changing the types of those parameters from "xml" to
"object", and enhancing the module C++ implementation to be able to
process both. Then it would be up to the user when they port existing
models (omnetpp.ini etc) from XML to JSON data.
Details:
cObjectParImpl only accepts cOwnedObject and wants to own them, so we
need to make cXMLElement subclass from cOwnedObject, and duplicate the
XML trees from the XMLDocCache when assigning the parameters. Hence the
following changes:
- cXMLElement changed to subclass from cOwnedObject
- its tagName is now stored in the object name (cNamedObject)
- added dup(), dupTree()
- use dupTree() in the xmldoc() and xml() NED functions
- cXMLParImpl: make act like cObjectParImpl, i.e. own its cXMLElement
- cXMLParImpl: if it would not be able to take() the object (owner is
not a soft owner, see isSoftOwner()), it calls dupTree() to clone
it -- this is needed for assignent of XML params among themselves
in NED to work (like foo=xml(...); bar=foo;) like it did before.
(Needed for backward compatibility in INET.)
- XMLDocCache now also owns the XML trees
cXMLParImpl code is now very similar to cObjectParImpl.
Further low-hanging fruits:
- cXMLElements ctor and setters could be made public
- XmlDocCache may be cleared at any time, because all XML trees
it returns are now duplicated.
2023-01-16 Andras Varga
* cObjectParImpl: use inherited&refined deleteOld() instead of
deleteExpression(). cParImpl::deleteOld() implies deleting the expression,
plus more like clearing the srcLoc info.
Move deleteObject() call out of doSetObject(), and into deleteOld()
2023-09-28 Andras Varga
* cBoolParImpl,etc: factored out duplicated deleteOld() functions to
base class
2023-01-10 Andras Varga
* cPar to remember the file/line location where it was assigned from
New cPar methods:
- getSourceLocation()
- getBaseDirectory()
Latter is just a new getter for an existing private field.
2022-03-25 Andras Varga
* Added componentId() NED function
2022-11-21 Andras Varga
* Fix cDisplayString::doParse() bug remaining after d8ce17e5
This fixes envir/qtenv_displaystringaccess_1.test
2022-08-01 Attila Torok
* cDisplayString: doParse(): Also swallow the trailing backslash.
To make it consistent with the disappearing mid-string backslashes. The
trailing one remaining there was probably accidental.
2021-07-28 Andras Varga
* cDisplayString: Don't split values on commas inside ${...}
expressions while parsing.
And don't escape them when assembling back into a string. Also
considering the $$ escape sequence.
2022-05-16 Attila Torok
* Use C++ headers instead of C ones, e.g. <cstdlib> instead of <stdlib.h>
2022-05-21 Andras Varga
* SimTime: initialize powersOfTen[] statically
2022-05-09 Andras Varga
* cKSplit: Follow adding const modifiers.
2022-05-10 Andras Varga
* CodeFragments: Implement storing src code too, for debug purposes
2024-02-01 ------ omnetpp-6.0.3 released ------
2024-02-01 Rudolf Hornig
* fix #973: handle cPar::setValue() for double values correctly
2024-01-10 Andras Varga
* Fix cLCG32 regression (self-test failure) introduced in omnetpp-6.0pre13
2024-01-09 Rudolf Hornig
* Performance: improve cModule::isSimple() speed by replacing dynamic_cast
usage by use of virtual methods.
2024-01-05 Rudolf Hornig
* Performance: In cTemporaryOwner, create base of class cSoftOwner with empty
name instead of "tmp".
2024-01-05 Rudolf Hornig
* Performance: Speed up the cMessage::isStale() call by avoiding a dynamic_cast.
It is needed because isStale() is called at least once on every message
delivery,
2024-01-09 Rudolf Hornig
* Performance: cSoftOwner: avoid pre-allocating array for child objects as most
of the time it is not needed.
2023-10-06 ------ omnetpp-6.0.2 released ------
2022-10-25 Attila Torok
* Fix build with DEVELOPER_DEBUG defined
2022-04-21 Andras Varga
* Fix missing initialization of some result filters
2023-06-06 Zoltan Bojthe
* cValueArray::asStringVector(): Remove unnecessary back and forth
conversions. The original code converted std:string --> cstring -->
std::string.
2023-07-17 Zoltan Bojthe
* cDatarateChannel: fixed issue 1012: clear finished transmissions from
txList.
2023-09-05 Andras Varga
* Fix #972 "intuniform() has broken bounds check"
intuniform(rng, std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::max())
resulted in "Interval is greater than RNG range" error due to wrong
comparison.
2023-08-22 Andras Varga
* cEventHeap: added checkHeap(). Not called anywhere, but available in case
FES debugging is needed.
2023-08-18 Andras Varga
* cEvent: disallow changing the arrival time and scheduling priority
when scheduled. They are part of the comparison key, so changing them
could change event ordering i.e. break the heap data structure of the
FES (cEventHeap).
setPriority(): check if event is scheduled, and throw exception if so.
setArrivalTime(): it is invoked quite often (on average at least once
per simulation event), so we use ASSERT() in order not to impact runtime
performance in release mode builds
2023-04-16 Andras Varga
* Fix startup error complaining about arg count of hypot()
<!> Error during startup: Register_Function() or cFunctionType: attempt
to register function "hypot" with wrong number of arguments 2, should be
3
Observed under gcc 11.3.0, ubuntu 22.04
2023-04-16 Andras Varga
* Fix fgets/fread "unused result" warnings
2023-04-06 Andras Varga
* Work around the fact that C++ doesn't allow throwing from destructors.
Introduced a panic() function and ASSERT_DTOR() instead.
2023-03-30 Andras Varga
* Fix warnings.
2022-09-01 ------ omnetpp-6.0.1 released ------
2022-08-26 Andras Varga
* Fix: proper namespace resolution for C++ types in @signal declarations.
This fixes signals_namespace1.test.
2022-08-17 Andras Varga
* Feature: added cProperty::getValueOriginFile(), getValueOriginType()
2022-06-17 Attila Torok
* Check for context component in all built-in NED functions that need it,
and throw an exception if there is none, instead of just crashing. This
is needed when evaluating expressions in display strings of messages.
2022-05-18 Attila Torok
* build: Disable implicit make rules by setting .SUFFIXES to empty
* Fix build by including <memory> for std::unique_ptr
2022-04-11 ------ omnetpp-6.0 released ------
2022-04-07 Andras Varga
* intuniform(): ensure range (b-a) is supported by the RNG; and avoid
spurious signed<->unsigned conversions which are supposed to be unspecified behavior.
2022-04-07 Andras Varga
* intuniform()/intuniformexcl): enforce a<=b or a<b
2022-04-06 Andras Varga
* cDynamicExpression: fix memory leak
2022-04-05 Andras Varga
* cKSplit: quick fix for memory leak in iteratorToCell()
2022-04-05 Andras Varga
* Reworked the initialization of the global cSoftOwner instance
globalOwningContext, due to issues found by UndefinedBehaviorSanitizer.
The problem was that globalOwningContext sort of wanted it insert itself
into its own child list while being constructed. It sort of worked but
the sanitizer sniffed out something was off.
The reworked solution employs a separate dedicated constructor which
avoids the owningContext->doInsert(this) call. internal::Void is a type
solely made to distinguish the dedicated constructor from other
constructors by giving it a different signature.
2022-04-05 Andras Varga
* Fix invalid value for LogLevel error from sanitizer
2022-03-19 Andras Varga
* Resolve lifecycle listener crash on shutdown.
2022-04-05 Andras Varga
* Replace memcpy() with std::copy_n(), to avoid calling memcpy() with
nullptr as 2nd arg, even with size=0.
2022-04-05 Andras Varga
* SimTime: avoid overflow in fillPowersOfTen()
2021-12-07 Andras Varga
* Result recorders: suppressed the ", vector" suffix from titles of
vector results. Also "histogram" and "stats". They don't need to be added,
as they are obvious, they simply echo the result item type.
2021-11-30 Andras Varga
* cResultRecorder: save display names and recording mode as result
attributes and "recordingmode", "moduledisplaypath".
2021-12-03 Andras Varga
* Move displayName field from cModule to cComponent
2021-11-25 Andras Varga
* cModule: fix: allow accessing module parameters from the "display-name"
config options.
2021-11-25 Andras Varga
* cConfiguration: Allow expressions in config option values to use
NED operators, module parameters and other NED expression features.
Immediate motivation: to be able use e.g. index in display-name:
**.app[0..3].display-name = "cbr-" + string(index)
2021-11-17 Andras Varga
* Result filters: Let the "count" and "sum" filter to record an
initial zero value.
- reuse cResultFilter::getInitialDoubleValue() for that
- timestamp must be the end of the warmup period, otherwise plot will lie
- emit after network building is done
- dynamically created modules must be taken into account
2021-11-24 Andras Varga
* SumPerDurationFilter: fix getSumPerDuration() behavior when invoked
during warmup period.
2021-11-08 Andras Varga
* cModule: displayName fix: getDisplayName() docu promises nullptr if unset
2021-11-04 Andras Varga
* cPar: Implemented isMutable() and the mechanism behind the new @mutable
property. @mutable may annotate module/channel parameters in NED, and has
the effect that non-mutable parameters (those without @mutable) cannot be
changed at runtime. It is recommended to only mark those parameters with
@mutable whose change actually takes effect during simulation, e.g. are
handled in handleParameterChange() methods in simple modules. The presence
of @mutable conveys the info which parameters can be tweaked to users of the
module.
Add parameter-mutability-check=false to omnetpp.ini to disable the check
for models that don't have the necessary @mutable annotations added.
2021-07-11 Andras Varga
* Follow change: moved internal classes to the omnetpp::internal namespace.
2021-11-02 Andras Varga
* Nits related to ownership handling:
- cObject::yieldOwnership() shouldn't crash in the "throw" statement
when newOwner==nullptr
- Set name of cTemporaryOwner objects to "tmp"
- Set name of globalOwningContext object to "globalOwningContext"
- etc.
2021-11-04 Andras Varga
* Introduced cValueContainer as common base class for cValueHolder,
cValueArray, cValueMap.
2021-11-02 Andras Varga
* cValueMap/cValueArray: revert dup() to behave the same way
cArray/cQueue does, i.e. only duplicate those objects that are
owned by the cloned container. This doesn't make much of a difference,
but some NED expressions that have been accepted now cause an error.
You need to dup the VERY object that belongs to some other owner --
dupping its container is NOT good any more. For example:
foo = {};
bar = dup([foo,foo]); // error
bar = [dup(foo), dup(foo)] // OK
2021-11-04 Andras Varga
* cObjectParImpl: added hint to "not owner" error message: "Try cloning it
using the dup() function!"
2021-11-04 Andras Varga
* Make unused parsimPack()/parsimUnpack() to be less of a noise
2021-11-03 Andras Varga
* getModuleByPath() / findModuleByPath() moved to cComponent
2021-11-03 Andras Varga
* cResultFilter/cResultRecorder: suppress expected warnings
2021-11-01 Andras Varga
* cObjectParImpl: More thorough check of the assigned content
wrt object ownership. Only fully owned cOwnedObjects are allowed.
2021-11-01 Andras Varga
* Added the expr() operator to NED. expr() can be used to specify
an expression with free variables. For example, assigning expr(x+y)
to a module parameter of type object allows the module implementation
to query the expression (it will be a cOwnedDynamicExpression object),
bind the free variables (e.g. x=3,y=2), and evaluate it. The expr()
operator is useful for e.g. implementing arbitrary packet filters.
* Added the new cOwnedDynamicExpression class, needed for expr().
2021-10-27 Andras Varga
* Added cValueHolder.
* cValueArray, cValueMap: Fix: errors for stored non-cObject pointers
2021-10-18 Andras Varga
* Fix call to wrong (deprecated) cResultFilter::init() method in
StatisticSourceAstTranslator.
2021-10-11 Andras Varga
* Added MergeFilter, a cResultFilter that allows multiple inputs,
and multiplexes them onto its singe output. It is available (as the
merge() function) in the source= part of @statistic, but not in the
record= part.
2021-10-08 Andras Varga
* Follow change: cResultFilter, cResultRecorder init() args merged
into a Context struct.
2021-10-06 Andras Varga
* Follow changes: Introduction of txid_t and msgid_t; changes in the cRNG
interface.
2021-09-23 Andras Varga
* Component parameters (specially JSON values) made more editable
2021-09-30 Andras Varga
* sim_std.msg: removed some @descriptor(readonly) annotations
2021-09-30 Andras Varga
* sim_std.msg: fix: simtime_t fields were not editable.
Also made other @opaque classes editable: cFigure::Point,
cFigure::Rectangle, cFigure::Transform, cFigure::Color, cFigure::Font
2021-09-22 Andras Varga
* DemuxFilter: move demux label to the front of the result name string
2021-09-22 Andras Varga
* Fix: according to its descriptor, cObject didn't have a "name" field
2021-06-09 Attila Torok
* cSimulation: Add sanity check to prevent reentrant event execution
2021-09-13 Andras Varga
* Fix bug introduced in 6.0pre12: "undisposed object" message didn't
contain the full path of parent module, only its name.
2021-07-29 Andras Varga
* cProperty: implement changes, see include/ChangeLog for details.
2021-07-16 Andras Varga
* sim_std.msg: added @toValue()/@fromValue annotations
2021-07-20 Andras Varga
* cClassDescriptor: added getFieldValue()/setFieldValue() to allow
accessing fields using cValue
2021-07-08 Andras Varga
* cValue changed to hold any_ptr instead of cObject (see include/ChangeLog
for details).
2021-07-17 Andras Varga
* cPar: added cValue-based generic access: getValue(), setValue()
021-07-08 Andras Varga
* cHistogram: added str() to Bin, and use it in sim_std.msg
2021-07-07 Rudolf Hornig
* build: copy sim_std_m.h to the include/omnetpp directory as it is
now #included into <omnetpp.h>
2021-07-06 Andras Varga
* sim_std.msg adjustments (over multiple commits
- cplusplus(cc) part: move stuff from .h to .cc because it's only needed
by the class descriptors
- mark non-polymorphic classes with @polymorphic(false); this results in
simpler toAnyPtr() code (i.e. without the dynamic_cast part)
- cResultListener inheritance fixed to match reality
- use @castFunction(false) to turn off generating fromAnyPtr/toAnyPtr
functions for some classes that have it defined elsewhere
- wrong base class was given for a few classes
- StringVector was unused, removed
2021-07-06 Andras Varga
* Port the codebase to any_ptr:
- "if (p)" changed to "if (p != nullptr)" everywhere, because any_ptr
intentionally has no bool conversion, but can be directly compared
against nullpr.
- use fromAnyPtr()/toAnyPtr() everywhere for conversion from/to any_ptr
2021-06-28 Andras Varga
* Follow change: cClassDescriptor now uses any_ptr instead of void*.
2021-06-23 Andras Varga
* Added implementation of any_ptr.
2021-07-01 Zoltan Bojthe
* cValueArray: add asIntVectorInUnit(), asDoubleVectorInUnit()
functions
2021-07-01 Zoltan Bojthe
* cValueArray: fixed copy-paste bug (type mismatch)
2021-06-23 Andras Varga
* Error messages reworded to be more precise:
"Cannot evaluate expression for parameter '%s'" --> "Cannot assign
parameter '%s'"
The old message was misleading, because often the expression itself evaluates
just fine, only the result is of the wrong type and cannot be assigned to
the parameter.
2021-06-07 Attila Torok
* Add proxy class descriptor for WATCH_[OBJ|PTR] to avoid crashes
The original solution involving:
virtual cClassDescriptor *cWatch_cObject::getDescriptor() const override
{return r.getDescriptor();} didn't work because the cWatch subclasses
lied that they themselves can be described by the descriptors of the
watched objects, which is not true.
And since there is often a cast through a void* in the descriptor APIs,
this mismatch went unnoticed, and operated essentially as a
reinterpret_cast, so mostly garbage was shown on the GUI as field values,
until eventually a crash occurred.
See test/anim/watch for an example.
2021-06-23 Andras Varga
* cModule: implemented addSubmodule() method
2021-06-23 Andras Varga
* cModuleType: createScheduleInit() adjusted to allow creating
vector elements
2021-06-23 Andras Varga
* cModuleType: create() merge two overloads
2021-06-23 Andras Varga
* cModule: addGate(): creation of gate vectors moved out to
addGateVector()
2021-06-18 Andras Varga
* cStringPool removed
2021-06-20 Andras Varga
* cStaticFlag refactoring
2021-06-16 Andras Varga
* cNedNetworkBuilder: report location for evaluation errors in
parameter values set from NED files
2021-06-17 Andras Varga
* Follow changes in 'include/': Use opp_pooledstring/opp_staticpooledstring
throughout the library.
2021-06-12 Andras Varga
* Follow changes in 'include/': added opp_pooledstring, opp_staticpooledstring
2021-06-13 Andras Varga
* cParImpl::parse() to store the expression's origin (file:line) in
cDynamicExpression so we can report it on evaluation errors.
2021-06-15 Andras Varga
* cRuntimeError: Implemented ctor for helping chaining exceptions
2021-06-15 Andras Varga
* cException modernized
2021-06-09 Andras Varga
* Implemented cConfiguration::KeyValue::getSourceLocation(),
so we can report location for parse errors in values coming
from ini files.
2021-06-18 Andras Varga
* cModule: simplify storing fullPath.
2021-06-18 Andras Varga
* cNamedObject: fix setName(getName())
2021-06-13 Andras Varga
* nedfunctions: get() NED function refined
2021-06-17 Andras Varga
* Follow header change: more methods made const in cPatternMatcher,
cMatchExpression and cTopology
2021-06-17 Andras Varga
* Fix: @omittedTypename didn't work if interface was not in the
default (=toplevel) package
2021-06-11 Andras Varga
* cValueArray, cValueMap: dup() to make an "even deeper" copy (clone
ALL objects). This is necessary for the following NED to work:
object a = {};
object b = dup([a]);
2021-06-09 Andras Varga
* nedfunctions: added get(), size(), dup() NED functions
2021-06-10 Andras Varga
* nedsupport: search for function/methods by the number of args
On one hand, this allows overloads by the number of args.
On the other hand, we cannot be as specific with error messages as
before. Instead of
"NED function '%s' expects %d arguments",
we'll report
"A '%s' function that accepts %d argument(s) was not found",
regardless of whether a function with that name but accepting a different
number of args exists or not.
2021-06-10 Andras Varga
* cNedFunction: added search by name AND accepted number of args
New functions:
- bool acceptsArgCount(int argCount)
- static cNedFunction *find(const char *name, int argCount)
- static cNedFunction *get(const char *name, int argCount)
2021-06-10 Andras Varga
* NED: implemented Universal Function Call Syntax
f(x,..) and x.f(...) are now equivalent. All NED functions that have at
least one argument can be used with the method syntax as well.
See https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax
2021-06-08 Andras Varga
* Allow 'object' as NED function arg type and return type
Disallow objects shared among parameters, because we don't know their
lifetimes.
Example:
object a = [1,2,3];
object b = a;
then set 'a' to nullptr --> accessing 'b' would crash!
2021-06-09 Andras Varga
* NED builder: allow the body of a parametric submodule to assign
apparently nonexistent parameters.
Example:
app: <default("FooApp")> like IApp {
parameters:
address = parent.address;
sleepTime = 1s;
}
If FooApp has a sleepTime parameter but IApp does not, then running with
the defaults is fine, but changing to another IApp type that does NOT
have a sleepTime parameter will stop the simulation with an error.
Solution: inside a parameteric submodule type, we simply ignore parameter
assignments that assign nonexistent parameters.
2021-06-09 Andras Varga
* NED builder: fix parametric channel type with type given as default
expression. The expression text was mistakenly interpreted as parameter name.
Example:
a.out++ --> <default(channelType+"")> like IFooChannel --> b.in++;
It would give the following error:
Error: Unknown parameter '"bubu"+channelType+""'
2021-06-09 Andras Varga
* nedsupport: give name strings to cValueArray and cValueMap objects
created for JSON arrays and maps: "array%d", "map%d". This can help
identify them in error messages, etc.
2021-06-11 Andras Varga
* cValueMap: fix copy ctor and dup()
2021-06-09 Andras Varga
* cValue: operator==() added
2021-06-08 Andras Varga
* cDynamicExpression: fix an ownership issue during evaluation
2021-06-09 Andras Varga
* cComponentType: delete shared cParImpl instances at the end of the
simulation. Previously they were only deleted on program exit.
2021-06-07 Andras Varga
* nedsupport: exists() NED operator to accept more forms.