Commit Graph

375 Commits

Author SHA1 Message Date
Stefano Avallone
543da6092a various: (fixes #2668) Make template classes use NS_LOG_* macros 2017-06-06 11:18:07 +02:00
Christoph Döpmann
652291722f core: (fixes #2658) Avoid unexpected TracedValue type conversions 2017-06-03 11:42:01 -07:00
Tommaso Pecorella
8dc24d2c1f minor doxygen updates 2017-05-10 02:17:58 +02:00
Alexander Krotov
2327498f91 core: Assert that probability is valid in EmpiricalRandomVariable::ValueCDF::ValueCDF 2017-04-07 20:27:21 +03:00
Alexander Krotov
e570129307 core: Check that CDF covers the whole distribution in EmpiricalRandomVariable::Validate 2017-04-07 20:23:34 +03:00
Alexander Krotov
bf762f52d6 core: Check that CDF is not empty in EmpiricalRandomVariable::Validate () 2017-04-07 20:22:02 +03:00
Alexander Krotov
596e49504e core: Mark members with m_ in EmpiricalRandomVariable class 2017-04-07 20:15:00 +03:00
Alexander Krotov
dd3a4d2a43 Use Vector{2,3}D.GetLength () 2017-04-05 10:56:05 +03:00
Alexander Krotov
67162e4935 core: Implement operator+ and operator- for Vector{2,3}D 2017-04-04 19:39:00 +03:00
Alexander Krotov
2d447bfeba core: Implement Vector{2,3}D::GetLength () 2017-04-04 19:31:26 +03:00
Alexander Krotov
ddf07b01ca core: Trim whitespace in vector.{cc,h} 2017-04-04 18:55:55 +03:00
Alexander Krotov
5c2f7376b6 core: s/a exponential/an exponential/ 2017-03-26 13:44:35 +03:00
Alexander Krotov
1a87bdd630 core: Fix order of command line argument parsing
It was accidentally reversed in b969c544fae1, so first arguments had
higher precedence than last.
2017-03-22 11:26:46 +03:00
Stefano Avallone
dfe1ed1619 traffic-control: Fix doxygen warnings 2017-03-09 17:17:35 +01:00
Stefano Avallone
6fef34be47 network: Convert Queue into a template class 2017-03-08 18:01:29 +01:00
Tommaso Pecorella
b289c489ae core: simplify ObjectBase indentation 2017-02-18 12:34:44 +01:00
Alexander Krotov
4011ea0c4e core: avoid unnecessary "ns3" in include path 2017-02-27 20:52:43 +03:00
Alexander Krotov
8af471427c core: Do not use `this' in nonmember function 2017-02-27 20:46:09 +03:00
Piyush Aggarwal
03dcf5fa45 core: clean up indenting (whitespace changes only) 2017-02-16 16:01:25 -08:00
Piyush Aggarwal
20c0d2f121 core: fix static code analysis warning (thanks to Natale Patriciello)
object-base.cc: fixed “value stored but never read” in

simulator.cc: false positive warning “called object pointer is null”.
The assignment in previous block should have been recognized.

object.cc: false positive.
2017-02-16 16:00:08 -08:00
Tom Henderson
e575508919 core: (fixes #2490) Change logging timestamp precision 2017-01-22 18:54:49 -08:00
Tommaso Pecorella
8f629f0d18 flow-monitor: doxygen updates (thanks to Robert Ammon) 2017-01-22 16:50:12 +01:00
Danilo Abrignani
5eb935c41f core: MakeEvent() and Schedule() to accept 6 arguments 2017-01-19 20:49:17 +01:00
Alexander Krotov
05d6ac4a56 core: implement operator < for Vector3D and Vector2D
Part of ongoing effort to stop comparing Ptrs, see bug #2595
2016-12-26 08:19:50 +03:00
Robert Ammon
5c28d36714 documentation: (fixes #2583) Correct doxygen warnings and errors 2016-12-18 07:10:25 -08:00
Alexander Krotov
5bd59266e9 core: expand tabs and remove trailing whitespace in int64x64.cc 2016-12-14 11:56:08 +03:00
Tommaso Pecorella
027deedd50 core: provide ParetoRandomVariable::GetScale implementation 2016-11-09 15:23:34 +01:00
Tommaso Pecorella
bec49d392d core: (fixes #2513) - Deprecates Mean attribute in ParetoRandomVariable 2016-11-08 01:42:06 +01:00
Tommaso Pecorella
846709fff0 core: (fixes #2447) Attribute system doesn't complain in case of errors
Patch to AttributeHelper by Tommaso, extended to ObjectFactory by Peter
Barnes, and changed to use abort.h so that checks are made in all builds
2016-09-12 12:21:53 -07:00
Peter D. Barnes, Jr.
4f64f9e28a core: (fixes #2344) Attribute names can't have spaces 2016-09-10 14:12:52 -07:00
Peter D. Barnes, Jr.
b46530a6b6 core: (fixes #2149) Deprecated Attributes and TraceSources
Patch based on earlier patch proposal from Natale Patriciello
2016-09-10 14:08:54 -07:00
Tom Henderson
4d677cb2e7 [build] Partial fix for warnings revealed by changeset 865b0fc5e241
'Enable -Wstrict-overflow for G++ >= 4.8.1' revealed some issues.
2016-09-04 21:56:48 -07:00
Peter D. Barnes, Jr.
18e8001aaa [core] Fix compilation errors from new NS_DEPRECATED function macro in r 12293 [57597d3fb31e]
Remove function macro and return to simple tag.  GCC can have the
attribute in front of the function declaration, matching Windows.
2016-09-03 18:13:21 -04:00
Peter D. Barnes, Jr.
516b8b2ff9 [core] Document CommandLine feature request. 2016-09-03 00:56:53 -04:00
Peter D. Barnes, Jr.
d58a3b8863 [core] Improve GlobalValue documentation. 2016-09-03 00:52:50 -04:00
Peter D. Barnes, Jr.
ba7ae20fb5 [core] Fix compilation error introduced in r12295 [e1451373c0b6] 2016-09-02 23:12:36 -04:00
Peter D. Barnes, Jr.
c36606a7b9 [core] TypeId::LookupTraceSourceByName overload to return TraceSourceInformation 2016-09-02 22:49:14 -04:00
Peter D. Barnes, Jr.
8d7160380e DES Metrics implementation. 2016-09-02 22:40:07 -04:00
Peter D. Barnes, Jr.
a165e2edec [core] Refactor type-id.cc logging 2016-09-02 22:13:51 -04:00
Peter D. Barnes, Jr.
71902a017a Use new NS_DEPRECATED function macro 2016-09-02 22:06:27 -04:00
Peter D. Barnes, Jr.
b5b2b5398a [core] Show string args as quoted strings in NS_LOG_FUNCTION 2016-09-02 21:47:53 -04:00
Peter D. Barnes, Jr.
25c02db88c [core] restore NS_DEPRECATED functionality 2016-09-02 21:46:31 -04:00
Peter D. Barnes, Jr.
84cd2d224c [doc] ref-count-base files 2016-09-02 21:43:51 -04:00
Peter D. Barnes, Jr.
cc9ea12573 core: refix problem with temporary variable
This amends r12238 (271042c52437)
2016-08-26 09:46:16 -07:00
Peter D. Barnes, Jr.
275d52f141 core: fix problem with temporary variable
With the upcoming des-metrics feature, the temporary string created
from argv[0] for the argument to Split triggers a bizarre overwrite.
Making the temporary explicit, with block scope as arg0, fixes this.
2016-08-04 13:17:00 -07:00
Tom Henderson
377ba18313 core: (fixes #2452) Add Object::IsInitialized method 2016-07-20 08:35:50 -07:00
Peter D. Barnes, Jr.
a50af0a233 [core] Document the meaning of Simulator context.
Use a symbol Simulator::NO_CONTEXT instead of hardcoded value.
2016-07-01 16:07:30 -07:00
Peter D. Barnes, Jr.
08ff4e78cf [core] Use standard arguments args, argv. 2016-06-16 16:11:31 -07:00
Tom Henderson
582231c37d core: Improve RngSeed and RngRun documentation 2016-06-10 14:50:07 -07:00
Alexander Krotov
79beb0d9ab core: (fixes #1939) Make sure that an object is not aggregated twice.
When aggregating objects, it was checked that objects of the same type
are not aggregated.  However, the check was performed only against the
primary type of the "other" object, but not against the types of objects
aggregated to the "other" object. This patch fixes the issue.
2016-04-10 11:50:22 +02:00