|
Nsound
0.9.4
|
#include <Nsound/MeshJunction.h>
Public Member Functions | |
| MeshJunction (const float64 &leak_gain, const float64 &tau, const float64 &delta, const float64 &gamma) | |
| Constructor. More... | |
| MeshJunction (const MeshJunction ©) | |
| This operator can not assign neighbor pointers. More... | |
| ~MeshJunction () | |
| Deconstructor. More... | |
| void | clear () |
| Clears all velicityes in the junctino. More... | |
| float64 | getVelocity () const |
| MeshJunction & | operator= (const MeshJunction &rhs) |
| This operator can not assign neighbor pointers. More... | |
| void | setNeighborNorth (MeshJunction *ptr) |
| void | setNeighborSouth (MeshJunction *ptr) |
| void | setNeighborEast (MeshJunction *ptr) |
| void | setNeighborWest (MeshJunction *ptr) |
| void | saveState () |
| Saves previous south and east velocities. More... | |
| void | strike (const float64 &velocity) |
| Adds velocity to this junction. More... | |
| void | updateVelocity () |
| updates junction velocity. More... | |
Private Member Functions | |
| void | updateBoundry () |
Private Attributes | |
| float64 | leak_gain_ |
| updates junction velocity. More... | |
| float64 | velocity_ |
| Leak gain. More... | |
| float64 | velocity_north_ |
| This junction's velocity. More... | |
| float64 | velocity_south_ |
| Velocity going north. More... | |
| float64 | velocity_east_ |
| Velocity going south. More... | |
| float64 | velocity_west_ |
| Velocity going east. More... | |
| float64 | previous_velocity_ |
| Velocity going west. More... | |
| float64 | previous_velocity_north_ |
| float64 | previous_velocity_south_ |
| float64 | previous_velocity_east_ |
| float64 | previous_velocity_west_ |
| float64 | vc_ |
| float64 | yj_ |
| float64 | yc_ |
| MeshJunction * | neighbor_north_ |
| MeshJunction * | neighbor_south_ |
| MeshJunction * | neighbor_east_ |
| MeshJunction * | neighbor_west_ |
WARNING: This is Experimental, you should not use this class as it may not be working or will change in future releases of Nsound.
Definition at line 47 of file MeshJunction.h.
| MeshJunction::MeshJunction | ( | const float64 & | leak_gain, |
| const float64 & | tau, | ||
| const float64 & | delta, | ||
| const float64 & | gamma | ||
| ) |
Constructor.
Definition at line 41 of file MeshJunction.cc.
References leak_gain_, yc_, and yj_.
| MeshJunction::MeshJunction | ( | const MeshJunction & | copy | ) |
This operator can not assign neighbor pointers.
Definition at line 84 of file MeshJunction.cc.
| MeshJunction::~MeshJunction | ( | ) |
| void MeshJunction::clear | ( | ) |
Clears all velicityes in the junctino.
Definition at line 117 of file MeshJunction.cc.
References previous_velocity_, previous_velocity_east_, previous_velocity_north_, previous_velocity_south_, previous_velocity_west_, velocity_, velocity_east_, velocity_north_, velocity_south_, and velocity_west_.
Referenced by Nsound::Mesh2D::clear().
| float64 MeshJunction::getVelocity | ( | ) | const |
Definition at line 133 of file MeshJunction.cc.
References velocity_.
Referenced by Nsound::Mesh2D::getEnergy(), Nsound::Mesh2D::strike(), and Nsound::Mesh2D::tick().
| MeshJunction & MeshJunction::operator= | ( | const MeshJunction & | rhs | ) |
This operator can not assign neighbor pointers.
Definition at line 141 of file MeshJunction.cc.
References leak_gain_, previous_velocity_, previous_velocity_east_, previous_velocity_north_, previous_velocity_south_, previous_velocity_west_, vc_, velocity_, velocity_east_, velocity_north_, velocity_south_, velocity_west_, yc_, and yj_.
| void MeshJunction::setNeighborNorth | ( | MeshJunction * | ptr | ) |
Definition at line 174 of file MeshJunction.cc.
References neighbor_north_.
Referenced by Nsound::Mesh2D::allocMemory().
| void MeshJunction::setNeighborSouth | ( | MeshJunction * | ptr | ) |
Definition at line 181 of file MeshJunction.cc.
References neighbor_south_.
Referenced by Nsound::Mesh2D::allocMemory().
| void MeshJunction::setNeighborEast | ( | MeshJunction * | ptr | ) |
Definition at line 188 of file MeshJunction.cc.
References neighbor_east_.
Referenced by Nsound::Mesh2D::allocMemory().
| void MeshJunction::setNeighborWest | ( | MeshJunction * | ptr | ) |
Definition at line 195 of file MeshJunction.cc.
References neighbor_west_.
Referenced by Nsound::Mesh2D::allocMemory().
| void MeshJunction::saveState | ( | ) |
Saves previous south and east velocities.
Definition at line 214 of file MeshJunction.cc.
References previous_velocity_, previous_velocity_east_, previous_velocity_north_, previous_velocity_south_, previous_velocity_west_, velocity_, velocity_east_, velocity_north_, velocity_south_, and velocity_west_.
Referenced by Nsound::Mesh2D::tick().
| void MeshJunction::strike | ( | const float64 & | velocity | ) |
Adds velocity to this junction.
Definition at line 202 of file MeshJunction.cc.
References velocity_, velocity_east_, velocity_north_, velocity_south_, velocity_west_, and yj_.
Referenced by Nsound::Mesh2D::tick().
| void MeshJunction::updateVelocity | ( | ) |
updates junction velocity.
Definition at line 225 of file MeshJunction.cc.
References neighbor_east_, neighbor_north_, neighbor_south_, neighbor_west_, previous_velocity_east_, previous_velocity_north_, previous_velocity_south_, previous_velocity_west_, updateBoundry(), vc_, velocity_, velocity_east_, velocity_north_, velocity_south_, velocity_west_, yc_, and yj_.
Referenced by Nsound::Mesh2D::tick().
|
private |
Definition at line 262 of file MeshJunction.cc.
References leak_gain_, neighbor_east_, neighbor_north_, neighbor_south_, neighbor_west_, velocity_east_, velocity_north_, velocity_south_, and velocity_west_.
Referenced by updateVelocity().
|
private |
updates junction velocity.
Definition at line 102 of file MeshJunction.h.
Referenced by MeshJunction(), operator=(), and updateBoundry().
|
private |
Leak gain.
Definition at line 104 of file MeshJunction.h.
Referenced by clear(), getVelocity(), operator=(), saveState(), strike(), and updateVelocity().
|
private |
This junction's velocity.
Definition at line 106 of file MeshJunction.h.
Referenced by clear(), operator=(), saveState(), strike(), updateBoundry(), and updateVelocity().
|
private |
Velocity going north.
Definition at line 107 of file MeshJunction.h.
Referenced by clear(), operator=(), saveState(), strike(), updateBoundry(), and updateVelocity().
|
private |
Velocity going south.
Definition at line 108 of file MeshJunction.h.
Referenced by clear(), operator=(), saveState(), strike(), updateBoundry(), and updateVelocity().
|
private |
Velocity going east.
Definition at line 109 of file MeshJunction.h.
Referenced by clear(), operator=(), saveState(), strike(), updateBoundry(), and updateVelocity().
|
private |
Velocity going west.
Definition at line 111 of file MeshJunction.h.
Referenced by clear(), operator=(), and saveState().
|
private |
Definition at line 112 of file MeshJunction.h.
Referenced by clear(), operator=(), saveState(), and updateVelocity().
|
private |
Definition at line 113 of file MeshJunction.h.
Referenced by clear(), operator=(), saveState(), and updateVelocity().
|
private |
Definition at line 114 of file MeshJunction.h.
Referenced by clear(), operator=(), saveState(), and updateVelocity().
|
private |
Definition at line 115 of file MeshJunction.h.
Referenced by clear(), operator=(), saveState(), and updateVelocity().
|
private |
Definition at line 117 of file MeshJunction.h.
Referenced by operator=(), and updateVelocity().
|
private |
Definition at line 118 of file MeshJunction.h.
Referenced by MeshJunction(), operator=(), strike(), and updateVelocity().
|
private |
Definition at line 119 of file MeshJunction.h.
Referenced by MeshJunction(), operator=(), and updateVelocity().
|
private |
Definition at line 121 of file MeshJunction.h.
Referenced by setNeighborNorth(), updateBoundry(), and updateVelocity().
|
private |
Definition at line 122 of file MeshJunction.h.
Referenced by setNeighborSouth(), updateBoundry(), and updateVelocity().
|
private |
Definition at line 123 of file MeshJunction.h.
Referenced by setNeighborEast(), updateBoundry(), and updateVelocity().
|
private |
Definition at line 124 of file MeshJunction.h.
Referenced by setNeighborWest(), updateBoundry(), and updateVelocity().
1.8.6