All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
triggeredEventList.IntervalClass Class Reference

Public Member Functions

def __init__
 
def contains
 
def __contains__
 
def __nonzero__
 
def __str__
 

Public Attributes

 lower
 
 upper
 

Detailed Description

Simple numeric range class (usual [ lower, upper [ interval).

Boundaries set to `None` are ignored.

Definition at line 93 of file triggeredEventList.py.

Constructor & Destructor Documentation

def triggeredEventList.IntervalClass.__init__ (   self,
  lower,
  upper 
)

Member Function Documentation

def triggeredEventList.IntervalClass.__contains__ (   self,
  value 
)

Definition at line 106 of file triggeredEventList.py.

def __contains__(self, value): return self.contains(value)
def triggeredEventList.IntervalClass.__nonzero__ (   self)

Definition at line 107 of file triggeredEventList.py.

def __nonzero__(self): return self.lower is not None or self.upper is not None
def triggeredEventList.IntervalClass.__str__ (   self)

Definition at line 108 of file triggeredEventList.py.

109  def __str__(self):
110  if self.lower is None:
111  if self.upper is None: return "(any)"
112  else: return f" < {self.upper}"
113  else:
114  if self.upper is None: return f">= {self.lower}"
else: return f"{self.lower} -- {self.upper}"
def triggeredEventList.IntervalClass.contains (   self,
  value 
)

Definition at line 102 of file triggeredEventList.py.

103  def contains(self, value):
104  if self.lower is not None and value < self.lower: return False
105  if self.upper is not None and value >= self.upper: return False
return True

Member Data Documentation

triggeredEventList.IntervalClass.lower

Definition at line 100 of file triggeredEventList.py.

triggeredEventList.IntervalClass.upper

Definition at line 101 of file triggeredEventList.py.


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