SpherePackingScenarioGenerator
|
#include <Sphere.h>
Public Member Functions | |
Vector< DIM, int > | getCell () |
double | getCell (int k) |
double | getLastUpdateTime () |
Event | getNextEvent () |
Vector< DIM, double > | getPosition () |
double | getPosition (int k) |
Vector< DIM, double > | getVelocity () |
void | setCell (Vector< DIM, int > cell) |
void | setLastUpdateTime (double time) |
void | setNextEvent (Event e) |
void | setPosition (Vector< DIM, double > x) |
void | setPosition (int k, double size) |
void | setVelocity (Vector< DIM, double > v) |
void | setVelocity (int k, double velocity) |
Sphere () | |
Sphere (const Sphere &s) | |
Sphere (int i_i, Vector< DIM > x, Vector< DIM, int > cell_i, double lutime_i) | |
~Sphere () | |
Public Attributes | |
Event | nextEvent |
Private Attributes | |
Vector< DIM, int > | cell |
int | i |
double | lutime |
Event | nextcollision |
Vector< DIM, double > | v |
Vector< DIM, double > | x |
Class Sphere generate one sphere
constructor
algorithms::ls::Sphere::Sphere | ( | const Sphere & | s | ) |
constructor
algorithms::ls::Sphere::Sphere | ( | int | i_i, |
Vector< DIM > | x, | ||
Vector< DIM, int > | cell_i, | ||
double | lutime_i | ||
) |
constructor
destructor
Vector< DIM, int > algorithms::ls::Sphere::getCell | ( | ) |
double algorithms::ls::Sphere::getCell | ( | int | k | ) |
double algorithms::ls::Sphere::getLastUpdateTime | ( | ) |
Vector< DIM, double > algorithms::ls::Sphere::getPosition | ( | ) |
double algorithms::ls::Sphere::getPosition | ( | int | k | ) |
Vector< DIM, double > algorithms::ls::Sphere::getVelocity | ( | ) |
void algorithms::ls::Sphere::setCell | ( | Vector< DIM, int > | cell | ) |
void algorithms::ls::Sphere::setLastUpdateTime | ( | double | time | ) |
void algorithms::ls::Sphere::setNextEvent | ( | Event | e | ) |
void algorithms::ls::Sphere::setPosition | ( | Vector< DIM, double > | x | ) |
void algorithms::ls::Sphere::setPosition | ( | int | k, |
double | size | ||
) |
void algorithms::ls::Sphere::setVelocity | ( | Vector< DIM, double > | v | ) |
void algorithms::ls::Sphere::setVelocity | ( | int | k, |
double | velocity | ||
) |
Vector<DIM, int> algorithms::ls::Sphere::cell [private] |
cell that it belongs to
int algorithms::ls::Sphere::i [private] |
Sphere ID
double algorithms::ls::Sphere::lutime [private] |
last update time
Event algorithms::ls::Sphere::nextcollision [private] |
next collision if next Event is transfer
next Event...can be collision or transfer
Vector<DIM, double> algorithms::ls::Sphere::v [private] |
velocity
Vector<DIM, double> algorithms::ls::Sphere::x [private] |
position