Internal package
Requirements.Internal
ยท source
Library of internal components (should not be directly used)
Extends Modelica.Icons.InternalPackage
Internal components of the library. They are used by the public blocks and should not be used directly in a model; their interfaces may change without notice.
- Logging of verdicts: the connector SortingPort and the functions initializeLogFile, printViolationsToLogFile, printStatisticsToLogFile and printViolationsToOutput implement the log file and the summary of Verify.PrintViolations and the requirement blocks; getFirstName, removeFirstName, removeFirstElement and getElements split path names and log lines.
- Violation statistics: ContinuousWorst, RatchetWorst and StatisticsLogger, the parts of Verify.ViolationStatistics.
- Sliding windows: SlidingWindow, the buffer of ChecksInSlidingWindow, and its tests TestSlidingWindow.
- File reading: CSV, the MA-HS-CSV reader of Sources.PartialSignalsFromFile.
Contents
| Name | Kind | Description | |
|---|---|---|---|
| SortingPort | connector | Connector used to force a particular ordering of equations and to pass information about satisfied requirements | |
| initializeLogFile | impure function | Initialize log file (remove existing file and add a blank line; remove the html report of an earlier run) | |
| printViolationsToLogFile | impure function | Print information about one requirement to log file | |
| printViolationsToOutput | impure function | Print violated, untested and satisfied requirements to output window | |
| removeFirstName | function | Remove first name of a Modelica path name | |
| getFirstName | function | Get first name of a Modelica path name | |
| removeFirstElement | function | Remove first part of one line of the log file (until \",\") | |
| getElements | function | Extract the elements from a log line | |
| ContinuousWorst | block | Worst margin over the decided phases and over the current violation episode, at the local extrema of the margin (used by Verify.ViolationStatistics) | |
| RatchetWorst | block | Worst margin over the decided phases and over the current violation episode, at every new low by more than resolution (used by Verify.ViolationStatistics) | |
| StatisticsLogger | block | Writes the violation statistics of one requirement to the log file of the inner printViolations (used by Verify.ViolationStatistics) | |
| printStatisticsToLogFile | impure function | Print the violation statistics of one requirement to the log file | |
| SlidingWindow | package | Ring buffer of the Boolean value changes in a sliding time window, and the functions operating on it (used by ChecksInSlidingWindow) | |
| TestSlidingWindow | package | Test functions of package SlidingWindow (assert the durations of hand-computed cases) | |
| CSV | package | MA-HS-CSV file reader: the external object and its access functions (used by Sources.PartialSignalsFromFile) |