modelling-tasks-0.0.0.1
Safe HaskellNone
LanguageHaskell2010

Modelling.ActivityDiagram.SelectAS

Synopsis

Documentation

data SelectASInstance Source #

Instances

Instances details
Reader SelectASInstance Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

ToDoc SelectASInstance Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

Generic SelectASInstance Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

Associated Types

type Rep SelectASInstance 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

type Rep SelectASInstance = D1 ('MetaData "SelectASInstance" "Modelling.ActivityDiagram.SelectAS" "modelling-tasks-0.0.0.1-2KiclaEArwR4yz1IHg8eKf" 'False) (C1 ('MetaCons "SelectASInstance" 'PrefixI 'True) ((S1 ('MetaSel ('Just "activityDiagram") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UMLActivityDiagram) :*: S1 ('MetaSel ('Just "actionSequences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Int (Bool, [String])))) :*: (S1 ('MetaSel ('Just "drawSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PlantUmlConfig) :*: (S1 ('MetaSel ('Just "showSolution") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "addText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ExtraText)))))
Read SelectASInstance Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

Show SelectASInstance Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

Eq SelectASInstance Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

Hashable SelectASInstance Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

type Rep SelectASInstance Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

type Rep SelectASInstance = D1 ('MetaData "SelectASInstance" "Modelling.ActivityDiagram.SelectAS" "modelling-tasks-0.0.0.1-2KiclaEArwR4yz1IHg8eKf" 'False) (C1 ('MetaCons "SelectASInstance" 'PrefixI 'True) ((S1 ('MetaSel ('Just "activityDiagram") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UMLActivityDiagram) :*: S1 ('MetaSel ('Just "actionSequences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Int (Bool, [String])))) :*: (S1 ('MetaSel ('Just "drawSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PlantUmlConfig) :*: (S1 ('MetaSel ('Just "showSolution") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "addText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ExtraText)))))

data SelectASConfig Source #

Instances

Instances details
Reader SelectASConfig Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

ToDoc SelectASConfig Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

Methods

toDocPrec :: Int -> SelectASConfig -> Doc

toDocList :: [SelectASConfig] -> Doc

Generic SelectASConfig Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

Associated Types

type Rep SelectASConfig 
Instance details

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))))))
Read SelectASConfig Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

Show SelectASConfig Source # 
Instance details

Defined in Modelling.ActivityDiagram.SelectAS

type Rep SelectASConfig Source # 
Instance details

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))))))

selectActionSequence 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 #