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

Timeline class. More...

Public Member Functions

 __init__ (self, name="")
 Initializer.
 
 get_bounds (self)
 Get Bounds.
 
 get_event_int (self, name)
 Get Event Int.
 
 get_event_str (self, name)
 Get Event String.
 
 get_events_int (self)
 Get Events int.
 
 get_events_str (self)
 Get Events string.
 
 get_range (self, name)
 Get range.
 
 get_ranges (self)
 Get Ranges.
 
 sort (self)
 Sort the ranges and events.
 

Public Attributes

 event_int
 event int
 
 event_str
 event string
 
 name
 name
 
 ranges
 ranges
 

Detailed Description

Timeline class.

Definition at line 287 of file grid.py.

Constructor & Destructor Documentation

◆ __init__()

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

Initializer.

Parameters
selfthis object
namename

Definition at line 296 of file grid.py.

Member Function Documentation

◆ get_bounds()

grid.Timeline.get_bounds ( self)

Get Bounds.

Parameters
selfthis object
Returns
the bounds

Definition at line 378 of file grid.py.

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

◆ get_event_int()

grid.Timeline.get_event_int ( self,
name )

Get Event Int.

Parameters
selfthis object
namename
Returns
eevent int

Definition at line 332 of file grid.py.

References grid.Timeline.event_int.

◆ get_event_str()

grid.Timeline.get_event_str ( self,
name )

Get Event String.

Parameters
selfthis object
namename
Returns
the event string

Definition at line 319 of file grid.py.

References grid.Timeline.event_str.

◆ get_events_int()

grid.Timeline.get_events_int ( self)

Get Events int.

Parameters
selfthis object
Returns
evrnt int

Definition at line 359 of file grid.py.

References grid.Timeline.event_int.

◆ get_events_str()

grid.Timeline.get_events_str ( self)

Get Events string.

Parameters
selfthis object
Returns
event string

Definition at line 352 of file grid.py.

References grid.Timeline.event_str.

◆ get_range()

grid.Timeline.get_range ( self,
name )

Get range.

Parameters
selfthis object
namename
Returns
the range

Definition at line 306 of file grid.py.

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

◆ get_ranges()

grid.Timeline.get_ranges ( self)

Get Ranges.

Parameters
selfthis object
Returns
the ranges

Definition at line 345 of file grid.py.

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

◆ sort()

grid.Timeline.sort ( self)

Sort the ranges and events.

Parameters
selfthis object
Returns
none

Definition at line 366 of file grid.py.

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

Member Data Documentation

◆ event_int

grid.Timeline.event_int

◆ event_str

grid.Timeline.event_str

◆ name

grid.Timeline.name

name

Definition at line 304 of file grid.py.

◆ ranges


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