Copyright | Copyright (c) 2009-2017 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 defines basic definitions for localisation.
Synopsis
- type ResultLocale = String
- data ResultLocalisation = ResultLocalisation {}
- type ResultName = String
- type ResultDescription = String
- data UserDefinedResult = UserDefinedResult {}
- data LocalisedResult = LocalisedResult {}
- russianResultLocale :: ResultLocale
- englishResultLocale :: ResultLocale
- 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 ResultName = String Source #
A name used for indentifying the results when generating output.
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
Eq UserDefinedResult Source # | |
Defined in Simulation.Aivika.Results.Locale.Types (==) :: UserDefinedResult -> UserDefinedResult -> Bool # (/=) :: UserDefinedResult -> UserDefinedResult -> Bool # | |
Ord UserDefinedResult Source # | |
Defined in Simulation.Aivika.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 # | |
Show UserDefinedResult Source # | |
Defined in Simulation.Aivika.Results.Locale.Types showsPrec :: Int -> UserDefinedResult -> ShowS # show :: UserDefinedResult -> String # showList :: [UserDefinedResult] -> ShowS # |
data LocalisedResult Source #
This is a localisation of the specified simulation result.
LocalisedResult | |
|
Instances
Eq LocalisedResult Source # | |
Defined in Simulation.Aivika.Results.Locale.Types (==) :: LocalisedResult -> LocalisedResult -> Bool # (/=) :: LocalisedResult -> LocalisedResult -> Bool # | |
Ord LocalisedResult Source # | |
Defined in Simulation.Aivika.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 # | |
Show LocalisedResult Source # | |
Defined in Simulation.Aivika.Results.Locale.Types showsPrec :: Int -> LocalisedResult -> ShowS # show :: LocalisedResult -> String # showList :: [LocalisedResult] -> ShowS # |
Locale Codes
russianResultLocale :: ResultLocale Source #
The Russian locale.
englishResultLocale :: ResultLocale Source #
The English locale.
Localisations
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.
Utilites
resultNameToTitle :: ResultName -> ResultDescription Source #
Convert the result name to title.