verse.agents.base_agent.BaseAgent
- class verse.agents.base_agent.BaseAgent(id, code=None, file_name=None, initial_state=None, initial_mode=None)
Bases:
object
Agent Base class
Methods
TC_simulate
(mode, initialSet, time_horizon, ...)Abstract simulation function
- TC_simulate(mode, initialSet, time_horizon, time_step, map=None)
Abstract simulation function
- Parameters:
- mode: str
The current mode to simulate
- initialSet: List[float]
The initial condition to perform the simulation
- time_horizon: float
The time horizon for simulation
- time_step: float
time_step for performing simulation
- map: LaneMap, optional
Provided if the map is used
- __init__(id, code=None, file_name=None, initial_state=None, initial_mode=None)
Constructor of agent base class.
- Parameters:
- idstr
id of the agent.
- code: str
actual code of python controller
- file_name: str
file name to the python controller
- set_initial(initial_state, initial_mode, static_param=None, uncertain_param=None)
Initialize the states