Class report (event/reports/bumper.h)
Overview
Polymorphic class report gives the user a complete set of tools for the analysis of an event and its elements in a convenient form. It’s also a fundamental element required for building a valid lambda function that can be correctly wrapped by the callback class (see callback folder documentation) into a valid subscription for the dispatcher.
This report is fully specialized for events :: bumper.
Interface
Since the interface is based on many public nested classes, we report directly the main constructor and the nested getters in their most convenient form.
Constructor
-
report(const events :: bumper & event)builds the report and all the public nested classes.
Getters (and nested getters in convenient form)
Getters for general informations
-
const double & time() consttime of the event.
-
const double & module() constmodule of the collision’s impulse.
Getters for bumper
-
const vec & position() constposition of bumper.
-
const double & radius() constradius of bumper.
-
const double & temperature() consttemperature of bumper.
-
const bool & multiplicative() constis the bumper multiplicative?
-
const bool & randomness() constis the bumper random?
Getters for molecule
-
const vec & velocity.before() constvelocity of molecule before the event.
-
const vec & velocity.after() constvelocity of molecule after the event.
-
const vec velocity.delta() constvariation of velocity of molecule.
-
const vec & momentum.before() constmomentum of molecule before the event.
-
const vec & momentum.after() constmomentum of molecule after the event.
-
const vec momentum.delta() constvariation of momentum of molecule.
-
const double & angular_velocity.before() constangular velocity of molecule before the event.
-
const double & angular_velocity.after() constangular velocity of molecule after the event.
-
const double angular_velocity.delta() constvariation of angular velocity of molecule.
-
const double & angular_momentum.before() constangular momentum of molecule before the event.
-
const double & angular_momentum.after() constangular momentum of molecule after the event.
-
const double angular_momentum.delta() constvariation of angular momentum of molecule.
-
const double energy.before() constenergy of molecule before the event.
-
const double energy.after() constenergy of molecule after the event.
-
const double energy.delta() constvariation of energy of molecule.
-
const size_t & id() constid of molecule.
-
const size_t & atom() constid of molecule’s atom involved in the collision.
-
const vec & position() constposition of molecule at the collision moment.
-
const double & orientation() constorientation of molecule at the orientation moment.
-
const double & mass() constmass of molecule.