Simulable.h
Go to the documentation of this file.
1 /*+-------------------------------------------------------------------------+
2  | MultiVehicle simulator (libmvsim) |
3  | |
4  | Copyright (C) 2014 Jose Luis Blanco Claraco (University of Almeria) |
5  | Copyright (C) 2017 Borys Tymchenko (Odessa Polytechnic University) |
6  | Distributed under GNU General Public License version 3 |
7  | See <http://www.gnu.org/licenses/> |
8  +-------------------------------------------------------------------------+ */
9 
10 #pragma once
11 
12 #include <mvsim/basic_types.h>
13 
14 namespace mvsim
15 {
16 class Simulable
17 {
18  public:
21  virtual void simul_pre_timestep(const TSimulContext& context)
22  { /* default: do nothing*/}
23 
26  virtual void simul_post_timestep(const TSimulContext& context)
27  { /* default: do nothing*/}
28 
32  virtual void apply_force(
33  double fx, double fy, double local_ptx = 0.0, double local_pty = 0.0)
34  { /* default: do nothing*/
35  }
36 };
37 }
virtual void simul_post_timestep(const TSimulContext &context)
Definition: Simulable.h:26
virtual void apply_force(double fx, double fy, double local_ptx=0.0, double local_pty=0.0)
Definition: Simulable.h:32
virtual void simul_pre_timestep(const TSimulContext &context)
Definition: Simulable.h:21


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:40