123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- class Enum(type):
- def __getitem__(self, item):
- return getattr(self, item)
- @property
- def members(self):
- return sorted([item for item in list(set(dir(self)) - set(dir(Enum))) if not item.startswith("_")])
- @property
- def values(self):
- return [self[item] for item in self.members]
- class EVENT_STATUS(metaclass=Enum):
- NONE = "none"
- FAR = "far"
- NEAR = "near"
- ACTIVE = "active"
- COMPLETED = "completed"
- CANCELLED = "cancelled"
- class SIGNAL_TYPE(metaclass=Enum):
- DELTA = "delta"
- LEVEL = "level"
- MULTIPLIER = "multiplier"
- PRICE = "price"
- PRICE_MULTIPLIER = "priceMultiplier"
- PRICE_RELATIVE = "priceRelative"
- SETPOINT = "setpoint"
- X_LOAD_CONTROL_CAPACITY = "x-loadControlCapacity"
- X_LOAD_CONTROL_LEVEL_OFFSET = "x-loadControlLevelOffset"
- X_LOAD_CONTROL_PERCENT_OFFSET = "x-loadControlPorcentOffset"
- X_LOAD_CONTROL_SETPOINT = "x-loadControlSetpoint"
- class SIGNAL_NAME(metaclass=Enum):
- SIMPLE = "SIMPLE"
- simple = "simple"
- ELECTRICITY_PRIC = "ELECTRICITY_PRICE"
- ENERGY_PRICE = "ELECTRICITY_PRICE"
- DEMAND_CHARGE = "DEMAND_CHARGE"
- BID_PRICE = "BID_PRICE"
- BID_LOAD = "BID_LOAD"
- BID_ENERGY = "BID_ENERGY"
- CHARGE_STATE = "CHARGE_STATE"
- LOAD_DISPATCH = "LOAD_DISPATCH"
- LOAD_CONTROL = "LOAD_CONTROL"
- class SI_SCALE_CODE(metaclass=Enum):
- p = "p"
- n = "n"
- micro = "micro"
- m = "m"
- c = "c"
- d = "d"
- k = "k"
- M = "M"
- G = "G"
- T = "T"
- none = "none"
- class OPT(metaclass=Enum):
- OPT_IN = "optIn"
- OPT_OUT = "optOut"
- class OPT_REASON(metaclass=Enum):
- ECONOMIC = "economic"
- EMERGENCY = "emergency"
- MUST_RUN = "mustRun"
- NOT_PARTICIPATING = "notParticipating"
- OUTAGE_RUN_STATUS = "outageRunStatus"
- OVERRIDE_STATUS = "overrideStatus"
- PARTICIPATING = "participating"
- X_SCHEDULE = "x-schedule"
- class READING_TYPE(metaclass=Enum):
- DIRECT_READ = "Direct Read"
- NET = "Net"
- ALLOCATED = "Allocated"
- ESTIMATED = "Estimated"
- SUMMED = "Summed"
- DERIVED = "Derived"
- MEAN = "Mean"
- PEAK = "Peak"
- HYBRID = "Hybrid"
- CONTRACT = "Contract"
- PROJECTED = "Projected"
- X_RMS = "x-RMS"
- X_NOT_APPLICABLE = "x-notApplicable"
- class REPORT_TYPE(metaclass=Enum):
- READING = "reading"
- USAGE = "usage"
- DEMAND = "demand"
- SET_POINT = "setPoint"
- DELTA_USAGE = "deltaUsage"
- DELTA_SET_POINT = "deltaSetPoint"
- DELTA_DEMAND = "deltaDemand"
- BASELINE = "baseline"
- DEVIATION = "deviation"
- AVG_USAGE = "avgUsage"
- AVG_DEMAND = "avgDemand"
- OPERATING_STATE = "operatingState"
- UP_REGULATION_CAPACITY_AVAILABLE = "upRegulationCapacityAvailable"
- DOWN_REGULATION_CAPACITY_AVAILABLE = "downRegulationCapacityAvailable"
- REGULATION_SETPOINT = "regulationSetpoint"
- STORED_ENERGY = "storedEnergy"
- TARGET_ENERGY_STORAGE = "targetEnergyStorage"
- AVAILABLE_ENERGY_STORAGE = "availableEnergyStorage"
- PRICE = "price"
- LEVEL = "level"
- POWER_FACTOR = "powerFactor"
- PERCENT_USAGE = "percentUsage"
- PERCENT_DEMAND = "percentDemand"
- X_RESOURCE_STATUS = "x-resourceStatus"
- class REPORT_NAME(metaclass=Enum):
- METADATA_HISTORY_USAGE = "METADATA_HISTORY_USAGE"
- HISTORY_USAGE = "HISTORY_USAGE"
- METADATA_HISTORY_GREENBUTTON = "METADATA_HISTORY_GREENBUTTON"
- HISTORY_GREENBUTTON = "HISTORY_GREENBUTTON"
- METADATA_TELEMETRY_USAGE = "METADATA_TELEMETRY_USAGE"
- TELEMETRY_USAGE = "TELEMETRY_USAGE"
- METADATA_TELEMETRY_STATUS = "METADATA_TELEMETRY_STATUS"
- TELEMETRY_STATUS = "TELEMETRY_STATUS"
|