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

#include <prediction_time_advance_table.h>

Collaboration diagram for risc::sg::PredictionTimeAdvanceTable:
Collaboration graph

Public Member Functions

 PredictionTimeAdvanceTable (risc::sg::SegmentGraph &sg, int prediction_steps)
 
void print ()
 This function prints the prediction time advance table in the terminal. More...
 
void print (std::string filename)
 Generates a html file of the prediction time advance table. More...
 
int index_to_segment_id (int index)
 translates a given index to the related segment id More...
 
int segment_id_to_index (int segment_id)
 translates a given segment id to the related index More...
 

Public Attributes

std::vector< std::vector
< risc::sg::Time > > 
table_
 The actual table. More...
 
std::vector< int > index_to_segment_
 A mapping from index to segment id. More...
 
int prediction_steps_
 The max steps to be predicted. More...
 

Private Member Functions

void compute_table ()
 This function computes the prediction time advance table. More...
 
void analyze (VertexDescriptor start, int steps)
 This function computes the prediction time advance table. More...
 

Private Attributes

SegmentGraphsg_
 Reference to the actual segment graph. More...
 

Constructor & Destructor Documentation

risc::sg::PredictionTimeAdvanceTable::PredictionTimeAdvanceTable ( risc::sg::SegmentGraph sg,
int  prediction_steps 
)

Member Function Documentation

risc::sg::PredictionTimeAdvanceTable::analyze ( VertexDescriptor  start,
int  steps 
)
private

This function computes the prediction time advance table.

risc::sg::PredictionTimeAdvanceTable::compute_table ( )
private

This function computes the prediction time advance table.

risc::sg::PredictionTimeAdvanceTable::index_to_segment_id ( int  index)

translates a given index to the related segment id

risc::sg::PredictionTimeAdvanceTable::print ( )

This function prints the prediction time advance table in the terminal.

risc::sg::PredictionTimeAdvanceTable::print ( std::string  filename)

Generates a html file of the prediction time advance table.

risc::sg::PredictionTimeAdvanceTable::segment_id_to_index ( int  segment_id)

translates a given segment id to the related index

Member Data Documentation

std::vector<int> risc::sg::PredictionTimeAdvanceTable::index_to_segment_

A mapping from index to segment id.

int risc::sg::PredictionTimeAdvanceTable::prediction_steps_

The max steps to be predicted.

SegmentGraph& risc::sg::PredictionTimeAdvanceTable::sg_
private

Reference to the actual segment graph.

std::vector<std::vector< risc::sg::Time> > risc::sg::PredictionTimeAdvanceTable::table_

The actual table.


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