smarts.sstudio.sstypes.entry_tactic module
- class smarts.sstudio.sstypes.entry_tactic.EntryTactic(start_time: float)[source]
The tactic that the simulation should use to acquire a vehicle for an agent.
- start_time: float
- class smarts.sstudio.sstypes.entry_tactic.IdEntryTactic(start_time: float, actor_id: str, condition: ~smarts.sstudio.sstypes.condition.Condition = LiteralCondition(literal=<ConditionState.TRUE: 4>))[source]
An entry tactic which repurposes a pre-existing actor for an agent. Selects that actor by id.
- actor_id: str
The id of the actor to take over.
- class smarts.sstudio.sstypes.entry_tactic.TrapEntryTactic(start_time: float, wait_to_hijack_limit_s: float = 0, zone: ~smarts.sstudio.sstypes.zone.MapZone | None = None, exclusion_prefixes: ~typing.Tuple[str, ...] = (), default_entry_speed: float | None = None, condition: ~smarts.sstudio.sstypes.condition.Condition = LiteralCondition(literal=<ConditionState.TRUE: 4>))[source]
An entry tactic that repurposes a pre-existing vehicle for an agent.
- condition: Condition = LiteralCondition(literal=<ConditionState.TRUE: 4>)
A condition that is used to add additional exclusions.
- default_entry_speed: float | None = None
The speed that the vehicle starts at when the hijack limit expiry emits a new vehicle
- exclusion_prefixes: Tuple[str, ...] = ()
The prefixes of vehicles to avoid hijacking
- wait_to_hijack_limit_s: float = 0
The amount of seconds a hijack will wait to get a vehicle before defaulting to a new vehicle