Classes:
-
EventLoopModel
–Model of an event loop containing models of reactions to events and flags.
-
EventReactionModel
–Model for reactions to an event.
-
FlagReactionModel
–Model for reactions to a flag.
EventLoopModel
EventLoopModel(el_id, graph)
Bases: ModelBase
Model of an event loop containing models of reactions to events and flags.
Attributes:
-
events_triggered
(dict[URIRef, bool]
) –if true should notify that an event is triggered in the last loop
-
flag_values
(dict[URIRef, bool]
) –value of flag in the last loop
-
event_reactions
(dict[URIRef, EventReactionModel]
) –reaction models to events
-
flag_reactions
(dict[URIRef, FlagReactionModel]
) –reaction models to flags
Parameters:
Source code in src/rdf_utils/models/event_loop.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
|
EventReactionModel
EventReactionModel(reaction_id, graph)
Bases: ModelBase
Model for reactions to an event.
Attributes:
-
event_id
(URIRef
) –URI of the event to react to
Parameters:
-
reaction_id
(URIRef
) –URI of the reaction model
-
graph
(Graph
) –RDF graph to load relevant attributes
Source code in src/rdf_utils/models/event_loop.py
32 33 34 35 36 37 38 39 |
|
FlagReactionModel
FlagReactionModel(reaction_id, graph)
Bases: ModelBase
Model for reactions to a flag.
Attributes:
-
flag_id
(URIRef
) –URI of the flag to react to
Parameters:
-
reaction_id
(URIRef
) –URI of the reaction model
-
graph
(Graph
) –RDF graph to load relevant attributes
Source code in src/rdf_utils/models/event_loop.py
54 55 56 57 58 59 60 61 |
|