symaware.base.data package
Submodules
symaware.base.data.data_structures module
- class symaware.base.data.data_structures.AwarenessVector(ID, state, intent={}, risk={}, uncertainty={})[source]
Bases:
object
Class used to store state,id,intent,discrete modes of an agent and its neighbours.
Note
An agent has basically an opinion on its awareness vector and its neighbours state
- Parameters:
ID (
int
) – id of the agentstate (
ndarray
) – current continuous state of the agent expressed as a numpy arrayintent (
TimeSeries
, default:{}
) – intent vector. Should be updated by the controllerrisk (
TimeSeries
, default:{}
) – risk evaluation vector. Should be updated by the risk estimatoruncertainty (
TimeSeries
, default:{}
) – uncertainty evaluation vector. Should be updated by the uncertainty estimator
- property intent: TimeSeries
- property risk: TimeSeries
- property uncertainty: TimeSeries
- class symaware.base.data.data_structures.InfoMessage(sender_id, receiver_id, awareness_database, knowledge_database)[source]
Bases:
Message
Simple class to store messages between agents that share their awareness vector.
- Parameters:
-
awareness_database:
dict
[int
,AwarenessVector
]
-
knowledge_database:
dict
[int
,TypeVar
(T
, bound=KnowledgeDatabase
)]
- class symaware.base.data.data_structures.KnowledgeDatabase[source]
Bases:
TypedDict
Simple dictionary to store knowledge about the system. It is highly recommended to use TypedDict to enforce the structure of the knowledge database.
- class symaware.base.data.data_structures.Message(sender_id, receiver_id)[source]
Bases:
object
Simple class to store messages between agents.
- class symaware.base.data.data_structures.Observation(observed_object_id)[source]
Bases:
object
help class for an observation
- Parameters:
observed_object_id (
int
) – id of the agent that is the subject of the observation
- class symaware.base.data.data_structures.StateObservation(observed_object_id, state)[source]
Bases:
Observation
help class for an observation
- Parameters:
symaware.base.data.types module
- class symaware.base.data.types.SymawareConfig[source]
Bases:
TypedDict
- agent: tuple[Agent] | list[Agent]
- awareness_vector: tuple[MultiAgentAwarenessVector] | list[MultiAgentAwarenessVector]
- communication_receiver: tuple[CommunicationReceiver] | list[CommunicationReceiver]
- communication_sender: tuple[CommunicationSender] | list[CommunicationSender]
- controller: tuple[Controller] | list[Controller]
- environment: Environment
- knowledge_database: tuple[MultiAgentKnowledgeDatabase] | list[MultiAgentKnowledgeDatabase]
- perception_system: tuple[PerceptionSystem] | list[PerceptionSystem]
- risk_estimator: tuple[RiskEstimator] | list[RiskEstimator]
- uncertainty_estimator: tuple[UncertaintyEstimator] | list[UncertaintyEstimator]