-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathBandsRegion.h
47 lines (39 loc) · 1.14 KB
/
BandsRegion.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Categories of Regions
*
* Contact: Jeff Maddalon
* Organization: NASA/Langley Research Center
*
* Copyright (c) 2011-2021 United States Government as represented by
* the National Aeronautics and Space Administration. No copyright
* is claimed in the United States under Title 17, U.S.Code. All Other
* Rights Reserved.
*/
#ifndef BANDSREGION_H_
#define BANDSREGION_H_
#include <string>
namespace larcfm {
class BandsRegion {
public:
/*
* NONE: No band
* FAR: Far conflict band
* MID: Mid conflict bands
* NEAR: Near conflict band
* RECOVERY: Band for violation recovery
* UNKNOWN : Invalid band
*/
enum Region {UNKNOWN,NONE,FAR,MID,NEAR,RECOVERY};
// Number of conflict bands (NEAR, MID, FAR)
static const int NUMBER_OF_CONFLICT_BANDS = 3;
static bool isValidBand(Region region);
static bool isResolutionBand(Region region);
static bool isConflictBand(Region region);
static Region valueOf(const std::string& str);
static std::string to_string(Region region);
static int orderOfRegion(Region region);
static int orderOfConflictRegion(Region region);
static Region regionFromOrder(int i);
};
}
#endif