Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
InstanceSequencer Class Reference

#include <instance_sequencer.h>

Inheritance diagram for InstanceSequencer:
Inheritance graph
Collaboration diagram for InstanceSequencer:
Collaboration graph

Classes

struct  Description
 

Public Member Functions

 InstanceSequencer (ConfigProvider *config_provider, Beautify *beautify)
 
virtual std::wstring get_name () const
 
int process (BMscPtr bmsc)
 
int after_import_process (BMscPtr bmsc)
 
int sequence (BMscPtr bmsc)
 
std::string floatToString (const float value)
 
- Public Member Functions inherited from ConfigReader
 ConfigReader ()
 
 ConfigReader (ConfigProvider *config_provider)
 
virtual ~ConfigReader ()
 
void set_config_provider (ConfigProvider *config_provider)
 
ConfigProviderget_config_provider () const
 
long get_config_long (const std::wstring &section, const std::wstring &parameter, long def=0) const
 
float get_config_float (const std::wstring &section, const std::wstring &parameter, float def=0.0f) const
 
std::wstring get_config_string (const std::wstring &section, const std::wstring &parameter, std::wstring def=L"") const
 

Public Attributes

long m_use_original_order
 
long m_use_permutation
 
long m_use_const_head
 
long m_use_max_head
 
long m_use_min_head
 
long m_use_origin_head
 
float m_head_width_value
 
long m_use_const_spaces
 
long m_use_total_width
 
long m_use_original_spaces
 
float m_space_width_value
 
float m_total_width_value
 
long m_use_first_inst_placements
 
long m_use_left_upper_corner
 
long m_use_own_coordinates
 
float m_x_coordinate_place_value
 
float m_y_coordinate_place_value
 
float m_cor_width_value
 
float m_page_width
 
float m_page_height
 
float m_start_pos_x
 
float m_start_pos_y
 
float m_grid_origin_x
 
float m_grid_origin_y
 
double start_x
 
double start_y
 
float m_weight_gb
 
float m_weight_cr
 
long m_use_greedy_alg
 
long m_use_brute_force
 
bool no_elements
 

Private Member Functions

void load_registry_beautify ()
 
void load_registry_import ()
 
double finding_max_width_on_instance (InstancePtr inst)
 
std::vector< std::pair< int,
int > > 
get_transposition (std::vector< int > perm)
 
void swapInstances (Graph &swapvectors, int first, int second)
 
int add (int index, float crossing, float going_back)
 
double count_value (float crossing, float going_back)
 
Description get_values (Graph graph)
 

Private Attributes

BeautifybeautifyIns
 
std::vector< int > m_headers
 
std::vector< int > m_headers_final
 
std::vector< InstancePtrm_index_unorder
 
std::vector< InstancePtrm_index_order
 
CommunicationGraph m_graph
 
std::vector< int > m_array
 
std::set< int > m_unordered
 
std::set< int > m_ordered
 
struct
InstanceSequencer::Description 
matrix
 

Detailed Description

Definition at line 40 of file instance_sequencer.h.

Constructor & Destructor Documentation

InstanceSequencer::InstanceSequencer ( ConfigProvider config_provider,
Beautify beautify 
)

Definition at line 23 of file instance_sequencer.cpp.

References beautifyIns.

Member Function Documentation

int InstanceSequencer::add ( int  index,
float  crossing,
float  going_back 
)
private

Definition at line 208 of file instance_sequencer.cpp.

References count_value(), m_array, and swap().

Referenced by sequence().

int InstanceSequencer::after_import_process ( BMscPtr  bmsc)
double InstanceSequencer::count_value ( float  crossing,
float  going_back 
)
private

Definition at line 240 of file instance_sequencer.cpp.

References CommunicationGraph::get_graph(), m_array, and m_graph.

Referenced by add().

double InstanceSequencer::finding_max_width_on_instance ( InstancePtr  inst)
private

Definition at line 127 of file instance_sequencer.cpp.

References EventArea::get_width().

Referenced by process().

std::string InstanceSequencer::floatToString ( const float  value)
inline

Definition at line 140 of file instance_sequencer.h.

References string.

virtual std::wstring InstanceSequencer::get_name ( ) const
inlinevirtual

Definition at line 82 of file instance_sequencer.h.

std::vector< std::pair< int, int > > InstanceSequencer::get_transposition ( std::vector< int >  perm)
private

Definition at line 142 of file instance_sequencer.cpp.

References init(), result, and swap().

Referenced by sequence().

InstanceSequencer::Description InstanceSequencer::get_values ( Graph  graph)
private
void InstanceSequencer::load_registry_beautify ( )
private
void InstanceSequencer::load_registry_import ( )
private
int InstanceSequencer::process ( BMscPtr  bmsc)
int InstanceSequencer::sequence ( BMscPtr  bmsc)
void InstanceSequencer::swapInstances ( Graph swapvectors,
int  first,
int  second 
)
private

Definition at line 167 of file instance_sequencer.cpp.

Referenced by sequence().

