Sirikata
Public Member Functions | Private Member Functions | Private Attributes
Sirikata::LocalPintoServerQuerier Class Reference

LocalPintoServerQuerier is a dummy implementation of PintoServerQuerier for single server setups. More...

#include <LocalPintoServerQuerier.hpp>

Inheritance diagram for Sirikata::LocalPintoServerQuerier:
Collaboration diagram for Sirikata::LocalPintoServerQuerier:

List of all members.

Public Member Functions

 LocalPintoServerQuerier (SpaceContext *ctx)
virtual ~LocalPintoServerQuerier ()
virtual void start ()
virtual void stop ()
virtual void updateRegion (const BoundingBox3f &region)
 Update this server's parameters.
virtual void updateLargestObject (float max_radius)
 Update this server's parameters.
virtual void updateQuery (const String &update)
 Update query parameters with the server.

Private Member Functions

void notifyResult ()
void notifyLocUpdate ()

Private Attributes

SpaceContextmContext
BoundingBox3f3f mRegion
float32 mLargest
UUID mRootNodeID
uint64 mSeqnoSource

Detailed Description

LocalPintoServerQuerier is a dummy implementation of PintoServerQuerier for single server setups.

Since there is only one server, only a minimal set of results are returned.

Previous versions of this class did nothing, but for some Proximity implementations this isn't sufficient since they expect results from the Pinto server before they'll progress to evaluating any objects on any server. For these implementations, this class does implement what amounts to a single-node Pinto tree where the only node is for the only space server in the system and the result is always return immediately (though asynchronously), purely for bootstrapping.


Constructor & Destructor Documentation

Sirikata::LocalPintoServerQuerier::LocalPintoServerQuerier ( SpaceContext ctx) [inline]
virtual Sirikata::LocalPintoServerQuerier::~LocalPintoServerQuerier ( ) [inline, virtual]

Member Function Documentation

void Sirikata::LocalPintoServerQuerier::notifyLocUpdate ( ) [inline, private]
void Sirikata::LocalPintoServerQuerier::notifyResult ( ) [inline, private]
virtual void Sirikata::LocalPintoServerQuerier::start ( ) [inline, virtual]
virtual void Sirikata::LocalPintoServerQuerier::stop ( ) [inline, virtual]

Implements Sirikata::Service.

virtual void Sirikata::LocalPintoServerQuerier::updateLargestObject ( float  max_radius) [inline, virtual]

Update this server's parameters.

Parameters:
max_radiussize of the largest object in the region

Implements Sirikata::PintoServerQuerier.

References Sirikata::Context::mainStrand, mContext, mLargest, notifyLocUpdate(), and Sirikata::Network::IOStrand::post().

virtual void Sirikata::LocalPintoServerQuerier::updateQuery ( const String &  update) [inline, virtual]

Update query parameters with the server.

Parameters:
updatea string containing the data to send to the server as an update

Implements Sirikata::PintoServerQuerier.

virtual void Sirikata::LocalPintoServerQuerier::updateRegion ( const BoundingBox3f &  region) [inline, virtual]

Update this server's parameters.

Parameters:
regionbounding box of the region covered by this server

Implements Sirikata::PintoServerQuerier.

References Sirikata::Context::mainStrand, mContext, mRegion, notifyLocUpdate(), and Sirikata::Network::IOStrand::post().


Member Data Documentation

BoundingBox3f3f Sirikata::LocalPintoServerQuerier::mRegion [private]

Referenced by notifyResult().

Referenced by notifyLocUpdate(), and notifyResult().


The documentation for this class was generated from the following file: