![]() |
VR-Forces 4.10 Class Documentation
|
The DtAutomaticBackendSelector will choose a backend based on the fewest number of simulated objects on that back-end, counted as 1 per each Entity/Unit and 1/10 for each Control Object. More...

Classes | |
| struct | BackendStatus |
Public Member Functions | |
| DtAutomaticBackendSelector () | |
| virtual | ~DtAutomaticBackendSelector () |
| virtual bool | init (DtVrfBackendListener *) |
| virtual DtSimulationAddress | backendCreationAddress (const DtEntityType &ot, const DtSimulationAddress &original) |
Public Member Functions inherited from DtBackendSelectorHandler | |
| DtBackendSelectorHandler () | |
| virtual | ~DtBackendSelectorHandler () |
Protected Types | |
| typedef std::map< int, std::vector < DtSimulationAddress > > | Scores |
| typedef std::map< DtString, BackendStatus > | Backends |
Protected Member Functions | |
| virtual void | processBackendDiscovered (const DtSimulationAddress &) |
| virtual void | processBackendRemoved (const DtSimulationAddress &) |
| virtual void | processBackendStatusMessage (const DtSimulationAddress &) |
| virtual int | totalScore (const DtBackend::ObjectCounts &) const |
| Total score based on current object counts given. More... | |
| virtual int | score (int kind, int category) const |
| The score of something for a kind and category. More... | |
Static Protected Member Functions | |
| static void | backedDiscoveredCallback (const DtSimulationAddress &, void *) |
| static void | backedRemovedCallback (const DtSimulationAddress &, void *) |
| static void | backendStatusMessageCallback (const DtSimulationAddress &, void *) |
Protected Attributes | |
| DtVrfBackendListener * | myListener |
| Scores | myScores |
| Backends | myBackends |
The DtAutomaticBackendSelector will choose a backend based on the fewest number of simulated objects on that back-end, counted as 1 per each Entity/Unit and 1/10 for each Control Object.
When a backend is selected it's score will be modified by the potentially created object, and, will then be kept in that state until a backend update is received so it can recalculate. The lowest score will be the backend selected. If multiple backends have the lowest score, then, one will be selected at random
|
protected |
|
protected |
| DtAutomaticBackendSelector::DtAutomaticBackendSelector | ( | ) |
|
virtual |
|
virtual |
Implements DtBackendSelectorHandler.
|
virtual |
Implements DtBackendSelectorHandler.
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
protectedvirtual |
Total score based on current object counts given.
The score of something for a kind and category.
|
protected |
|
protected |
|
protected |