Commit Graph

1482 Commits

Author SHA1 Message Date
Peter D. Barnes, Jr
eb432c90a5 core: int64x64_t GetInt() and Round(), with test cases
Merge of !473
2020-11-27 16:54:51 -08:00
Tom Henderson
7c8776111c core: Update Doxygen for ShowProgress class 2020-10-18 07:42:27 -07:00
Tom Henderson
9bfa3bd724 bindings: Rescan all APIs 2020-10-03 14:21:45 -07:00
Tommaso Pecorella
eeadfbb182 core: (fixes !426) Align TimeWithUnit printing to the "normal" double behaviour
The new time printing format uses "automatic" promotion to scientific
notation - just like for normal doubles.
2020-09-30 08:37:41 +00:00
Tom Henderson
a7df3b6a2e core: Add NS_DEPRECATED_3_32 tag 2020-09-29 09:42:11 -07:00
Tom Henderson
909193081e core: Rescan API definitions 2020-09-27 17:57:53 -07:00
Mathew Bielejeski
cbf04e69e1 build: (fix #259, merge !411) Minimize rebuilds due to git repository update
* Add --enable-build-version option to control build version feature
 * Disable build version when --enable-build-version is not specified
 * Update getting started tutorial to reflect the new build option
2020-09-27 16:20:50 -07:00
Peter D. Barnes, Jr
b90d4dee6d core: Move Set (void) to .h to terminate recursion. 2020-09-26 08:44:08 -07:00
Tommaso Pecorella
9938e70cb7 core: fix test linking Address from network module 2020-09-22 11:57:56 +02:00
Tommaso Pecorella
35271f301f core: fix AttributeContainerValue::Get 2020-09-22 11:57:16 +02:00
Jared Dulmage
d244597a2b Documentation, better conformance to AttributeChecker conventions
Both PairChecker and AttributeContainerChecker factory functions
modified to return more generic AttributeCheckers similar to other
attribute types. By removing the templated return type, the internal
templated classes become necessary to define checkers for each
templated type. This follows the pattern in PointerChecker and
ObjectContainerChecker.

The pair-value-test-suite and attribute-container-test-suite were
amended to account for the changes in the checker factories. All
tests continue to pass.

Plenty of documentation was added to PairValue and AttributeContainerValue
and I also removed some dead code.
2020-09-20 15:33:38 -07:00
Jared Dulmage
c8f2bf250e Addressed comments for nsnam/ns-3-dev MR 91
- Removed unnecessary files src/core/model/{attribute-container,pair}.cc
- Removed 'explicit' modifier to PairChecker
- Modified output stream operator for PairValue; update PairValueTestCase
- Updated src/core/wscript to latest master
- Added Pair and AttributeContainer to utils/print-introspected-doxygen.cc
2020-09-20 14:52:02 -07:00
Jared Dulmage
9392a452d8 Copyright and contact to Caliola Engineering, LLC 2020-09-20 14:52:02 -07:00
Jared Dulmage
643378b816 Removed extended-attribute-helper.h
This file should be part of another merge request.
2020-09-20 14:52:02 -07:00
Jared Dulmage
4f4c893e52 STL container and pair attributes
This commit adds the ability to read / write attributes corresponding
to STL containers or pair structures.  Testcases are included and
demonstrate how to add container or pair member variables as
attributes to your class.
2020-09-20 14:52:02 -07:00
Stefano Avallone
787a711ca3 core: Pass an arbitrary number of arguments to ObjectFactory::Set 2020-09-15 09:40:30 +02:00
Tom Henderson
fa9e6cc531 core: (fixes #233) Align Config::ConnectWithoutContext with Config::Connect 2020-09-12 15:20:03 -07:00
Tom Henderson
8c6fb7d420 bindings: Rescan all APIs 2020-09-05 13:04:28 -07:00
Peter Barnes
35350ab51d core: (fixes #210): add simulation time and node printers to NS_FATAL... 2020-09-03 08:04:02 +00:00
Peter Barnes
c7c2e76d41 core: (fixes #247) unlimited arguments in MakeEnumChecker 2020-08-24 18:50:07 +00:00
Jordan Dorham
81b740721f Merge pull request #15 in S3/s3-simulator from S3-19-time-arithmetic-implement to develop
Squashed commit of the following:

commit 1162a5c942c7c2a366883a3b4f5f47feface9344
Author: Peter D. Barnes, Jr <barnes26@llnl.gov>
Date:   Wed Mar 18 16:44:50 2020 -0700

    core: assert Time > 0 in operator< (Time, EventId) refinement

commit 83161ebb6f56fd467498528a5b54f2d6ef1bceba
Author: Peter D. Barnes, Jr <barnes26@llnl.gov>
Date:   Wed Mar 18 15:59:38 2020 -0700

    core: check-style nstime.h

commit d8a0c906997bd7608e19dfd93484477c9b121a67
Author: Peter D. Barnes, Jr <barnes26@llnl.gov>
Date:   Wed Mar 18 15:56:34 2020 -0700

    core: assert Time > 0 in operator< (Time, EventId)

commit 466e66031b6f26e7aaede00be7d8c692382f2b04
Author: Peter D. Barnes, Jr <barnes26@llnl.gov>
Date:   Wed Mar 18 14:41:02 2020 -0700

    core: check-style

commit 5fd40536a23ef683d9eb673a45b492efbe175750
Author: Peter D. Barnes, Jr <barnes26@llnl.gov>
Date:   Wed Mar 18 14:21:33 2020 -0700

    core: operator<(Time, EventId), and doxy
2020-08-20 08:43:40 +00:00
Mathew Bielejeski
5d13b2b80c build: Create version.cache file with dummy data when git tags are absent
* Change version tag and ClosestTag values to be ns-3.xx
* Fix string values to have the proper format
* Allow check-version to proceed even if git task is not present
* Remove git package requirement from Docker containers
* Create git_ns3_version_info task only when HAVE_NS3_REPO is defined
* Change tag glob from ns-3* to ns-3.[0-9]*
* Use version tag to make output consistent with waf --check-version
2020-08-18 15:39:34 -07:00
Mathew Bielejeski
b99295e119 Filter out program version text from command-line-example output
Updated reflog to reflect change in command-line-example output
2020-08-14 14:14:43 -07:00
Mathew Bielejeski
32e95f8228 Make build information accessible by programs by extracting data from the local git repository (or a standalone file if a git repository is not present).
Changes

* Adds a new class named Version to the core module
* Adds a template file to the core module named version-defines.h.in
* Adds --PrintVersion and --version arguments to the CommandLine class.
* Creates a new waf tool which queries the local git repository and extracts build information from itCreate a waf task to extract version information from git repository
2020-08-11 20:20:05 +00:00
Peter D. Barnes, Jr
0af2e32fbe core: (fixes #220) refactor random-variable-stream-test 2020-07-31 21:55:37 +00:00
Ryan Mast
e5a8cf811b core: Replace missed uses of I with cairo_I 2020-07-01 09:53:05 -07:00
Tom Henderson
77f3d96ad8 Fixes for clang compilation 2020-06-08 17:28:07 -07:00
Steven Smith
dded72e02e build: (fixes #217) Guard compilation of example used as a test
* Added documentation to ExampleAsTestSuite on the need for this guarding
* Updated with Peter's patch for examples-as-test placeholders in wscripts
2020-06-08 09:35:50 -07:00
Tom Henderson
5eea3c0270 bindings: Rescan all APIs 2020-06-07 11:38:26 -07:00
Tom Henderson
a1396b2cc6 bindings: Remove statements with implicit Time conversions 2020-06-07 11:37:46 -07:00
Tom Henderson
d3e20db1e8 core: Remove cast (conversion operator) for Time objects
Updates the fix committed in 852a612c due to Python bindings compilation issues
Discussion of this issue can be found in merge request !323 (issue #215)
2020-06-07 11:36:06 -07:00
Stefano Avallone
f67f219510 core: Fix overload resolution for Simulator::Schedule variants 2020-06-07 11:33:39 -07:00
Peter Barnes
5dab92583b doc: Time and space complexity of the various Schedulers 2020-06-03 20:37:22 +00:00
Peter Barnes
852a612c33 core: avoid implicit Time conversions 2020-06-03 18:13:09 +00:00
Peter Barnes
0c4ace3b18 ShowProgress burnin 2020-06-02 15:50:09 +00:00
BHASKAR K
c316c0de8c core: Include typedefs for int64_t and uint64_t 2020-06-01 22:02:45 +05:30
Vivek Jain
97dd10ea59 core: use variadic template for CreateObject 2020-05-28 22:18:55 +00:00
Steven Smith
3a15ad78b8 core: Add test suite support for running examples as tests with comparison of output for regression testing 2020-05-26 21:42:16 +00:00
Peter D. Barnes, Jr
a0ab57db12 doc: fix doxy warnings on introspected-command-line.h 2020-05-20 13:08:27 -07:00
Tom Henderson
147b484a15 core: Update bindings 2020-05-14 16:31:23 -07:00
hax0kartik (GCI 2019)
1f3735f6f0 Replace calls to Scheduler::Remove(EventId) with EventId::Cancel 2020-05-13 00:08:08 +00:00
Peter D. Barnes, Jr
fa7d6a894e core: (fixes #143): EmpiricalRandomVariable should ensure that the CDF ends with 1.0
After discussion it was decided that this is not an error,
but should be better documented.
2020-05-12 21:25:08 +00:00
Peter D. Barnes, Jr
b7deb42a65 core: refactor EmpricialRandomVariable and provide example 2020-05-12 21:25:08 +00:00
InquisitivePenguin (GCI 2019)
6ec2093986 core: (fixes 2725) EmpiricalRandomVariable must not interpolate CDF 2020-05-12 21:25:07 +00:00
Peter D. Barnes, Jr
c9769dc400 core: refactor reverse ordering in calendar scheduler
Refactor to clarify the core algorithms and isolate the
forward/reverse differences to one section.

This also lets the insertion order to be set by Attribute.

Benchmarking this appears to be marginally faster than
Alexander Krotov's original version.  It's not clear why;
should be marginally slower.
2020-05-12 12:05:01 -07:00
kr0n0s (GCI 2019)
f42687c4f7 core: make insertion order of CalendarScheduler configurable 2020-05-12 12:05:01 -07:00
Alexander Krotov
1f6a710dbd core: Port calendar scheduler improvement from NS-2.
It reverses the order of insertion sort in buckets.
2020-05-12 12:05:01 -07:00
Tom Henderson
e99ae43138 bindings: rescan all APIs 2020-05-11 22:07:00 -07:00
Peter D. Barnes, Jr
32d820e8c7 (minor) various bits of fix-ups 2020-05-11 18:19:19 -07:00
Peter Barnes
1d47a14c14 Tag uses of NS_DEPRECATED by release 2020-05-11 20:12:51 +00:00