Lanchid
afb0373358
Added DtmcParser class that parses a whole DTMC, making use of the
labeling and transitions parser.
Removed the parseDtmc function from IoUtility, as it became obsolete
with the DtmcParser class, fitted test cases accordingly.
13 years ago
Lanchid
daa5cf297a
Changed type of parameter filename to std::string const & (was const
char*)
13 years ago
Lanchid
64784d4e92
Renamed LabParser to AtomicPropositionLabelingParser
13 years ago
Lanchid
3c741fae4a
Changed filename parameter for DeterministicSparseTransitionParser to a
const reference to an std::string, instead of char pointer
13 years ago
Lanchid
b0b8c98f6b
Renamed TraParser to DeterministicSparseTransitionParser
13 years ago
gereon
470fa4c4b7
added sys/mman.h for linux target
13 years ago
PBerger
01ea2c8427
Moved os specific includes into OsDetection.h
13 years ago
PBerger
96c7dd9a79
Added the (default) external build path /build to git ignore.
Added, fixed, refactored Include Guards in ALL Files, should be consistent now.
13 years ago
PBerger
08f87d545c
Some more refactoring, renaming, adding #ifndef guards...
Fixed a warning in SquareSparseMatrix.h regarding a conversion from uint64 to uint
13 years ago
gereon
64bf554cad
some more reformatting
13 years ago
gereon
6a720709a5
refactored opening braces in settings classes
13 years ago
gereon
94f46568d5
adding default value for trigger options
trigger options get the value of the trigger that was registered first as default value.
13 years ago
PBerger
cce8391e44
Refactored everything to match naming scheme.
13 years ago
dehnert
c7781f8137
Added option matrixlib to the generic options of the settings class to define a default value for the used backend. Related to ticket #29 .
13 years ago
PBerger
95b000436b
Added a JacobiDecomposition container and conversion function. Added const where possible.
13 years ago
gereon
e802942be2
fixing memory leaks. only log4cplus left...
13 years ago
gereon
331d3c7a11
fixing invalid read
iterators just don't survive an erase...
13 years ago
gereon
a9129c00c7
new exception
Created BaseException that can act as a stringstream. You can do the following:
throw BaseException() << "some error " << variable << " foo";
Changed InvalidSettings to use BaseException, using this new syntax in Settings.
13 years ago
gereon
74588c84f4
removed helpConfigfile (as we don't distinguish anymore between cli and configfile options)
added docu on how to call registerModule()
13 years ago
gereon
f6c88b3801
fixing some more documentation, adding dummy implementation
13 years ago
gereon
3610172125
updating documentation
13 years ago
gereon
c93b325e19
some cleanups
module selector options have a meaningful description
some code cleanup
13 years ago
gereon
09b35a2fa1
replace callbacks by register methods
13 years ago
gereon
89d93d87d4
adding put methods for callbacks
Now, you can also use
mrmc::settings::Callbacks::instance()->put()
to add a new callback from some other code.
13 years ago
gereon
b28c1f64c4
fixing a few memory issues
13 years ago
gereon
39cd84a469
adding documentation that is visible to doxygen, adding logging
13 years ago
gereon
cd4463116e
completed work on intermediate callbacks and restructured settings class
13 years ago
gereon
2ff00441cb
adding intermediate callbacks for settings
we'll soon have two runs of the option parser. The whole process will look like this:
* call register callbacks (may update options_description)
* first run of parser
* call intermediate callbacks (may check variable_map and update options_description)
* second run of parser (with new options_description)
* call checker callbacks (may check variable_map)
13 years ago
gereon
19a1a38c47
made Callbacks::getInstance private
There is nothing a non-friend can do with an instance of Callbacks, hence the is no point in making it public.
13 years ago
gereon
64f5430427
documented CallbackType
13 years ago
gereon
a2f27293f7
adding code samples for Register class
13 years ago
gereon
4361647ef4
made settings callbacks work and changed names to match our conventions.
it is possible to register callbacks that add custom options to the settings module.
it is also possible to register callbacks that perform checks on the variable assignment afterwards.
The registering is done during the static initialization phase, i.e. before main() does anything.
13 years ago
gereon
4935b4a10b
adding infrastructure to register callbacks for settings
Using the Register class, one can register callbacks to manipulate options or check options afterwards.
These callbacks are stored in the Callbacks class (being a singleton) and should be called by the Settings class when appropriate.
The Settings class does not call them yet.
13 years ago
dehnert
cbe162ab84
Fixed some copy-paste errors.
13 years ago
PBerger
1f36724cc2
Refactored StringOutput to use std::to_string
Fixed Reference/Pointer bugs in all formulas.
Implemented EigenDtmcPrctlModelChecker
Replaced uses of int32 with 64bits
13 years ago
PBerger
851e3a631d
Fixed CMakeLists.txt, made everything compile under Windows/MSVC
Added popcnt for MSVC
Fixed line ending detection in parser
13 years ago
gereon
4095e87282
changing pointer to std::shared_ptr
parsers return some kind of object and it is not clear who owns this object,
i.e. who is responsible to delete it.
13 years ago
dehnert
27ba61ff74
Fixed minor bugs here and there. Improved gmm++-based model checker.
13 years ago
dehnert
80b53bea18
Added more example files. Removed deletes at end of main() as these pointers are deleted by the DTMC class already. Small refactoring of GraphAnalyzer according to new guidelines. Added vector utility functions to set elements of vectors. Added conversion routine from our sparse matrix format to gmm++ format. Fixed some bugs in sparse matrix class. Added prototypical implementation of GmmxxDtmcPrctlModelChecker.
13 years ago
Lanchid
13a2bd3057
Moved const_templates.h from "misc" to "utility" to be able to remove
the former folder.
Also, changed those templates to use references instead of pointers for
easier code.
Renamer "utility.h" and .cpp to "ioUtility.h/cpp", as utility code
providing functionality not linked with IO has been put into other
files.
13 years ago
Lanchid
b726a07b3f
Small bugfix for the dot output
13 years ago
Lanchid
f5d2205352
- Removed enum to infer the correct formula (sub-)class, instead used
"check" which calls the correct check function in the model checker.
- The dot output was modified to work with the refactored names
- Also, it uses now filestreams instead of C style output
- and the iterators from the matrix class
- Included new (stub) test case for output (and general parsing)
13 years ago
gereon
60dbf5608e
adding test-bench for prctl parser.
13 years ago
gereon
f960e20e53
porting LabParser and TraParser from c-style API to class API
13 years ago
gereon
0e6f699625
some doxygen for settings namespace
13 years ago
dehnert
18b72bc8d7
Added necessary include of unistd.h (for close()) to parser. Removed flag MAP_DENYWRITE of mmap for Mac OS and Linux as it is non-existent and ignored, respectively. Changed call to stat64 to call to stat for MAC OS, as stat64 is deprecated and 64-bit mode is turned on by macro that is no correctly set during OS-Detection.
13 years ago
gereon
c10b08bf9a
adding option --verbose
13 years ago
gereon
5a7176740a
adding generic get() method for settings of arbitrary type
13 years ago
gereon
4147b7a7f6
removing obsolete functions
13 years ago
gereon
8d89375c6e
integrated renaming within master branch into code merged from parser branch
13 years ago