VIPRA Documentation
Loading...
Searching...
No Matches
VIPRA::Behaviors::HumanBehavior Class Reference

#include <human_behavior.hpp>

Public Member Functions

 HumanBehavior (std::string behaviorName)
 
void initialize (Modules::Pedestrians const &pedset, Modules::Map const &map, Modules::Goals &goals)
 initializes behavior selector
 
void timestep (Modules::Pedestrians &pedset, Modules::Map &map, Modules::Goals &goals, VIPRA::State &state, VIPRA::delta_t deltaT)
 Evaluates behavior events, and performs actions of pedestrians.
 
void set_all_ped_types (Ptype types)
 
void add_sub_selector (auto const &subSelector)
 
void add_action (typeUID type, auto const &action)
 
auto add_event (Event const &evnt) -> VIPRA::idx
 
auto add_location (Location const &loc) -> VIPRA::idx
 
void add_objectives (std::string const &name, std::vector< Geometry::Polygon > const &locations)
 
auto get_name () const noexcept -> std::string const &
 
auto event_count () const noexcept -> VIPRA::size
 
auto location_count () const noexcept -> VIPRA::size
 
auto selector_count () noexcept -> VIPRA::size
 
auto action_count () const noexcept -> VIPRA::size
 
void set_seed (VIPRA::seed seed)
 

Detailed Description

Describes a specific human behavior. Implementations can either define the behavior directly in C++ or use a DSL.

Member Function Documentation

◆ initialize()

void VIPRA::Behaviors::HumanBehavior::initialize ( Modules::Pedestrians const & pedset,
Modules::Map const & map,
Modules::Goals & goals )

initializes behavior selector

Parameters
pedSet: pedestrian set object
map: map object
goals: goals object

◆ timestep()

void VIPRA::Behaviors::HumanBehavior::timestep ( Modules::Pedestrians & pedset,
Modules::Map & map,
Modules::Goals & goals,
VIPRA::State & state,
VIPRA::delta_t deltaT )

Evaluates behavior events, and performs actions of pedestrians.

Template Parameters
Modules::Pedestrians
Modules::Map
Modules::Goals
Parameters
pedset
map
goals
state
deltaT

The documentation for this class was generated from the following files: