A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
grid.TimelineDataRange Class Reference

TimelineDataRange. More...

Public Member Functions

 __init__ (self, name="")
 Initializer.
 
 add_range (self, range)
 Add range.
 
 get_all (self)
 Get all ranges.
 
 get_bounds (self)
 Get bounds.
 
 get_ranges (self, start, end)
 Get selected ranges.
 
 get_ranges_bounds (self, start, end)
 Get ranges bounds.
 
 sort (self)
 Sort ranges.
 

Public Attributes

 name
 name
 
 ranges
 ranges
 

Private Member Functions

 __search (self, key)
 Search.
 

Detailed Description

TimelineDataRange.

Definition at line 99 of file grid.py.

Constructor & Destructor Documentation

◆ __init__()

grid.TimelineDataRange.__init__ ( self,
name = "" )

Initializer.

Parameters
selfthis object
namename

Definition at line 104 of file grid.py.

Member Function Documentation

◆ __search()

grid.TimelineDataRange.__search ( self,
key )
private

Search.

Parameters
selfthis object
keykey
Returns
index if found or -1 if not found

Definition at line 113 of file grid.py.

References grid.Timeline.ranges, and grid.TimelineDataRange.ranges.

Referenced by grid.TimelineEvent.get_events(), grid.TimelineEvent.get_events_bounds(), grid.TimelineDataRange.get_ranges(), and grid.TimelineDataRange.get_ranges_bounds().

+ Here is the caller graph for this function:

◆ add_range()

grid.TimelineDataRange.add_range ( self,
range )

Add range.

Parameters
selfthis object
rangerange
Returns
none

Definition at line 132 of file grid.py.

References grid.Timeline.ranges, and grid.TimelineDataRange.ranges.

◆ get_all()

grid.TimelineDataRange.get_all ( self)

Get all ranges.

Parameters
selfthis object
Returns
the ranges

Definition at line 140 of file grid.py.

References grid.Timeline.ranges, and grid.TimelineDataRange.ranges.

◆ get_bounds()

grid.TimelineDataRange.get_bounds ( self)

Get bounds.

Parameters
selfthis object
Returns
the bounds

Definition at line 190 of file grid.py.

References grid.Timeline.ranges, and grid.TimelineDataRange.ranges.

◆ get_ranges()

grid.TimelineDataRange.get_ranges ( self,
start,
end )

Get selected ranges.

Parameters
selfthis object
startrange start
endrange end
Returns
the range or and empty list

Definition at line 147 of file grid.py.

References grid.TimelineDataRange.__search(), grid.TimelineEvent.__search(), grid.Timeline.ranges, and grid.TimelineDataRange.ranges.

+ Here is the call graph for this function:

◆ get_ranges_bounds()

grid.TimelineDataRange.get_ranges_bounds ( self,
start,
end )

Get ranges bounds.

Parameters
selfthis object
startrange start
endrange end
Returns
range

Definition at line 165 of file grid.py.

References grid.TimelineDataRange.__search(), grid.TimelineEvent.__search(), grid.Timeline.ranges, and grid.TimelineDataRange.ranges.

+ Here is the call graph for this function:

◆ sort()

grid.TimelineDataRange.sort ( self)

Sort ranges.

Parameters
selfthis object
Returns
none

Definition at line 183 of file grid.py.

References grid.Timeline.ranges, grid.TimelineDataRange.ranges, and grid.TimelineDataRange.sort().

Referenced by grid.TimelineDataRange.sort().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ name

grid.TimelineDataRange.name

name

Definition at line 109 of file grid.py.

◆ ranges


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