#include <time_advance_table.h>
Public Member Functions | |
TimeAdvanceTable (SegmentGraph &graph) | |
Default constructor for the timeAdvanceTable. | |
~TimeAdvanceTable () | |
Default destructor for the timeAdvanceTable. | |
void | determine_conflict_table () |
This function determines conflicts among the segments. | |
void | print_current_time_advance_table (std::string filename) |
void | print_next_time_advance_table (std::string filename) |
void | print_time_table (Time *table, std::string filename) |
Time | get_waiting_time_for_segment (VertexIterator Segment) |
int | get_segment_id (int index) |
long long | convert_si_magnitude (std::string magnitude) |
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 |
typedef boost::graph_traits<risc::sg::Graph>::vertex_iterator risc::sg::TimeAdvanceTable::VertexIterator [private] |
risc::sg::TimeAdvanceTable::TimeAdvanceTable | ( | SegmentGraph & | graph | ) |
Default constructor for the timeAdvanceTable.
risc::sg::TimeAdvanceTable::~TimeAdvanceTable | ( | ) |
Default destructor for the timeAdvanceTable.
long long risc::sg::TimeAdvanceTable::convert_si_magnitude | ( | std::string | magnitude | ) |
risc::sg::TimeAdvanceTable::determine_conflict_table | ( | ) |
This function determines conflicts among the segments.
int risc::sg::TimeAdvanceTable::get_segment_id | ( | int | index | ) |
risc::sg::Time risc::sg::TimeAdvanceTable::get_waiting_time_for_segment | ( | VertexIterator | Segment | ) |
void risc::sg::TimeAdvanceTable::print_current_time_advance_table | ( | std::string | filename | ) |
void risc::sg::TimeAdvanceTable::print_next_time_advance_table | ( | std::string | filename | ) |
void risc::sg::TimeAdvanceTable::print_time_table | ( | Time * | table, | |
std::string | filename | |||
) |
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.