SpherePackingScenarioGenerator
|
#include <Sphere.h>
Public Member Functions | |
tarch::la::Vector< DIM, int > | getCell () |
double | getCell (int k) |
double | getGrowthrate () const |
double | getLastUpdateTime () const |
double | getMass () const |
Event | getNextEvent () const |
tarch::la::Vector< DIM, double > | getPosition () const |
double | getPosition (const unsigned int k) |
double | getRadius () const |
tarch::la::Vector< DIM, double > | getVelocity () const |
void | setCell (tarch::la::Vector< DIM, int > cell) |
void | setGrowthrate (double growthrate) |
void | setLastUpdateTime (double time) |
void | setMass (double Mass) |
void | setNextEvent (Event e) |
void | setPosition (tarch::la::Vector< DIM, double > x) |
void | setPosition (int k, double size) |
void | setRadius (double radius) |
void | setVelocity (tarch::la::Vector< DIM, double > v) |
void | setVelocity (int k, double velocity) |
Sphere () | |
Sphere (const Sphere &s) | |
Sphere (int i_i, tarch::la::Vector< DIM, double > x, tarch::la::Vector< DIM, int > cell_i, double lutime_i, double r_i, double gr_i, double m_i) | |
~Sphere () | |
Public Attributes | |
Event | nextEvent |
Private Attributes | |
tarch::la::Vector< DIM, int > | cell |
double | gr |
int | i |
double | lutime |
double | m |
Event | nextcollision |
double | r |
tarch::la::Vector< DIM, double > | v |
tarch::la::Vector< DIM, double > | x |
Class Sphere generate one sphere
constructor
algorithms::ls2::Sphere::Sphere | ( | const Sphere & | s | ) |
constructor
algorithms::ls2::Sphere::Sphere | ( | int | i_i, |
tarch::la::Vector< DIM, double > | x, | ||
tarch::la::Vector< DIM, int > | cell_i, | ||
double | lutime_i, | ||
double | r_i, | ||
double | gr_i, | ||
double | m_i | ||
) |
constructor
destructor
tarch::la::Vector< DIM, int > algorithms::ls2::Sphere::getCell | ( | ) |
double algorithms::ls2::Sphere::getCell | ( | int | k | ) |
double algorithms::ls2::Sphere::getGrowthrate | ( | ) | const |
double algorithms::ls2::Sphere::getLastUpdateTime | ( | ) | const |
double algorithms::ls2::Sphere::getMass | ( | ) | const |
Event algorithms::ls2::Sphere::getNextEvent | ( | ) | const |
tarch::la::Vector<DIM, double> algorithms::ls2::Sphere::getPosition | ( | ) | const [inline] |
double algorithms::ls2::Sphere::getPosition | ( | const unsigned int | k | ) | [inline] |
double algorithms::ls2::Sphere::getRadius | ( | ) | const [inline] |
Reimplemented from algorithms::geometries::SphereGeometry.
tarch::la::Vector<DIM, double> algorithms::ls2::Sphere::getVelocity | ( | ) | const [inline] |
void algorithms::ls2::Sphere::setCell | ( | tarch::la::Vector< DIM, int > | cell | ) |
void algorithms::ls2::Sphere::setGrowthrate | ( | double | growthrate | ) |
void algorithms::ls2::Sphere::setLastUpdateTime | ( | double | time | ) |
void algorithms::ls2::Sphere::setMass | ( | double | Mass | ) |
void algorithms::ls2::Sphere::setNextEvent | ( | Event | e | ) |
void algorithms::ls2::Sphere::setPosition | ( | tarch::la::Vector< DIM, double > | x | ) |
void algorithms::ls2::Sphere::setPosition | ( | int | k, |
double | size | ||
) |
void algorithms::ls2::Sphere::setRadius | ( | double | radius | ) |
Reimplemented from algorithms::geometries::SphereGeometry.
void algorithms::ls2::Sphere::setVelocity | ( | tarch::la::Vector< DIM, double > | v | ) |
void algorithms::ls2::Sphere::setVelocity | ( | int | k, |
double | velocity | ||
) |
tarch::la::Vector<DIM, int> algorithms::ls2::Sphere::cell [private] |
cell that it belongs to
double algorithms::ls2::Sphere::gr [private] |
int algorithms::ls2::Sphere::i [private] |
Sphere ID
double algorithms::ls2::Sphere::lutime [private] |
last update time
double algorithms::ls2::Sphere::m [private] |
Sphere mass
Event algorithms::ls2::Sphere::nextcollision [private] |
next collision if next Event is transfer
next Event...can be collision or transfer
double algorithms::ls2::Sphere::r [private] |
tarch::la::Vector<DIM, double> algorithms::ls2::Sphere::v [private] |
velocity
tarch::la::Vector<DIM, double> algorithms::ls2::Sphere::x [private] |
position