World Ocean Simulation System (WOSS) library
woss::Deck41TypeTests Class Reference

Abstraction layer for database and data manipulation. More...

#include <sediment-deck41-db-logic-control.h>

Collaboration diagram for woss::Deck41TypeTests:
Collaboration graph

Public Member Functions

 Deck41TypeTests ()
 
bool conditionFloorA (const Deck41Types &types) const
 
bool conditionFloorB (const Deck41Types &types) const
 
bool conditionFloorC (const Deck41Types &types) const
 
bool conditionFloorD (const Deck41Types &types) const
 
bool conditionFloorE (const Deck41Types &types) const
 
bool conditionFloorF (const Deck41Types &types) const
 
bool conditionFloorG (const Deck41Types &types) const
 
bool getConditionA () const
 
bool getConditionB () const
 
bool getConditionC () const
 
bool getConditionD () const
 
bool getConditionE () const
 
bool getConditionF () const
 
bool getConditionG () const
 
void updateAllConditions (const Deck41Types &types)
 

Private Attributes

bool condition_a
 
bool condition_b
 
bool condition_c
 
bool condition_d
 
bool condition_e
 
bool condition_f
 
bool condition_g
 

Detailed Description

Abstraction layer for database and data manipulation.

Deck41TypeTests helps SedimDeck41Db deciding what is the best DECK41 Sediment value to return. To this purpose it provides 8 conditional tests

Constructor & Destructor Documentation

◆ Deck41TypeTests()

Deck41TypeTests::Deck41TypeTests ( )

Deck41TypeTests default constructor

Member Function Documentation

◆ conditionFloorA()

bool woss::Deck41TypeTests::conditionFloorA ( const Deck41Types &  types) const
inline

Deck41TypeTests test A. If it succeed SedimDeck41Db will return DECK41 main type as Sediment

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ conditionFloorB()

bool woss::Deck41TypeTests::conditionFloorB ( const Deck41Types &  types) const
inline

Deck41TypeTests test B. If it succeed SedimDeck41Db will return DECK41 secondary type as Sediment

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ conditionFloorC()

bool woss::Deck41TypeTests::conditionFloorC ( const Deck41Types &  types) const
inline

Deck41TypeTests test C. If it succeed SedimDeck41Db will try other coordinates, if those fails it will return DECK41 main type as Sediment

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ conditionFloorD()

bool woss::Deck41TypeTests::conditionFloorD ( const Deck41Types &  types) const
inline

Deck41TypeTests test D. If it succeed SedimDeck41Db will try other coordinates, if those fails it will return DECK41 secondary type as Sediment

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ conditionFloorE()

bool woss::Deck41TypeTests::conditionFloorE ( const Deck41Types &  types) const
inline

Deck41TypeTests test E. If it succeed SedimDeck41Db will return DECK41 a weighted average of both main and secondary type as Sediment

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ conditionFloorF()

bool woss::Deck41TypeTests::conditionFloorF ( const Deck41Types &  types) const
inline

Deck41TypeTests test F. If it succeed SedimDeck41Db will return DECK41 a weighted average of both main and secondary type as Sediment

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ conditionFloorG()

bool woss::Deck41TypeTests::conditionFloorG ( const Deck41Types &  types) const
inline

Deck41TypeTests test G. If it succeed SedimDeck41Db will try other coordinates, if those fails a Sediment not valid will be returned

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ getConditionA()

bool woss::Deck41TypeTests::getConditionA ( ) const
inline

Gets condition_a bool value

Returns
condition_a value

Referenced by woss::SedimDeck41Db::calculateSediment(), and woss::SedimDeck41Db::doTestA().

◆ getConditionB()

bool woss::Deck41TypeTests::getConditionB ( ) const
inline

Gets condition_b bool value

Returns
condition_b value

Referenced by woss::SedimDeck41Db::calculateSediment(), and woss::SedimDeck41Db::doTestA().

◆ getConditionC()

bool woss::Deck41TypeTests::getConditionC ( ) const
inline

Gets condition_c bool value

Returns
condition_c value

Referenced by woss::SedimDeck41Db::calculateSediment(), woss::SedimDeck41Db::doTestB(), and woss::SedimDeck41Db::doTestC().

◆ getConditionD()

bool woss::Deck41TypeTests::getConditionD ( ) const
inline

Gets condition_d bool value

Returns
condition_d value

Referenced by woss::SedimDeck41Db::calculateSediment(), woss::SedimDeck41Db::doTestB(), and woss::SedimDeck41Db::doTestC().

◆ getConditionE()

bool woss::Deck41TypeTests::getConditionE ( ) const
inline

Gets condition_e bool value

Returns
condition_e value

Referenced by woss::SedimDeck41Db::calculateSediment(), and woss::SedimDeck41Db::doTestA().

◆ getConditionF()

bool woss::Deck41TypeTests::getConditionF ( ) const
inline

Gets condition_f bool value

Returns
condition_f value

Referenced by woss::SedimDeck41Db::calculateSediment(), and woss::SedimDeck41Db::doTestA().

◆ getConditionG()

bool woss::Deck41TypeTests::getConditionG ( ) const
inline

Gets condition_g bool value

Returns
condition_g value

Referenced by woss::SedimDeck41Db::doTestB().

◆ updateAllConditions()

void woss::Deck41TypeTests::updateAllConditions ( const Deck41Types &  types)
inline

Performs all tests at once

Parameters
typesconst reference to a Deck41Types object

References conditionFloorA(), conditionFloorB(), conditionFloorC(), conditionFloorD(), conditionFloorE(), conditionFloorF(), and conditionFloorG().

Referenced by woss::SedimDeck41Db::calculateDeck41Types().

Here is the call graph for this function:

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