SwimMomentumCondition Class Reference

#include <SwimMomentumCondition.h>

Inheritance diagram for SwimMomentumCondition:
SwimCondition

List of all members.

Public Member Functions

 SwimMomentumCondition ()
virtual ~SwimMomentumCondition ()
 SwimMomentumCondition (double pThreshold)
virtual bool Satisfied (const SwimParticle &particle)

Private Attributes

double fPThreshold

Detailed Description

Definition at line 18 of file SwimMomentumCondition.h.


Constructor & Destructor Documentation

SwimMomentumCondition::SwimMomentumCondition (  )  [inline]

Definition at line 21 of file SwimMomentumCondition.h.

00021 {;}

virtual SwimMomentumCondition::~SwimMomentumCondition (  )  [inline, virtual]

Definition at line 22 of file SwimMomentumCondition.h.

00022 {;}

SwimMomentumCondition::SwimMomentumCondition ( double  pThreshold  ) 

Definition at line 14 of file SwimMomentumCondition.cxx.

00014                                                               :
00015   fPThreshold(pThreshold)
00016 {}


Member Function Documentation

bool SwimMomentumCondition::Satisfied ( const SwimParticle particle  )  [virtual]

Implements SwimCondition.

Definition at line 20 of file SwimMomentumCondition.cxx.

References fPThreshold, and SwimParticle::GetMomentumModulus().

00021 {
00022   if (particle.GetMomentumModulus() <= fPThreshold)
00023     return true;
00024   return false;
00025 }


Member Data Documentation

Definition at line 28 of file SwimMomentumCondition.h.

Referenced by Satisfied().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1