Member Data Documentation

Beautify* InstanceSequencer::beautifyIns
private

Definition at line 44 of file instance_sequencer.h.

Referenced by after_import_process(), and InstanceSequencer().

std::vector<int> InstanceSequencer::m_array
private

Definition at line 63 of file instance_sequencer.h.

Referenced by add(), count_value(), and sequence().

float InstanceSequencer::m_cor_width_value
CommunicationGraph InstanceSequencer::m_graph
private

Definition at line 49 of file instance_sequencer.h.

Referenced by count_value(), and sequence().

float InstanceSequencer::m_grid_origin_x
float InstanceSequencer::m_grid_origin_y
float InstanceSequencer::m_head_width_value
std::vector<int> InstanceSequencer::m_headers
private

Definition at line 46 of file instance_sequencer.h.

Referenced by after_import_process(), process(), and sequence().

std::vector<int> InstanceSequencer::m_headers_final
private

Definition at line 46 of file instance_sequencer.h.

Referenced by after_import_process(), process(), and sequence().

std::vector<InstancePtr> InstanceSequencer::m_index_order
private

Definition at line 47 of file instance_sequencer.h.

Referenced by after_import_process(), process(), and sequence().

std::vector<InstancePtr> InstanceSequencer::m_index_unorder
private

Definition at line 47 of file instance_sequencer.h.

std::set<int> InstanceSequencer::m_ordered
private

Definition at line 64 of file instance_sequencer.h.

Referenced by sequence().

float InstanceSequencer::m_page_height
float InstanceSequencer::m_page_width

Definition at line 113 of file instance_sequencer.h.

Referenced by load_registry_beautify(), and load_registry_import().

float InstanceSequencer::m_space_width_value
float InstanceSequencer::m_start_pos_x

Definition at line 115 of file instance_sequencer.h.

Referenced by load_registry_beautify(), load_registry_import(), and process().

float InstanceSequencer::m_start_pos_y

Definition at line 116 of file instance_sequencer.h.

Referenced by load_registry_beautify(), load_registry_import(), and process().

float InstanceSequencer::m_total_width_value
std::set<int> InstanceSequencer::m_unordered
private

Definition at line 64 of file instance_sequencer.h.

Referenced by sequence().

long InstanceSequencer::m_use_brute_force

Definition at line 130 of file instance_sequencer.h.

Referenced by load_registry_beautify(), load_registry_import(), and sequence().

long InstanceSequencer::m_use_const_head

Definition at line 90 of file instance_sequencer.h.

Referenced by load_registry_beautify(), load_registry_import(), and process().

long InstanceSequencer::m_use_const_spaces

Definition at line 97 of file instance_sequencer.h.

Referenced by load_registry_beautify(), load_registry_import(), and process().

long InstanceSequencer::m_use_first_inst_placements
long InstanceSequencer::m_use_greedy_alg

Definition at line 129 of file instance_sequencer.h.

Referenced by load_registry_beautify(), load_registry_import(), and sequence().

long InstanceSequencer::m_use_left_upper_corner
long InstanceSequencer::m_use_max_head

Definition at line 91 of file instance_sequencer.h.

Referenced by load_registry_beautify(), load_registry_import(), and process().

long InstanceSequencer::m_use_min_head

Definition at line 92 of file instance_sequencer.h.

Referenced by load_registry_beautify(), load_registry_import(), and process().

long InstanceSequencer::m_use_origin_head

Definition at line 93 of file instance_sequencer.h.

Referenced by load_registry_beautify(), and load_registry_import().

long InstanceSequencer::m_use_original_order
long InstanceSequencer::m_use_original_spaces

Definition at line 99 of file instance_sequencer.h.

Referenced by load_registry_beautify(), and load_registry_import().

long InstanceSequencer::m_use_own_coordinates

Definition at line 106 of file instance_sequencer.h.

Referenced by load_registry_beautify(), load_registry_import(), and process().

long InstanceSequencer::m_use_permutation

Definition at line 87 of file instance_sequencer.h.

Referenced by load_registry_beautify(), and load_registry_import().

long InstanceSequencer::m_use_total_width
float InstanceSequencer::m_weight_cr

Definition at line 126 of file instance_sequencer.h.

Referenced by load_registry_beautify(), load_registry_import(), and sequence().

float InstanceSequencer::m_weight_gb

Definition at line 125 of file instance_sequencer.h.

Referenced by load_registry_beautify(), load_registry_import(), and sequence().

float InstanceSequencer::m_x_coordinate_place_value
float InstanceSequencer::m_y_coordinate_place_value
struct InstanceSequencer::Description InstanceSequencer::matrix
private
bool InstanceSequencer::no_elements

Definition at line 133 of file instance_sequencer.h.

Referenced by process().

double InstanceSequencer::start_x

Definition at line 121 of file instance_sequencer.h.

Referenced by process().

double InstanceSequencer::start_y

Definition at line 122 of file instance_sequencer.h.

Referenced by process().


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

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:58 for Sequence Chart Studio by  doxygen