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:
objectClass 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:
MessageSimple class to store messages between agents that share their awareness vector.
- Parameters:
- awareness_database: dict[int, AwarenessVector]
- class symaware.base.data.data_structures.KnowledgeDatabase[source]
Bases:
TypedDictSimple 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:
objectSimple class to store messages between agents.
- class symaware.base.data.data_structures.Observation(observed_object_id)[source]
Bases:
objecthelp 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:
Observationhelp class for an observation
- Parameters:
symaware.base.data.types module
- class symaware.base.data.types.SymawareConfig[source]
Bases:
TypedDictSymAware configuration dictionary, used to launch a default SymAware instance with the specified components.
- Parameters:
agent – Tuple or list of agents to be used in the SymAware instance
controller – Controller(s) of the agent(s)
knowledge_database – Knowledge databases used to initialise the agents
awareness_vector – Awareness vectors used to initialise the agents
risk_estimator – Risk estimator(s) of the agent(s)
uncertainty_estimator – Uncertainty estimator(s) of the agent(s)
communication_sender – Communication sender(s) of the agent(s)
communication_receiver – Communication receiver(s) of the agent(s)
perception_system – Perception system(s) of the agent(s)
environment – Environment that the agents will be added to and interact with
- communication_receiver: tuple[CommunicationReceiver] | list[CommunicationReceiver]
- communication_sender: tuple[CommunicationSender] | list[CommunicationSender]
- controller: tuple[Controller] | list[Controller]
- environment: Environment
- perception_system: tuple[PerceptionSystem] | list[PerceptionSystem]
- risk_estimator: tuple[RiskEstimator] | list[RiskEstimator]
- uncertainty_estimator: tuple[UncertaintyEstimator] | list[UncertaintyEstimator]