Copyright | Copyright (c) 2009-2016 David Sorokin <david.sorokin@gmail.com> |
---|---|
License | BSD3 |
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Tested with: GHC 8.0.1
The module allows printing and converting the Simulation
Results
to a String
.
- type ResultSourcePrint = ResultSource -> Event ()
- type ResultSourceShowS = ResultSource -> Event ShowS
- printResultsWithTime :: ResultSourcePrint -> Results -> Event ()
- printResultsInStartTime :: ResultSourcePrint -> Results -> Simulation ()
- printResultsInStopTime :: ResultSourcePrint -> Results -> Simulation ()
- printResultsInIntegTimes :: ResultSourcePrint -> Results -> Simulation ()
- printResultsInTime :: Double -> ResultSourcePrint -> Results -> Simulation ()
- printResultsInTimes :: [Double] -> ResultSourcePrint -> Results -> Simulation ()
- printSimulationResultsInStartTime :: ResultSourcePrint -> Simulation Results -> Specs -> IO ()
- printSimulationResultsInStopTime :: ResultSourcePrint -> Simulation Results -> Specs -> IO ()
- printSimulationResultsInIntegTimes :: ResultSourcePrint -> Simulation Results -> Specs -> IO ()
- printSimulationResultsInTime :: Double -> ResultSourcePrint -> Simulation Results -> Specs -> IO ()
- printSimulationResultsInTimes :: [Double] -> ResultSourcePrint -> Simulation Results -> Specs -> IO ()
- showResultsWithTime :: ResultSourceShowS -> Results -> Event ShowS
- showResultsInStartTime :: ResultSourceShowS -> Results -> Simulation ShowS
- showResultsInStopTime :: ResultSourceShowS -> Results -> Simulation ShowS
- showResultsInIntegTimes :: ResultSourceShowS -> Results -> Simulation ShowS
- showResultsInTime :: Double -> ResultSourceShowS -> Results -> Simulation ShowS
- showResultsInTimes :: [Double] -> ResultSourceShowS -> Results -> Simulation ShowS
- showSimulationResultsInStartTime :: ResultSourceShowS -> Simulation Results -> Specs -> IO ShowS
- showSimulationResultsInStopTime :: ResultSourceShowS -> Simulation Results -> Specs -> IO ShowS
- showSimulationResultsInIntegTimes :: ResultSourceShowS -> Simulation Results -> Specs -> IO ShowS
- showSimulationResultsInTime :: Double -> ResultSourceShowS -> Simulation Results -> Specs -> IO ShowS
- showSimulationResultsInTimes :: [Double] -> ResultSourceShowS -> Simulation Results -> Specs -> IO ShowS
- hPrintResultSourceIndented :: Handle -> Int -> ResultLocalisation -> ResultSourcePrint
- hPrintResultSource :: Handle -> ResultLocalisation -> ResultSourcePrint
- hPrintResultSourceInRussian :: Handle -> ResultSourcePrint
- hPrintResultSourceInEnglish :: Handle -> ResultSourcePrint
- printResultSourceIndented :: Int -> ResultLocalisation -> ResultSourcePrint
- printResultSource :: ResultLocalisation -> ResultSourcePrint
- printResultSourceInRussian :: ResultSourcePrint
- printResultSourceInEnglish :: ResultSourcePrint
- showResultSourceIndented :: Int -> ResultLocalisation -> ResultSourceShowS
- showResultSource :: ResultLocalisation -> ResultSourceShowS
- showResultSourceInRussian :: ResultSourceShowS
- showResultSourceInEnglish :: ResultSourceShowS
Basic Types
type ResultSourcePrint = ResultSource -> Event () Source #
This is a function that prints the simulation results within
the Event
computation synchronized with the event queue.
type ResultSourceShowS = ResultSource -> Event ShowS Source #
This is a function that shows the simulation results within
the Event
computation synchronized with the event queue.
Printing the Results
printResultsWithTime :: ResultSourcePrint -> Results -> Event () Source #
Print the results with the information about the modeling time.
printResultsInStartTime :: ResultSourcePrint -> Results -> Simulation () Source #
Print the simulation results in start time.
printResultsInStopTime :: ResultSourcePrint -> Results -> Simulation () Source #
Print the simulation results in stop time.
printResultsInIntegTimes :: ResultSourcePrint -> Results -> Simulation () Source #
Print the simulation results in the integration time points.
printResultsInTime :: Double -> ResultSourcePrint -> Results -> Simulation () Source #
Print the simulation results in the specified time.
printResultsInTimes :: [Double] -> ResultSourcePrint -> Results -> Simulation () Source #
Print the simulation results in the specified time points.
Simulating and Printing the Results
printSimulationResultsInStartTime :: ResultSourcePrint -> Simulation Results -> Specs -> IO () Source #
Run the simulation and then print the results in the start time.
printSimulationResultsInStopTime :: ResultSourcePrint -> Simulation Results -> Specs -> IO () Source #
Run the simulation and then print the results in the final time.
printSimulationResultsInIntegTimes :: ResultSourcePrint -> Simulation Results -> Specs -> IO () Source #
Run the simulation and then print the results in the integration time points.
printSimulationResultsInTime :: Double -> ResultSourcePrint -> Simulation Results -> Specs -> IO () Source #
Run the simulation and then print the results in the specified time point.
printSimulationResultsInTimes :: [Double] -> ResultSourcePrint -> Simulation Results -> Specs -> IO () Source #
Run the simulation and then print the results in the specified time points.
Showing the Results
showResultsWithTime :: ResultSourceShowS -> Results -> Event ShowS Source #
Show the results with the information about the modeling time.
showResultsInStartTime :: ResultSourceShowS -> Results -> Simulation ShowS Source #
Show the simulation results in start time.
showResultsInStopTime :: ResultSourceShowS -> Results -> Simulation ShowS Source #
Show the simulation results in stop time.
showResultsInIntegTimes :: ResultSourceShowS -> Results -> Simulation ShowS Source #
Show the simulation results in the integration time points.
It may consume much memory, for we have to traverse all the integration
points to create the resulting function within the Simulation
computation.
showResultsInTime :: Double -> ResultSourceShowS -> Results -> Simulation ShowS Source #
Show the simulation results in the specified time point.
showResultsInTimes :: [Double] -> ResultSourceShowS -> Results -> Simulation ShowS Source #
Show the simulation results in the specified time points.
It may consume much memory, for we have to traverse all the specified
points to create the resulting function within the Simulation
computation.
Simulating and Showing the Results
showSimulationResultsInStartTime :: ResultSourceShowS -> Simulation Results -> Specs -> IO ShowS Source #
Run the simulation and then show the results in the start time.
showSimulationResultsInStopTime :: ResultSourceShowS -> Simulation Results -> Specs -> IO ShowS Source #
Run the simulation and then show the results in the final time.
showSimulationResultsInIntegTimes :: ResultSourceShowS -> Simulation Results -> Specs -> IO ShowS Source #
Run the simulation and then show the results in the integration time points.
It may consume much memory, for we have to traverse all the integration
points to create the resulting function within the IO
computation.
showSimulationResultsInTime :: Double -> ResultSourceShowS -> Simulation Results -> Specs -> IO ShowS Source #
Run the simulation and then show the results in the integration time point.
showSimulationResultsInTimes :: [Double] -> ResultSourceShowS -> Simulation Results -> Specs -> IO ShowS Source #
Run the simulation and then show the results in the specified time points.
It may consume much memory, for we have to traverse all the specified
points to create the resulting function within the IO
computation.
Printing the Result Source
hPrintResultSourceIndented Source #
:: Handle | a handle |
-> Int | an indent |
-> ResultLocalisation | a localisation |
-> ResultSourcePrint |
Print a localised text representation of the results by the specified source and with the given indent.
:: Handle | a handle |
-> ResultLocalisation | a localisation |
-> ResultSourcePrint |
Print a localised text representation of the results by the specified source.
hPrintResultSourceInRussian :: Handle -> ResultSourcePrint Source #
Print in Russian a text representation of the results by the specified source.
hPrintResultSourceInEnglish :: Handle -> ResultSourcePrint Source #
Print in English a text representation of the results by the specified source.
printResultSourceIndented Source #
:: Int | an indent |
-> ResultLocalisation | a localisation |
-> ResultSourcePrint |
Print a localised text representation of the results by the specified source and with the given indent.
:: ResultLocalisation | a localisation |
-> ResultSourcePrint |
Print a localised text representation of the results by the specified source.
printResultSourceInRussian :: ResultSourcePrint Source #
Print in Russian a text representation of the results by the specified source.
printResultSourceInEnglish :: ResultSourcePrint Source #
Print in English a text representation of the results by the specified source.
Showing the Result Source
showResultSourceIndented Source #
:: Int | an indent |
-> ResultLocalisation | a localisation |
-> ResultSourceShowS |
Show a localised text representation of the results by the specified source and with the given indent.
:: ResultLocalisation | a localisation |
-> ResultSourceShowS |
Show a localised text representation of the results by the specified source.
showResultSourceInRussian :: ResultSourceShowS Source #
Show in Russian a text representation of the results by the specified source.
showResultSourceInEnglish :: ResultSourceShowS Source #
Show in English a text representation of the results by the specified source.