Copyright | Copyright (c) 2009-2017 David Sorokin <david.sorokin@gmail.com> |
---|---|
License | BSD3 |
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Tested with: GHC 8.0.1
The module defines locales for outputting and printing the simulation results.
Synopsis
- type ResultLocale = String
- data ResultLocalisation = ResultLocalisation {}
- type ResultDescription = String
- data UserDefinedResult = UserDefinedResult {}
- data LocalisedResult = LocalisedResult {}
- russianResultLocale :: ResultLocale
- englishResultLocale :: ResultLocale
- russianResultLocalisation :: ResultLocalisation
- englishResultLocalisation :: ResultLocalisation
- pathResultLocalisation :: (ResultId -> ResultDescription) -> [ResultId] -> ResultDescription
- localisePathResultDescription :: ResultLocalisation -> [ResultId] -> ResultDescription
- localisePathResultTitle :: ResultLocalisation -> [ResultId] -> ResultDescription
- lookupResultLocalisation :: ResultLocale -> Map ResultLocale ResultDescription -> ResultDescription
- data ResultId
- = TimeId
- | VectorId
- | VectorItemId String
- | SamplingStatsId
- | SamplingStatsCountId
- | SamplingStatsMinId
- | SamplingStatsMaxId
- | SamplingStatsMeanId
- | SamplingStatsMean2Id
- | SamplingStatsVarianceId
- | SamplingStatsDeviationId
- | SamplingCounterId
- | SamplingCounterValueId
- | SamplingCounterStatsId
- | TimingStatsId
- | TimingStatsCountId
- | TimingStatsMinId
- | TimingStatsMaxId
- | TimingStatsMeanId
- | TimingStatsVarianceId
- | TimingStatsDeviationId
- | TimingStatsMinTimeId
- | TimingStatsMaxTimeId
- | TimingStatsStartTimeId
- | TimingStatsLastTimeId
- | TimingStatsSumId
- | TimingStatsSum2Id
- | TimingCounterId
- | TimingCounterValueId
- | TimingCounterStatsId
- | FiniteQueueId
- | InfiniteQueueId
- | EnqueueStrategyId
- | EnqueueStoringStrategyId
- | DequeueStrategyId
- | QueueNullId
- | QueueFullId
- | QueueMaxCountId
- | QueueCountId
- | QueueCountStatsId
- | EnqueueCountId
- | EnqueueLostCountId
- | EnqueueStoreCountId
- | DequeueCountId
- | DequeueExtractCountId
- | QueueLoadFactorId
- | EnqueueRateId
- | EnqueueStoreRateId
- | DequeueRateId
- | DequeueExtractRateId
- | QueueWaitTimeId
- | QueueTotalWaitTimeId
- | EnqueueWaitTimeId
- | DequeueWaitTimeId
- | QueueRateId
- | ArrivalTimerId
- | ArrivalProcessingTimeId
- | ServerId
- | ServerInitStateId
- | ServerStateId
- | ServerTotalInputWaitTimeId
- | ServerTotalProcessingTimeId
- | ServerTotalOutputWaitTimeId
- | ServerTotalPreemptionTimeId
- | ServerInputWaitTimeId
- | ServerProcessingTimeId
- | ServerOutputWaitTimeId
- | ServerPreemptionTimeId
- | ServerInputWaitFactorId
- | ServerProcessingFactorId
- | ServerOutputWaitFactorId
- | ServerPreemptionFactorId
- | ActivityId
- | ActivityInitStateId
- | ActivityStateId
- | ActivityTotalUtilisationTimeId
- | ActivityTotalIdleTimeId
- | ActivityTotalPreemptionTimeId
- | ActivityUtilisationTimeId
- | ActivityIdleTimeId
- | ActivityPreemptionTimeId
- | ActivityUtilisationFactorId
- | ActivityIdleFactorId
- | ActivityPreemptionFactorId
- | ResourceId
- | ResourceCountId
- | ResourceCountStatsId
- | ResourceUtilisationCountId
- | ResourceUtilisationCountStatsId
- | ResourceQueueCountId
- | ResourceQueueCountStatsId
- | ResourceTotalWaitTimeId
- | ResourceWaitTimeId
- | OperationId
- | OperationTotalUtilisationTimeId
- | OperationTotalPreemptionTimeId
- | OperationUtilisationTimeId
- | OperationPreemptionTimeId
- | OperationUtilisationFactorId
- | OperationPreemptionFactorId
- | UserDefinedResultId UserDefinedResult
- | LocalisedResultId LocalisedResult
- resultNameToTitle :: ResultName -> ResultDescription
Basic Types
type ResultLocale = String Source #
A locale to output the simulation results.
Examples are: "ru",
"en" etc.
data ResultLocalisation Source #
It localises the description and title of simulation results.
ResultLocalisation | |
|
type ResultDescription = String Source #
A description used for describing the results when generating output.
data UserDefinedResult Source #
It describes the user-defined simulation result.
UserDefinedResult | |
|
Instances
Show UserDefinedResult Source # | |
Defined in Simulation.Aivika.Trans.Results.Locale.Types showsPrec :: Int -> UserDefinedResult -> ShowS # show :: UserDefinedResult -> String # showList :: [UserDefinedResult] -> ShowS # | |
Eq UserDefinedResult Source # | |
Defined in Simulation.Aivika.Trans.Results.Locale.Types (==) :: UserDefinedResult -> UserDefinedResult -> Bool # (/=) :: UserDefinedResult -> UserDefinedResult -> Bool # | |
Ord UserDefinedResult Source # | |
Defined in Simulation.Aivika.Trans.Results.Locale.Types compare :: UserDefinedResult -> UserDefinedResult -> Ordering # (<) :: UserDefinedResult -> UserDefinedResult -> Bool # (<=) :: UserDefinedResult -> UserDefinedResult -> Bool # (>) :: UserDefinedResult -> UserDefinedResult -> Bool # (>=) :: UserDefinedResult -> UserDefinedResult -> Bool # max :: UserDefinedResult -> UserDefinedResult -> UserDefinedResult # min :: UserDefinedResult -> UserDefinedResult -> UserDefinedResult # |
data LocalisedResult Source #
This is a localisation of the specified simulation result.
LocalisedResult | |
|
Instances
Show LocalisedResult Source # | |
Defined in Simulation.Aivika.Trans.Results.Locale.Types showsPrec :: Int -> LocalisedResult -> ShowS # show :: LocalisedResult -> String # showList :: [LocalisedResult] -> ShowS # | |
Eq LocalisedResult Source # | |
Defined in Simulation.Aivika.Trans.Results.Locale.Types (==) :: LocalisedResult -> LocalisedResult -> Bool # (/=) :: LocalisedResult -> LocalisedResult -> Bool # | |
Ord LocalisedResult Source # | |
Defined in Simulation.Aivika.Trans.Results.Locale.Types compare :: LocalisedResult -> LocalisedResult -> Ordering # (<) :: LocalisedResult -> LocalisedResult -> Bool # (<=) :: LocalisedResult -> LocalisedResult -> Bool # (>) :: LocalisedResult -> LocalisedResult -> Bool # (>=) :: LocalisedResult -> LocalisedResult -> Bool # max :: LocalisedResult -> LocalisedResult -> LocalisedResult # min :: LocalisedResult -> LocalisedResult -> LocalisedResult # |
Locale Codes
russianResultLocale :: ResultLocale Source #
The Russian locale.
englishResultLocale :: ResultLocale Source #
The English locale.
Localisations
russianResultLocalisation :: ResultLocalisation Source #
The Russian localisation.
englishResultLocalisation :: ResultLocalisation Source #
The English localisation.
pathResultLocalisation :: (ResultId -> ResultDescription) -> [ResultId] -> ResultDescription Source #
Return the path result localisation.
localisePathResultDescription :: ResultLocalisation -> [ResultId] -> ResultDescription Source #
Localise the path result description.
localisePathResultTitle :: ResultLocalisation -> [ResultId] -> ResultDescription Source #
Localise the path result title.
lookupResultLocalisation :: ResultLocale -> Map ResultLocale ResultDescription -> ResultDescription Source #
Lookup a localisation by the specified locale.
Unique Identifiers
The result entity identifier.
Utilities
resultNameToTitle :: ResultName -> ResultDescription Source #
Convert the result name to title.