This class represents the time advanced tables for a given segment graph. We distinguish between the 'current time table' and the 'next time table'. More...
#include <time_advanced_table.h>
Public Member Functions | |
TimeAdvancedTable (SegmentGraph &graph) | |
Default constructor for the TimeAdvancedTable. | |
~TimeAdvancedTable () | |
Default destructor for the TimeAdvancedTable. | |
void | determine_conflict_table () |
This function determines conflicts among the segments. | |
void | print_current_time_advanced_table (std::string filename) |
This function prints the current time advance table in a html file. | |
void | print_next_time_advanced_table (std::string filename) |
This function prints the next time advance table in a html file. | |
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. | |
Time | get_waiting_time_for_segment (VertexIterator Segment) |
This function determines how much time is spend while entering a segment. | |
int | get_segment_id (int index) |
This function looks up which segment id belongs to a given table index. | |
long long | convert_si_magnitude (std::string magnitude) |
This function converts a given string like "SC_SEC" into the corresponding amount of femto seconds. | |
Public Attributes | |
SegmentGraph & | segment_graph_ |
Reference to the associated segment graph of the conflict table. | |
int | size_ |
Size of the conflict table. | |
std::vector< VertexIterator > | table_index_segment_lookup_ |
This vector is a lookup between the conflict table index and the associated segment index. | |
Time * | current_time_advance_ |
Pointer for the current and next time advance table. | |
Time * | next_time_advance_ |
Private Types | |
typedef boost::graph_traits < risc::sg::Graph > ::vertex_iterator | VertexIterator |
This class represents the time advanced tables for a given segment graph. We distinguish between the 'current time table' and the 'next time table'.
typedef boost::graph_traits<risc::sg::Graph>::vertex_iterator risc::sg::TimeAdvancedTable::VertexIterator [private] |
risc::sg::TimeAdvancedTable::TimeAdvancedTable | ( | SegmentGraph & | graph | ) |
Default constructor for the TimeAdvancedTable.
risc::sg::TimeAdvancedTable::~TimeAdvancedTable | ( | ) |
Default destructor for the TimeAdvancedTable.
long long risc::sg::TimeAdvancedTable::convert_si_magnitude | ( | std::string | magnitude | ) |
This function converts a given string like "SC_SEC" into the corresponding amount of femto seconds.
convert_si_magnitude
void risc::sg::TimeAdvancedTable::determine_conflict_table | ( | ) |
This function determines conflicts among the segments.
determine_conflict_table
int risc::sg::TimeAdvancedTable::get_segment_id | ( | int | index | ) |
This function looks up which segment id belongs to a given table index.
get_segment_id
risc::sg::Time risc::sg::TimeAdvancedTable::get_waiting_time_for_segment | ( | VertexIterator | Segment | ) |
This function determines how much time is spend while entering a segment.
get_waiting_time_for_segment
void risc::sg::TimeAdvancedTable::print_current_time_advanced_table | ( | std::string | filename | ) |
This function prints the current time advance table in a html file.
print_table
void risc::sg::TimeAdvancedTable::print_next_time_advanced_table | ( | std::string | filename | ) |
This function prints the next time advance table in a html file.
print_table
void risc::sg::TimeAdvancedTable::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.
print_time_table
Pointer for the current and next time advance table.
Reference to the associated segment graph of the conflict table.
Size of the conflict table.
This vector is a lookup between the conflict table index and the associated segment index.