Copyright | Copyright (c) 2009-2014, 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 7.8.3
The module allows printing and converting the Simulation
Results
to a String
.
- type ResultSourcePrint m = ResultSource m -> Event m ()
- type ResultSourceShowS m = ResultSource m -> Event m ShowS
- printResultsWithTime :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Results m -> Event m ()
- printResultsInStartTime :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Results m -> Simulation m ()
- printResultsInStopTime :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Results m -> Simulation m ()
- printResultsInIntegTimes :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Results m -> Simulation m ()
- printResultsInTime :: (MonadComp m, MonadIO m) => Double -> ResultSourcePrint m -> Results m -> Simulation m ()
- printResultsInTimes :: (MonadComp m, MonadIO m) => [Double] -> ResultSourcePrint m -> Results m -> Simulation m ()
- printSimulationResultsInStartTime :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Simulation m (Results m) -> Specs m -> m ()
- printSimulationResultsInStopTime :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Simulation m (Results m) -> Specs m -> m ()
- printSimulationResultsInIntegTimes :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Simulation m (Results m) -> Specs m -> m ()
- printSimulationResultsInTime :: (MonadComp m, MonadIO m) => Double -> ResultSourcePrint m -> Simulation m (Results m) -> Specs m -> m ()
- printSimulationResultsInTimes :: (MonadComp m, MonadIO m) => [Double] -> ResultSourcePrint m -> Simulation m (Results m) -> Specs m -> m ()
- showResultsWithTime :: MonadComp m => ResultSourceShowS m -> Results m -> Event m ShowS
- showResultsInStartTime :: MonadComp m => ResultSourceShowS m -> Results m -> Simulation m ShowS
- showResultsInStopTime :: MonadComp m => ResultSourceShowS m -> Results m -> Simulation m ShowS
- showResultsInIntegTimes :: MonadComp m => ResultSourceShowS m -> Results m -> Simulation m ShowS
- showResultsInTime :: MonadComp m => Double -> ResultSourceShowS m -> Results m -> Simulation m ShowS
- showResultsInTimes :: MonadComp m => [Double] -> ResultSourceShowS m -> Results m -> Simulation m ShowS
- showSimulationResultsInStartTime :: MonadComp m => ResultSourceShowS m -> Simulation m (Results m) -> Specs m -> m ShowS
- showSimulationResultsInStopTime :: MonadComp m => ResultSourceShowS m -> Simulation m (Results m) -> Specs m -> m ShowS
- showSimulationResultsInIntegTimes :: MonadComp m => ResultSourceShowS m -> Simulation m (Results m) -> Specs m -> m ShowS
- showSimulationResultsInTime :: MonadComp m => Double -> ResultSourceShowS m -> Simulation m (Results m) -> Specs m -> m ShowS
- showSimulationResultsInTimes :: MonadComp m => [Double] -> ResultSourceShowS m -> Simulation m (Results m) -> Specs m -> m ShowS
- hPrintResultSourceIndented :: (MonadComp m, MonadIO m) => Handle -> Int -> ResultLocalisation -> ResultSourcePrint m
- hPrintResultSource :: (MonadComp m, MonadIO m) => Handle -> ResultLocalisation -> ResultSourcePrint m
- hPrintResultSourceInRussian :: (MonadComp m, MonadIO m) => Handle -> ResultSourcePrint m
- hPrintResultSourceInEnglish :: (MonadComp m, MonadIO m) => Handle -> ResultSourcePrint m
- printResultSourceIndented :: (MonadComp m, MonadIO m) => Int -> ResultLocalisation -> ResultSourcePrint m
- printResultSource :: (MonadComp m, MonadIO m) => ResultLocalisation -> ResultSourcePrint m
- printResultSourceInRussian :: (MonadComp m, MonadIO m) => ResultSourcePrint m
- printResultSourceInEnglish :: (MonadComp m, MonadIO m) => ResultSourcePrint m
- showResultSourceIndented :: MonadComp m => Int -> ResultLocalisation -> ResultSourceShowS m
- showResultSource :: MonadComp m => ResultLocalisation -> ResultSourceShowS m
- showResultSourceInRussian :: MonadComp m => ResultSourceShowS m
- showResultSourceInEnglish :: MonadComp m => ResultSourceShowS m
Basic Types
type ResultSourcePrint m = ResultSource m -> Event m () Source
This is a function that prints the simulation results within
the Event
computation synchronized with the event queue.
type ResultSourceShowS m = ResultSource m -> Event m ShowS Source
This is a function that shows the simulation results within
the Event
computation synchronized with the event queue.
Printing the Results
printResultsWithTime :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Results m -> Event m () Source
Print the results with the information about the modeling time.
printResultsInStartTime :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Results m -> Simulation m () Source
Print the simulation results in start time.
printResultsInStopTime :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Results m -> Simulation m () Source
Print the simulation results in stop time.
printResultsInIntegTimes :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Results m -> Simulation m () Source
Print the simulation results in the integration time points.
printResultsInTime :: (MonadComp m, MonadIO m) => Double -> ResultSourcePrint m -> Results m -> Simulation m () Source
Print the simulation results in the specified time.
printResultsInTimes :: (MonadComp m, MonadIO m) => [Double] -> ResultSourcePrint m -> Results m -> Simulation m () Source
Print the simulation results in the specified time points.
Simulating and Printing the Results
printSimulationResultsInStartTime :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Simulation m (Results m) -> Specs m -> m () Source
Run the simulation and then print the results in the start time.
printSimulationResultsInStopTime :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Simulation m (Results m) -> Specs m -> m () Source
Run the simulation and then print the results in the final time.
printSimulationResultsInIntegTimes :: (MonadComp m, MonadIO m) => ResultSourcePrint m -> Simulation m (Results m) -> Specs m -> m () Source
Run the simulation and then print the results in the integration time points.
printSimulationResultsInTime :: (MonadComp m, MonadIO m) => Double -> ResultSourcePrint m -> Simulation m (Results m) -> Specs m -> m () Source
Run the simulation and then print the results in the specified time point.
printSimulationResultsInTimes :: (MonadComp m, MonadIO m) => [Double] -> ResultSourcePrint m -> Simulation m (Results m) -> Specs m -> m () Source
Run the simulation and then print the results in the specified time points.
Showing the Results
showResultsWithTime :: MonadComp m => ResultSourceShowS m -> Results m -> Event m ShowS Source
Show the results with the information about the modeling time.
showResultsInStartTime :: MonadComp m => ResultSourceShowS m -> Results m -> Simulation m ShowS Source
Show the simulation results in start time.
showResultsInStopTime :: MonadComp m => ResultSourceShowS m -> Results m -> Simulation m ShowS Source
Show the simulation results in stop time.
showResultsInIntegTimes :: MonadComp m => ResultSourceShowS m -> Results m -> Simulation m 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 :: MonadComp m => Double -> ResultSourceShowS m -> Results m -> Simulation m ShowS Source
Show the simulation results in the specified time point.
showResultsInTimes :: MonadComp m => [Double] -> ResultSourceShowS m -> Results m -> Simulation m 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 :: MonadComp m => ResultSourceShowS m -> Simulation m (Results m) -> Specs m -> m ShowS Source
Run the simulation and then show the results in the start time.
showSimulationResultsInStopTime :: MonadComp m => ResultSourceShowS m -> Simulation m (Results m) -> Specs m -> m ShowS Source
Run the simulation and then show the results in the final time.
showSimulationResultsInIntegTimes :: MonadComp m => ResultSourceShowS m -> Simulation m (Results m) -> Specs m -> m 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 :: MonadComp m => Double -> ResultSourceShowS m -> Simulation m (Results m) -> Specs m -> m ShowS Source
Run the simulation and then show the results in the integration time point.
showSimulationResultsInTimes :: MonadComp m => [Double] -> ResultSourceShowS m -> Simulation m (Results m) -> Specs m -> m 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
:: (MonadComp m, MonadIO m) | |
=> Handle | a handle |
-> Int | an indent |
-> ResultLocalisation | a localisation |
-> ResultSourcePrint m |
Print a localised text representation of the results by the specified source and with the given indent.
:: (MonadComp m, MonadIO m) | |
=> Handle | a handle |
-> ResultLocalisation | a localisation |
-> ResultSourcePrint m |
Print a localised text representation of the results by the specified source.
hPrintResultSourceInRussian :: (MonadComp m, MonadIO m) => Handle -> ResultSourcePrint m Source
Print in Russian a text representation of the results by the specified source.
hPrintResultSourceInEnglish :: (MonadComp m, MonadIO m) => Handle -> ResultSourcePrint m Source
Print in English a text representation of the results by the specified source.
printResultSourceIndented Source
:: (MonadComp m, MonadIO m) | |
=> Int | an indent |
-> ResultLocalisation | a localisation |
-> ResultSourcePrint m |
Print a localised text representation of the results by the specified source and with the given indent.
:: (MonadComp m, MonadIO m) | |
=> ResultLocalisation | a localisation |
-> ResultSourcePrint m |
Print a localised text representation of the results by the specified source.
printResultSourceInRussian :: (MonadComp m, MonadIO m) => ResultSourcePrint m Source
Print in Russian a text representation of the results by the specified source.
printResultSourceInEnglish :: (MonadComp m, MonadIO m) => ResultSourcePrint m Source
Print in English a text representation of the results by the specified source.
Showing the Result Source
showResultSourceIndented Source
:: MonadComp m | |
=> Int | an indent |
-> ResultLocalisation | a localisation |
-> ResultSourceShowS m |
Show a localised text representation of the results by the specified source and with the given indent.
:: MonadComp m | |
=> ResultLocalisation | a localisation |
-> ResultSourceShowS m |
Show a localised text representation of the results by the specified source.
showResultSourceInRussian :: MonadComp m => ResultSourceShowS m Source
Show in Russian a text representation of the results by the specified source.
showResultSourceInEnglish :: MonadComp m => ResultSourceShowS m Source
Show in English a text representation of the results by the specified source.