DUNE: Uniform Navigational Environment  2.4.2
Simulators::VSIM::World Class Reference

Detailed Description

Virtual World properties.

Public Member Functions

 World (int ident, double grv[3], double tstep)
 
 ~World ()
 
void setTimeStep (double ts)
 
double getTimeStep (void)
 
void addObject (Object *)
 
void addVehicle (Vehicle *)
 
void takeStep (void)
 

Constructor & Destructor Documentation

Simulators::VSIM::World::World ( int  ident,
double  grv[3],
double  tstep 
)

Constructor.

Simulators::VSIM::World::~World ( void  )

Destructor.

Member Function Documentation

void Simulators::VSIM::World::addObject ( Object obj)

Add object to world.

Parameters
[in]objnew object.

References Simulators::VSIM::Object::insertInWorld().

void Simulators::VSIM::World::addVehicle ( Vehicle veh)

Add vehicle to world.

Parameters
[in]vehnew vehicle.

References Simulators::VSIM::Object::insertInWorld().

Referenced by Simulators::VSIM::Task::onResourceInitialization().

double Simulators::VSIM::World::getTimeStep ( void  )
inline

Returns world's integration timestep.

Returns
world integration timestep.
void Simulators::VSIM::World::setTimeStep ( double  ts)
inline

Define world's integration timestep.

Parameters
[in]tsintegration timestep.

Referenced by Simulators::VSIM::Task::onResourceInitialization().

void Simulators::VSIM::World::takeStep ( void  )

Simulation's tick.

Referenced by Simulators::VSIM::Task::task().

Collaboration diagram for Simulators::VSIM::World:
Collaboration graph