40#ifndef FLOOR_CONDITIONS_H
41#define FLOOR_CONDITIONS_H
44#ifdef WOSS_NETCDF_SUPPORT
52 static const int DECK41_FLOORTYPE_GRAVEL = 0;
54 static const int DECK41_FLOORTYPE_SAND = 1;
56 static const int DECK41_FLOORTYPE_SILT = 2;
58 static const int DECK41_FLOORTYPE_CLAY = 3;
60 static const int DECK41_FLOORTYPE_OOZE = 4;
62 static const int DECK41_FLOORTYPE_MUD = 5;
64 static const int DECK41_FLOORTYPE_ROCKS = 6;
66 static const int DECK41_FLOORTYPE_ORGANIC = 7;
68 static const int DECK41_FLOORTYPE_NODULES = 8;
70 static const int DECK41_FLOORTYPE_HARDBOTTOM = 9;
72 static const int DECK41_FLOORTYPE_NODATA = 11;
224 bool equal = (types.first == types.second);
225 bool first = (types.first == DECK41_FLOORTYPE_GRAVEL) || (types.first == DECK41_FLOORTYPE_SAND) || (types.first == DECK41_FLOORTYPE_SILT)
226 || (types.first == DECK41_FLOORTYPE_MUD) || (types.first == DECK41_FLOORTYPE_HARDBOTTOM);
227 bool second = (types.second == DECK41_FLOORTYPE_ROCKS) || (types.second == DECK41_FLOORTYPE_ORGANIC) ||
228 (types.second == DECK41_FLOORTYPE_NODULES) || (types.second == DECK41_FLOORTYPE_NODATA) ||
229 (types.second == DECK41_FLOORTYPE_HARDBOTTOM);
231 return ( (equal && first ) || (first && second));
236 bool first = (types.first == DECK41_FLOORTYPE_NODATA);
237 bool second = (types.second == DECK41_FLOORTYPE_GRAVEL) || (types.second == DECK41_FLOORTYPE_SAND) ||
238 (types.second == DECK41_FLOORTYPE_SILT) || (types.second == DECK41_FLOORTYPE_MUD);
240 return (first && second);
245 bool first = (types.first == DECK41_FLOORTYPE_CLAY) || (types.first == DECK41_FLOORTYPE_OOZE) || (types.first == DECK41_FLOORTYPE_ORGANIC)
246 || (types.first == DECK41_FLOORTYPE_ROCKS) || (types.first == DECK41_FLOORTYPE_NODULES);
247 bool second = (types.second == DECK41_FLOORTYPE_ROCKS) || (types.second == DECK41_FLOORTYPE_ORGANIC) ||
248 (types.second == DECK41_FLOORTYPE_NODULES) || (types.second == DECK41_FLOORTYPE_NODATA) ||
249 (types.second == DECK41_FLOORTYPE_HARDBOTTOM);
251 return (first && second);
256 if ( types.first == DECK41_FLOORTYPE_ORGANIC )
return true;
258 bool first = (types.first == DECK41_FLOORTYPE_ROCKS) || (types.first == DECK41_FLOORTYPE_NODULES) ||
259 (types.first == DECK41_FLOORTYPE_NODATA) ;
260 bool second = (types.second == DECK41_FLOORTYPE_GRAVEL) || (types.second == DECK41_FLOORTYPE_SAND) ||
261 (types.second == DECK41_FLOORTYPE_SILT) || (types.second == DECK41_FLOORTYPE_MUD);
263 return (first && second);
268 bool nequal = types.first != types.second;
269 bool first = (types.first == DECK41_FLOORTYPE_GRAVEL) || (types.first == DECK41_FLOORTYPE_SAND) || (types.first == DECK41_FLOORTYPE_SILT)
270 || (types.first == DECK41_FLOORTYPE_MUD);
271 bool second = first || (types.second == DECK41_FLOORTYPE_OOZE) || (types.second == DECK41_FLOORTYPE_CLAY);
272 bool special = (types.first == DECK41_FLOORTYPE_OOZE) && (types.second == DECK41_FLOORTYPE_CLAY);
274 return ( (first && second && nequal) || special );
279 bool nequal = types.first != types.second;
280 bool first = (types.first == DECK41_FLOORTYPE_CLAY) || (types.first == DECK41_FLOORTYPE_OOZE);
281 bool second = (types.second == DECK41_FLOORTYPE_GRAVEL) || (types.second == DECK41_FLOORTYPE_SAND) || (types.second == DECK41_FLOORTYPE_SILT)
282 || (types.second == DECK41_FLOORTYPE_MUD) || (types.second == DECK41_FLOORTYPE_OOZE);
284 return (first && second && nequal);
289 return ( (types.first == DECK41_FLOORTYPE_NODATA) && (types.second == DECK41_FLOORTYPE_NODATA));
Abstraction layer for database and data manipulation.
Definition sediment-deck41-db-logic-control.h:81
void updateAllConditions(const Deck41Types &types)
Definition sediment-deck41-db-logic-control.h:293
bool conditionFloorB(const Deck41Types &types) const
Definition sediment-deck41-db-logic-control.h:235
bool conditionFloorG(const Deck41Types &types) const
Definition sediment-deck41-db-logic-control.h:288
bool getConditionF() const
Definition sediment-deck41-db-logic-control.h:184
bool conditionFloorD(const Deck41Types &types) const
Definition sediment-deck41-db-logic-control.h:255
bool getConditionG() const
Definition sediment-deck41-db-logic-control.h:190
Deck41TypeTests()
Definition sediment-deck41-db-logic-control.cpp:48
bool conditionFloorC(const Deck41Types &types) const
Definition sediment-deck41-db-logic-control.h:244
bool getConditionE() const
Definition sediment-deck41-db-logic-control.h:178
bool conditionFloorA(const Deck41Types &types) const
Definition sediment-deck41-db-logic-control.h:223
bool getConditionC() const
Definition sediment-deck41-db-logic-control.h:166
bool getConditionB() const
Definition sediment-deck41-db-logic-control.h:160
bool getConditionA() const
Definition sediment-deck41-db-logic-control.h:154
bool conditionFloorF(const Deck41Types &types) const
Definition sediment-deck41-db-logic-control.h:278
bool conditionFloorE(const Deck41Types &types) const
Definition sediment-deck41-db-logic-control.h:267
bool getConditionD() const
Definition sediment-deck41-db-logic-control.h:172
Definitions and library for woss::Sediment class.