SphereConnectionPredicate Class Reference

Predicate for connections within a sphere with given radius. More...

#include <SphereConnectionPredicate.h>

Inheritance diagram for SphereConnectionPredicate:

Inheritance graph
[legend]
Collaboration diagram for SphereConnectionPredicate:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SphereConnectionPredicate (double radius)
 New prediacte with a given radius.
virtual bool decide (size_t src, size_t dst, RandomEngine *rnd)
 Return true if |px-py| < radius.


Detailed Description

Predicate for connections within a sphere with given radius.

Only connects SimObject's whos locations in space px and py are closer than the given radius. No self connections are made.

Definition at line 21 of file SphereConnectionPredicate.h.


Constructor & Destructor Documentation

SphereConnectionPredicate::SphereConnectionPredicate ( double  radius  )  [inline]

New prediacte with a given radius.

Definition at line 26 of file SphereConnectionPredicate.h.


Member Function Documentation

virtual bool SphereConnectionPredicate::decide ( size_t  src,
size_t  dst,
RandomEngine rnd 
) [inline, virtual]


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

Generated on Wed Jul 9 16:34:55 2008 for PCSIM by  doxygen 1.5.5