Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Modelling.PetriNet.Reach.Type
Description
originally from Autotool (https:/gitlab.imn.htwk-leipzig.deautotool/all0) based on revision: ad25a990816a162fdd13941ff889653f22d6ea0a based on file: collectionsrcPetri/Type.hs
Synopsis
- type Connection s t = ([s], t, [s])
- newtype State s = State {}
- mapState :: Ord b => (a -> b) -> State a -> State b
- mark :: Ord s => State s -> s -> Int
- data Capacity s
- mapCapacity :: Ord a => (s -> a) -> Capacity s -> Capacity a
- data Net s t = Net {
- places :: Set s
- transitions :: Set t
- connections :: [Connection s t]
- capacity :: Capacity s
- start :: State s
- bimapNet :: (Ord a, Ord b) => (s -> a) -> (t -> b) -> Net s t -> Net a b
- allNonNegative :: State a -> Bool
- conforms :: Ord k => Capacity k -> State k -> Bool
- newtype Place = Place Int
- newtype ShowPlace = ShowPlace Place
- showPlace :: Place -> String
- parsePlacePrec :: Int -> Parser Place
- newtype Transition = Transition Int
- newtype ShowTransition = ShowTransition Transition
- showTransition :: Transition -> String
- parseTransitionPrec :: Int -> Parser Transition
- newtype TransitionsList = TransitionsList {}
- parseTransitionsListPrec :: Int -> Parser TransitionsList
- example :: (Net Place Transition, State Place)
- hasIsolatedNodes :: (Ord s, Ord t) => Net s t -> Bool
Documentation
type Connection s t = ([s], t, [s]) Source #
Instances
(Data s, Ord s) => Data (State s) Source # | |
Defined in Modelling.PetriNet.Reach.Type Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> State s -> c (State s) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (State s) # toConstr :: State s -> Constr # dataTypeOf :: State s -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (State s)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (State s)) # gmapT :: (forall b. Data b => b -> b) -> State s -> State s # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> State s -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> State s -> r # gmapQ :: (forall d. Data d => d -> u) -> State s -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> State s -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> State s -> m (State s) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> State s -> m (State s) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> State s -> m (State s) # | |
Generic (State s) Source # | |
(Ord s, Read s) => Read (State s) Source # | |
Show s => Show (State s) Source # | |
Ord s => Eq (State s) Source # | |
Ord s => Ord (State s) Source # | |
Defined in Modelling.PetriNet.Reach.Type | |
type Rep (State s) Source # | |
Defined in Modelling.PetriNet.Reach.Type |
Instances
(Data s, Ord s) => Data (Capacity s) Source # | |
Defined in Modelling.PetriNet.Reach.Type Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Capacity s -> c (Capacity s) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Capacity s) # toConstr :: Capacity s -> Constr # dataTypeOf :: Capacity s -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Capacity s)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Capacity s)) # gmapT :: (forall b. Data b => b -> b) -> Capacity s -> Capacity s # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Capacity s -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Capacity s -> r # gmapQ :: (forall d. Data d => d -> u) -> Capacity s -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Capacity s -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Capacity s -> m (Capacity s) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Capacity s -> m (Capacity s) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Capacity s -> m (Capacity s) # | |
Generic (Capacity s) Source # | |
(Ord s, Read s) => Read (Capacity s) Source # | |
Show s => Show (Capacity s) Source # | |
Eq s => Eq (Capacity s) Source # | |
Ord s => Ord (Capacity s) Source # | |
Defined in Modelling.PetriNet.Reach.Type | |
type Rep (Capacity s) Source # | |
Defined in Modelling.PetriNet.Reach.Type type Rep (Capacity s) = D1 ('MetaData "Capacity" "Modelling.PetriNet.Reach.Type" "modelling-tasks-0.0.0.1-5lkaY76HE6k79qLVIy6Ku2" 'False) (C1 ('MetaCons "Unbounded" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AllBounded" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :+: C1 ('MetaCons "Bounded" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map s Int))))) |
Constructors
Net | |
Fields
|
Instances
(Data s, Data t, Ord s, Ord t) => Data (Net s t) Source # | |
Defined in Modelling.PetriNet.Reach.Type Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Net s t -> c (Net s t) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Net s t) # toConstr :: Net s t -> Constr # dataTypeOf :: Net s t -> DataType # dataCast1 :: Typeable t0 => (forall d. Data d => c (t0 d)) -> Maybe (c (Net s t)) # dataCast2 :: Typeable t0 => (forall d e. (Data d, Data e) => c (t0 d e)) -> Maybe (c (Net s t)) # gmapT :: (forall b. Data b => b -> b) -> Net s t -> Net s t # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Net s t -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Net s t -> r # gmapQ :: (forall d. Data d => d -> u) -> Net s t -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Net s t -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Net s t -> m (Net s t) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Net s t -> m (Net s t) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Net s t -> m (Net s t) # | |
Generic (Net s t) Source # | |
(Read s, Read t, Ord s, Ord t) => Read (Net s t) Source # | |
(Show s, Show t) => Show (Net s t) Source # | |
(Eq t, Ord s) => Eq (Net s t) Source # | |
(Ord s, Ord t) => Ord (Net s t) Source # | |
Defined in Modelling.PetriNet.Reach.Type | |
type Rep (Net s t) Source # | |
Defined in Modelling.PetriNet.Reach.Type type Rep (Net s t) = D1 ('MetaData "Net" "Modelling.PetriNet.Reach.Type" "modelling-tasks-0.0.0.1-5lkaY76HE6k79qLVIy6Ku2" 'False) (C1 ('MetaCons "Net" 'PrefixI 'True) ((S1 ('MetaSel ('Just "places") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set s)) :*: S1 ('MetaSel ('Just "transitions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set t))) :*: (S1 ('MetaSel ('Just "connections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Connection s t]) :*: (S1 ('MetaSel ('Just "capacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Capacity s)) :*: S1 ('MetaSel ('Just "start") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (State s)))))) |
allNonNegative :: State a -> Bool Source #
Instances
Data Place Source # | |
Defined in Modelling.PetriNet.Reach.Type Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Place -> c Place # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Place # dataTypeOf :: Place -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Place) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Place) # gmapT :: (forall b. Data b => b -> b) -> Place -> Place # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Place -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Place -> r # gmapQ :: (forall d. Data d => d -> u) -> Place -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Place -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Place -> m Place # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Place -> m Place # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Place -> m Place # | |
Enum Place Source # | |
Defined in Modelling.PetriNet.Reach.Type | |
Generic Place Source # | |
Read Place Source # | |
Show Place Source # | |
Eq Place Source # | |
Ord Place Source # | |
type Rep Place Source # | |
Defined in Modelling.PetriNet.Reach.Type |
Instances
Show ShowPlace Source # | |
Eq ShowPlace Source # | |
Ord ShowPlace Source # | |
newtype Transition Source #
Constructors
Transition Int |
Instances
newtype ShowTransition Source #
Constructors
ShowTransition Transition |
Instances
Show ShowTransition Source # | |
Defined in Modelling.PetriNet.Reach.Type Methods showsPrec :: Int -> ShowTransition -> ShowS # show :: ShowTransition -> String # showList :: [ShowTransition] -> ShowS # | |
Eq ShowTransition Source # | |
Defined in Modelling.PetriNet.Reach.Type Methods (==) :: ShowTransition -> ShowTransition -> Bool # (/=) :: ShowTransition -> ShowTransition -> Bool # | |
Ord ShowTransition Source # | |
Defined in Modelling.PetriNet.Reach.Type Methods compare :: ShowTransition -> ShowTransition -> Ordering # (<) :: ShowTransition -> ShowTransition -> Bool # (<=) :: ShowTransition -> ShowTransition -> Bool # (>) :: ShowTransition -> ShowTransition -> Bool # (>=) :: ShowTransition -> ShowTransition -> Bool # max :: ShowTransition -> ShowTransition -> ShowTransition # min :: ShowTransition -> ShowTransition -> ShowTransition # |
showTransition :: Transition -> String Source #
newtype TransitionsList Source #
Constructors
TransitionsList | |
Fields |
Instances
Generic TransitionsList Source # | |
Defined in Modelling.PetriNet.Reach.Type Associated Types type Rep TransitionsList :: Type -> Type # Methods from :: TransitionsList -> Rep TransitionsList x # to :: Rep TransitionsList x -> TransitionsList # | |
Show TransitionsList Source # | |
Defined in Modelling.PetriNet.Reach.Type Methods showsPrec :: Int -> TransitionsList -> ShowS # show :: TransitionsList -> String # showList :: [TransitionsList] -> ShowS # | |
type Rep TransitionsList Source # | |
Defined in Modelling.PetriNet.Reach.Type type Rep TransitionsList = D1 ('MetaData "TransitionsList" "Modelling.PetriNet.Reach.Type" "modelling-tasks-0.0.0.1-5lkaY76HE6k79qLVIy6Ku2" 'True) (C1 ('MetaCons "TransitionsList" 'PrefixI 'True) (S1 ('MetaSel ('Just "transitionsList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Transition]))) |