| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Modelling.ActivityDiagram.SelectAS
Synopsis
- data SelectASInstance = SelectASInstance {
- activityDiagram :: UMLActivityDiagram
- actionSequences :: Map Int (Bool, [String])
- drawSettings :: PlantUmlConfig
- showSolution :: Bool
- addText :: ExtraText
- data SelectASConfig = SelectASConfig {
- adConfig :: AdConfig
- hideBranchConditions :: Bool
- maxInstances :: Maybe Integer
- objectNodeOnEveryPath :: Maybe Bool
- numberOfWrongAnswers :: Int
- answerLength :: !(Int, Int)
- printSolution :: Bool
- withActionRepetition :: Bool
- extraText :: ExtraText
- data SelectASSolution = SelectASSolution {
- correctSequence :: [String]
- wrongSequences :: [[String]]
- defaultSelectASConfig :: SelectASConfig
- checkSelectASConfig :: SelectASConfig -> Maybe String
- selectASAlloy :: SelectASConfig -> String
- checkSelectASInstance :: SelectASInstance -> Maybe String
- selectActionSequence :: forall (m :: Type -> Type). MonadRandom m => Bool -> Int -> (Int, Int) -> UMLActivityDiagram -> MaybeT m SelectASSolution
- selectASTask :: forall (m :: Type -> Type). (MonadPlantUml m, MonadWriteFile m, OutputCapable m) => FilePath -> SelectASInstance -> LangM m
- selectASSyntax :: forall (m :: Type -> Type). OutputCapable m => SelectASInstance -> Int -> LangM m
- selectASEvaluation :: forall (m :: Type -> Type). OutputCapable m => SelectASInstance -> Int -> LangM m
- selectASSolution :: SelectASInstance -> Int
- selectAS :: (MonadAlloy m, MonadThrow m) => SelectASConfig -> Int -> Int -> m SelectASInstance
- defaultSelectASInstance :: SelectASInstance
Documentation
data SelectASInstance Source #
Constructors
| SelectASInstance | |
Fields
| |
Instances
data SelectASConfig Source #
Constructors
| SelectASConfig | |
Fields
| |
Instances
| Reader SelectASConfig Source # | |||||
Defined in Modelling.ActivityDiagram.SelectAS Methods atomic_reader :: Parser SelectASConfig atomic_readerPrec :: Int -> Parser SelectASConfig reader :: Parser SelectASConfig readerPrec :: Int -> Parser SelectASConfig | |||||
| ToDoc SelectASConfig Source # | |||||
Defined in Modelling.ActivityDiagram.SelectAS | |||||
| Generic SelectASConfig Source # | |||||
Defined in Modelling.ActivityDiagram.SelectAS Associated Types
Methods from :: SelectASConfig -> Rep SelectASConfig x # to :: Rep SelectASConfig x -> SelectASConfig # | |||||
| Read SelectASConfig Source # | |||||
Defined in Modelling.ActivityDiagram.SelectAS Methods readsPrec :: Int -> ReadS SelectASConfig # readList :: ReadS [SelectASConfig] # | |||||
| Show SelectASConfig Source # | |||||
Defined in Modelling.ActivityDiagram.SelectAS Methods showsPrec :: Int -> SelectASConfig -> ShowS # show :: SelectASConfig -> String # showList :: [SelectASConfig] -> ShowS # | |||||
| type Rep SelectASConfig Source # | |||||
Defined in Modelling.ActivityDiagram.SelectAS type Rep SelectASConfig = D1 ('MetaData "SelectASConfig" "Modelling.ActivityDiagram.SelectAS" "modelling-tasks-0.0.0.1-2KiclaEArwR4yz1IHg8eKf" 'False) (C1 ('MetaCons "SelectASConfig" 'PrefixI 'True) (((S1 ('MetaSel ('Just "adConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AdConfig) :*: S1 ('MetaSel ('Just "hideBranchConditions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "maxInstances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "objectNodeOnEveryPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "numberOfWrongAnswers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "answerLength") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Int, Int))) :*: (S1 ('MetaSel ('Just "printSolution") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "withActionRepetition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "extraText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ExtraText)))))) | |||||
data SelectASSolution Source #
Constructors
| SelectASSolution | |
Fields
| |
Instances
| Show SelectASSolution Source # | |
Defined in Modelling.ActivityDiagram.SelectAS Methods showsPrec :: Int -> SelectASSolution -> ShowS # show :: SelectASSolution -> String # showList :: [SelectASSolution] -> ShowS # | |
| Eq SelectASSolution Source # | |
Defined in Modelling.ActivityDiagram.SelectAS Methods (==) :: SelectASSolution -> SelectASSolution -> Bool # (/=) :: SelectASSolution -> SelectASSolution -> Bool # | |
selectASAlloy :: SelectASConfig -> String Source #
Arguments
| :: forall (m :: Type -> Type). MonadRandom m | |
| => Bool | if sequences should contain at least one action twice |
| -> Int | the number of wrong sequences to return |
| -> (Int, Int) | how long the returned sequences should be specified by (lower, upper) bound |
| -> UMLActivityDiagram | For which AD diagram the correct sequence should be valid |
| -> MaybeT m SelectASSolution |
Generate a set of one correct and multiple wrong sequences.
selectASTask :: forall (m :: Type -> Type). (MonadPlantUml m, MonadWriteFile m, OutputCapable m) => FilePath -> SelectASInstance -> LangM m Source #
selectASSyntax :: forall (m :: Type -> Type). OutputCapable m => SelectASInstance -> Int -> LangM m Source #
selectASEvaluation :: forall (m :: Type -> Type). OutputCapable m => SelectASInstance -> Int -> LangM m Source #
selectAS :: (MonadAlloy m, MonadThrow m) => SelectASConfig -> Int -> Int -> m SelectASInstance Source #