All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Private Types | List of all members
risc::sg::TimeAdvanceTable Class Reference

#include <time_advance_table.h>

Collaboration diagram for risc::sg::TimeAdvanceTable:
Collaboration graph

Public Member Functions

 TimeAdvanceTable (SegmentGraph &graph)
 Default constructor for the timeAdvanceTable. More...
 
 ~TimeAdvanceTable ()
 Default destructor for the timeAdvanceTable. More...
 
void determine_conflict_table ()
 This function determines conflicts among the segments. More...
 
void print_current_time_advance_table (std::string filename)
 This function prints the current time advance table in a html file. More...
 
void print_next_time_advance_table (std::string filename)
 This function prints the next time advance table in a html file. More...
 
void print_time_table (Time *table, std::string filename)
 This function is only for internal use. It is used as the base function for the other print functions. More...
 
Time get_waiting_time_for_segment (VertexIterator Segment)
 This function determines how much time is spend while entering a segment. More...
 
int get_segment_id (int index)
 This function looks up which segment id belongs to a given table index. More...
 
long long convert_si_magnitude (std::string magnitude)
 This function converts a given string like "SC_SEC" into the corresponding amount of femto seconds. More...
 

Public Attributes

SegmentGraphsegment_graph_
 Reference to the associated segment graph of the conflict table. More...
 
int size_
 Size of the conflict table. More...
 
std::vector< VertexIteratortable_index_segment_lookup_
 This vector is a lookup between the conflict table index and the associated segment index. More...
 
Timecurrent_time_advance_
 Pointer for the current and next time advance table. More...
 
Timenext_time_advance_
 

Private Types

typedef boost::graph_traits
< risc::sg::Graph >
::vertex_iterator 
VertexIterator
 

Member Typedef Documentation

typedef boost::graph_traits<risc::sg::Graph>::vertex_iterator risc::sg::TimeAdvanceTable::VertexIterator
private

Constructor & Destructor Documentation

risc::sg::TimeAdvanceTable::TimeAdvanceTable ( SegmentGraph graph)

Default constructor for the timeAdvanceTable.

risc::sg::TimeAdvanceTable::~TimeAdvanceTable ( )

Default destructor for the timeAdvanceTable.

Member Function Documentation

risc::sg::TimeAdvanceTable::convert_si_magnitude ( std::string  magnitude)

This function converts a given string like "SC_SEC" into the corresponding amount of femto seconds.

risc::sg::TimeAdvanceTable::determine_conflict_table ( )

This function determines conflicts among the segments.

risc::sg::TimeAdvanceTable::get_segment_id ( int  index)

This function looks up which segment id belongs to a given table index.

risc::sg::TimeAdvanceTable::get_waiting_time_for_segment ( VertexIterator  Segment)

This function determines how much time is spend while entering a segment.

risc::sg::TimeAdvanceTable::print_current_time_advance_table ( std::string  filename)

This function prints the current time advance table in a html file.

risc::sg::TimeAdvanceTable::print_next_time_advance_table ( std::string  filename)

This function prints the next time advance table in a html file.

risc::sg::TimeAdvanceTable::print_time_table ( Time table,
std::string  filename 
)

This function is only for internal use. It is used as the base function for the other print functions.

Member Data Documentation

Time* risc::sg::TimeAdvanceTable::current_time_advance_

Pointer for the current and next time advance table.

Time* risc::sg::TimeAdvanceTable::next_time_advance_
SegmentGraph& risc::sg::TimeAdvanceTable::segment_graph_

Reference to the associated segment graph of the conflict table.

int risc::sg::TimeAdvanceTable::size_

Size of the conflict table.

std::vector<VertexIterator> risc::sg::TimeAdvanceTable::table_index_segment_lookup_

This vector is a lookup between the conflict table index and the associated segment index.


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