LayoutManager Class Reference

Main controller for space. More...

#include <layoutManager.hpp>

Collaboration diagram for LayoutManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LayoutManager (MainController *controller, TruthTableManager *tableManager, ForbiddenPatternManager *FPManager, RuleManager *ruleManager)
 Constructor.
virtual ~LayoutManager ()
 Destructor.
void setView (LayoutView *view)
 View setting.
void newLayout (int width, int height, int inputs, int outputs)
 Sets a new space.
void newLayout (LayoutConfig *layoutConfig)
 Sets a new space.
void tableSelected (wxString tableId)
 Selects a truth table.
void inputSelected (int input)
 Selects an input.
void outputSelected (int output)
 Selects an output.
bool tableChecked (wxString tableId, bool checked)
 Checks or unchecks a truth table.
bool ruleChecked (unsigned int rule, bool checked)
 Checks or unchecks a rule.
bool FPChecked (unsigned int FP, bool checked)
 Checks or unchecks a pattern.
void cellChanged (int x, int y)
 Cell status change.
void tablesChanged ()
 Updates the truth table data.
void rulesChanged ()
 Updates the rule data.
void FPsChanged ()
 Updates the forbidden pattern data.
LayoutConfiggetLayout ()
 Member accessor.
bool saveFile ()
 Saves the space.
bool saveFileAs ()
 Saves the space to a new file.
void openFile ()
 Opens a space file.
bool openPFile (wxString file)
 Opens a space from a project.
bool saveFilename (wxString file)
 Saves the space to a file.
void assignInput ()
 Sets the assigning input mode on.
void assignOutput ()
 Sets the assigning output mode on.
void escapePressed ()
 Method called when the user presses the escape key.
bool isLayoutModified ()
 Modification consult.
bool setInput (wxString table, int input, int x, int y)
 Sets an input.
bool setOutput (wxString table, int output, int x, int y)
 Sets an output.
wxString getFileName ()
 Returns the space file name.
map< wxString, vector< coordinate > > getTableInputs ()
 Returns the input assignations.
map< wxString, vector< coordinate > > getTableOutputs ()
 Returns the output assignations.
vector< coordinategetTableInput (wxString table)
 Returns the input assignation of a table.
vector< coordinategetTableOutput (wxString table)
 Returns the output assignation of a table.
map< wxString, bool > getTableEnabled ()
 Returns the table selection map.
map< unsigned int, bool > getRuleEnabled ()
 Returns the rule selection map.
map< unsigned int, bool > getFPEnabled ()
 Returns the pattern selection map.
int getTables ()
 Returns the number of tables.
int getRules ()
 Returns the number of rules.
int getFPs ()
 Returns the number of patterns.
void clean ()
 Erases all space information.
void prepareSimulation ()
 Checks the simulation data.
void startSimulation ()
 Starts the simulation.
list< ForbiddenPatterngetListFPEnabled ()
 Returns the patterns checked.
list< RulegetListRuleEnabled ()
 Returns the rules checked.
void elementChanged ()
 Observable update method.
TruthTablegetTableSelected ()
 Returns the truth table checked.
bool checkLayout ()
 Checks the validity of the space to be simulated.
void enableSimulation ()
 Enables the simulation GUI access.

Private Member Functions

void updateGrids (bool changed)
 Updates the grid on the view.
void updateTTList (wxArrayString tables)
 Updates the truth table list.
void updateFPList (wxArrayString FPs)
 Updates the forbidden pattern list.
void updateRuleList (wxArrayString rules)
 Updates the rule list.
void updateTable ()
void updateIOList ()
 Updates the input/output data.
bool findString (wxArrayString list, wxString item)
 Finds a string on a list of strings.
bool inputAssigned (int x, int y)
 Input assignation check.
bool outputAssigned (int x, int y)
 Output assignation check.
bool findInputAssignment (vector< coordinate > list, int x, int y)
 Finds an input assignation on a list of coordinates.
bool findOutputAssignment (vector< coordinate > list, int x, int y)
 Finds an output assignation on a list of coordinates.
void resetIO ()
 Initializes the input/output information.

Private Attributes

LayoutViewview
 Presentation class.
TruthTableManagertableManager
 Truth table manager.
ForbiddenPatternManagerFPManager
 Forbidden pattern manager.
RuleManagerruleManager
 Rule manager.
LayoutConfigconfiguration
 The current space.
FileManagerView fileView
 File system interaction presentation class.
LayoutDiskManagerdiskManager
 Data persistance class.
MainControllercontroller
 Main application controller.
wxString layoutFileName
 Filename of the space.
bool layoutModified
 Has the space been modified after saving?
bool layoutNeedNewFile
 Do we need a filename to save the space or not?
map< wxString, vector< coordinate > > tableInputs
 Assigned input coordinates for the truth tables.
map< wxString, vector< coordinate > > tableOutputs
 Assigned output coordinates for the truth tables.
map< wxString, bool > tableEnabled
 Tables selected.
map< unsigned int, bool > ruleEnabled
 Rules selected.
map< unsigned int, bool > FPEnabled
 Forbidden patterns selected.
wxString currentTable
 Current table selected.
int currentInput
 Current input selected.
int currentOutput
 Current output selected.
bool assigningInput
 Are we assigning an input?
bool assigningOutput
 Are we assigning an output?

Detailed Description

Main controller for space.

It manages the current space, and comunicates with the other controllers to get information. It also manages the data persistance and presentation layer classes.

Author:
Bernat Ràfales Mulet <the_bell@users.sourceforge.net>
Version:
Revision
1.21

Definition at line 50 of file layoutManager.hpp.


Constructor & Destructor Documentation

LayoutManager::LayoutManager MainController controller,
TruthTableManager tableManager,
ForbiddenPatternManager FPManager,
RuleManager ruleManager
 

Constructor.

Parameters:
controller the main application controller.
tableManager the truth table controller.
FPManager the forbidden pattern controller.
ruleManager the rule controller.

Definition at line 31 of file layoutManager.cpp.

References assigningInput, assigningOutput, configuration, controller, currentInput, currentOutput, currentTable, diskManager, FPManager, layoutFileName, layoutModified, layoutNeedNewFile, ruleManager, and tableManager.

LayoutManager::~LayoutManager  )  [virtual]
 

Destructor.

Definition at line 51 of file layoutManager.cpp.

References diskManager.


Member Function Documentation

void LayoutManager::assignInput  ) 
 

Sets the assigning input mode on.

Definition at line 672 of file layoutManager.cpp.

References assigningInput.

Referenced by LayoutView::OnAssignInput().

void LayoutManager::assignOutput  ) 
 

Sets the assigning output mode on.

Definition at line 679 of file layoutManager.cpp.

References assigningOutput.

Referenced by LayoutView::OnAssignOutput().

void LayoutManager::cellChanged int  x,
int  y
 

Cell status change.

The assigned inputs and outputs are passed to the space to control the (de)assignation. After the status has changed the (de)assignation is checked again.

Parameters:
x the x coordinate.
y the y coordinate.

Definition at line 76 of file layoutManager.cpp.

References assigningInput, assigningOutput, LayoutConfig::cellChanged(), configuration, controller, currentInput, currentOutput, currentTable, MainController::elementChanged(), inputAssigned(), layoutModified, LayoutView::onlyAssign(), outputAssigned(), MainController::setStatusMessage(), tableInputs, tableOutputs, LayoutView::updateCanvas(), updateGrids(), LayoutView::updateInputs(), LayoutView::updateOutputs(), and view.

Referenced by LayoutView::OnClick().

Here is the call graph for this function:

bool LayoutManager::checkLayout  ) 
 

Checks the validity of the space to be simulated.

Returns:
True iif the space is ready to be simulated. This is, all the inputs and outputs of the truth table checked are assigned, and there is a truth table checked.

Definition at line 1206 of file layoutManager.cpp.

References tableChecked(), and tableEnabled.

Here is the call graph for this function:

void LayoutManager::clean  ) 
 

Erases all space information.

Definition at line 1069 of file layoutManager.cpp.

References configuration, controller, MainController::elementChanged(), LayoutView::updateGrids(), and view.

Referenced by MainController::newFile().

Here is the call graph for this function:

void LayoutManager::elementChanged  ) 
 

Observable update method.

This method is called whenever an element of the simulation have changed and updates the view.

Definition at line 1141 of file layoutManager.cpp.

References LayoutView::enableCheckSimulation(), LayoutView::enableStartSimulation(), and view.

Referenced by MainController::elementChanged().

Here is the call graph for this function:

void LayoutManager::enableSimulation  ) 
 

Enables the simulation GUI access.

Definition at line 1243 of file layoutManager.cpp.

References LayoutView::enableCheckSimulation(), LayoutView::enableStartSimulation(), and view.

Here is the call graph for this function:

void LayoutManager::escapePressed  ) 
 

Method called when the user presses the escape key.

This key binding is used to get out of the assigning input/output mode

Definition at line 689 of file layoutManager.cpp.

References assigningInput, assigningOutput, LayoutView::onlyAssign(), and view.

Referenced by LayoutView::OnKeyPressed().

Here is the call graph for this function:

bool LayoutManager::findInputAssignment vector< coordinate list,
int  x,
int  y
[private]
 

Finds an input assignation on a list of coordinates.

This method is used to know if an input other than the current one has been assigned at x, y.

Parameters:
list the coordinate list.
x x coordinate.
y y coordinate.
Returns:
True if an input other than the current one has been assigned at x, y.

Definition at line 865 of file layoutManager.cpp.

References currentInput.

Referenced by inputAssigned().

bool LayoutManager::findOutputAssignment vector< coordinate list,
int  x,
int  y
[private]
 

Finds an output assignation on a list of coordinates.

This method is used to know if an output other than the current one has been assigned at x, y.

Parameters:
list the coordinate list.
x x coordinate.
y y coordinate.
Returns:
True if an output other than the current one has been assigned at x, y.

Definition at line 890 of file layoutManager.cpp.

References currentOutput.

Referenced by outputAssigned().

bool LayoutManager::findString wxArrayString  list,
wxString  item
[private]
 

Finds a string on a list of strings.

Parameters:
list list of strings.
item string to be found.
Returns:
True iif the string was found on the list.

Definition at line 789 of file layoutManager.cpp.

Referenced by updateFPList(), updateRuleList(), and updateTTList().

bool LayoutManager::FPChecked unsigned int  FP,
bool  checked
 

Checks or unchecks a pattern.

Parameters:
FP pattern to be (un)checked.
checked true if the pattern has to be checked, false if has to be unchecked.
Returns:
True if the (un)check was made. False if the item wasn't found.

Definition at line 771 of file layoutManager.cpp.

Referenced by LayoutView::OnFPChecked().

void LayoutManager::FPsChanged  ) 
 

Updates the forbidden pattern data.

This method must be called when the forbidden pattern collection changes to update important information.

Definition at line 658 of file layoutManager.cpp.

References FPManager, and ForbiddenPatternManager::getFPList().

Referenced by MainController::FPsChanged().

Here is the call graph for this function:

wxString LayoutManager::getFileName  ) 
 

Returns the space file name.

Returns:
The space file name. An empty string if the space has not been saved previously.

Definition at line 911 of file layoutManager.cpp.

References layoutFileName.

Referenced by MainController::save(), and MainController::saveFileNames().

map< unsigned int, bool > LayoutManager::getFPEnabled  ) 
 

Returns the pattern selection map.

Returns:
A map containing the selection status of the patterns.

Definition at line 961 of file layoutManager.cpp.

Referenced by MainController::savePatterns().

int LayoutManager::getFPs  ) 
 

Returns the number of patterns.

Returns:
The number of patterns that can be assigned to the space.

Definition at line 1010 of file layoutManager.cpp.

Referenced by MainController::openFPs().

LayoutConfig * LayoutManager::getLayout  ) 
 

Member accessor.

Returns:
The space.

Definition at line 483 of file layoutManager.cpp.

References configuration.

Referenced by SimulationManager::prepareSimulation(), and SimulationManager::simulateRow().

list< ForbiddenPattern > LayoutManager::getListFPEnabled  ) 
 

Returns the patterns checked.

Returns:
A list of the forbidden patterns checked.

Definition at line 1087 of file layoutManager.cpp.

References FPManager, and ForbiddenPatternManager::getFP().

Referenced by SimulationManager::prepareSimulation().

Here is the call graph for this function:

list< Rule > LayoutManager::getListRuleEnabled  ) 
 

Returns the rules checked.

Returns:
A list of the rules checked.

Definition at line 1105 of file layoutManager.cpp.

References RuleManager::getRule(), and ruleManager.

Referenced by SimulationManager::prepareSimulation().

Here is the call graph for this function:

map< unsigned int, bool > LayoutManager::getRuleEnabled  ) 
 

Returns the rule selection map.

Returns:
A map containing the selection status of the rules.

Definition at line 951 of file layoutManager.cpp.

Referenced by MainController::saveRules().

int LayoutManager::getRules  ) 
 

Returns the number of rules.

Returns:
The number of rules that can be assigned to the space.

Definition at line 1000 of file layoutManager.cpp.

Referenced by MainController::openRules().

map< wxString, bool > LayoutManager::getTableEnabled  ) 
 

Returns the table selection map.

Returns:
A map containing the selection status of the tables.

Definition at line 941 of file layoutManager.cpp.

References tableEnabled.

Referenced by MainController::saveTables().

vector< coordinate > LayoutManager::getTableInput wxString  table  ) 
 

Returns the input assignation of a table.

Parameters:
table the truth table.
Returns:
The assigned coordinates for the table inputs.

Definition at line 1173 of file layoutManager.cpp.

References tableInputs.

Referenced by SimulationManager::prepareSimulation().

map< wxString, vector< coordinate > > LayoutManager::getTableInputs  ) 
 

Returns the input assignations.

Returns:
A map of the assigned inputs of all the truth tables.

Definition at line 921 of file layoutManager.cpp.

References tableInputs.

Referenced by MainController::saveTables().

vector< coordinate > LayoutManager::getTableOutput wxString  table  ) 
 

Returns the output assignation of a table.

Parameters:
table the truth table.
Returns:
The assigned coordinates for the table outputs.

Definition at line 1189 of file layoutManager.cpp.

References tableOutputs.

Referenced by SimulationManager::prepareSimulation().

map< wxString, vector< coordinate > > LayoutManager::getTableOutputs  ) 
 

Returns the output assignations.

Returns:
A map of the assigned outputs of all the truth tables.

Definition at line 931 of file layoutManager.cpp.

References tableOutputs.

Referenced by MainController::saveTables().

int LayoutManager::getTables  ) 
 

Returns the number of tables.

Returns:
The number of tables that can be assigned to the space.

Definition at line 990 of file layoutManager.cpp.

References tableEnabled.

Referenced by MainController::openTables().

TruthTable * LayoutManager::getTableSelected  ) 
 

Returns the truth table checked.

Returns:
The truth table checked.

Definition at line 1152 of file layoutManager.cpp.

References TruthTableManager::getTable(), tableEnabled, and tableManager.

Referenced by SimulationManager::prepareSimulation().

Here is the call graph for this function:

bool LayoutManager::inputAssigned int  x,
int  y
[private]
 

Input assignation check.

Parameters:
x x coordinate of the input.
y y coordinate of the input.
Returns:
True iif the input at coordinates x, y is assigned. False otherwise.

Definition at line 838 of file layoutManager.cpp.

References findInputAssignment(), and tableInputs.

Referenced by cellChanged().

Here is the call graph for this function:

void LayoutManager::inputSelected int  input  ) 
 

Selects an input.

Parameters:
input input to be selected.

Definition at line 806 of file layoutManager.cpp.

References currentInput.

Referenced by LayoutView::OnInputSelected().

bool LayoutManager::isLayoutModified  ) 
 

Modification consult.

Returns:
True iif the space has been modified since last save.

Definition at line 826 of file layoutManager.cpp.

References layoutModified.

Referenced by MainController::open().

void LayoutManager::newLayout LayoutConfig layoutConfig  ) 
 

Sets a new space.

Parameters:
layoutConfig the new space.

Definition at line 422 of file layoutManager.cpp.

References configuration, controller, MainController::elementChanged(), LayoutConfig::getGrid(), layoutFileName, layoutNeedNewFile, resetIO(), tableInputs, tableOutputs, tablesChanged(), LayoutView::updateGrids(), LayoutView::updateInputs(), LayoutView::updateOutputs(), and view.

Here is the call graph for this function:

void LayoutManager::newLayout int  width,
int  height,
int  inputs,
int  outputs
 

Sets a new space.

Parameters:
width width of the space.
height height of the space.
inputs space input number.
outputs space output number.

Definition at line 386 of file layoutManager.cpp.

References configuration, controller, MainController::elementChanged(), LayoutConfig::getGrid(), layoutFileName, layoutModified, layoutNeedNewFile, resetIO(), tableInputs, tableOutputs, tablesChanged(), LayoutView::updateGrids(), LayoutView::updateInputs(), LayoutView::updateOutputs(), and view.

Referenced by LayoutDiskManager::returnLayout().

Here is the call graph for this function:

void LayoutManager::openFile  ) 
 

Opens a space file.

Definition at line 490 of file layoutManager.cpp.

References layoutModified, LayoutView::msgYesNo(), saveFile(), and view.

Referenced by LayoutView::OnOpen().

Here is the call graph for this function:

bool LayoutManager::openPFile wxString  file  ) 
 

Opens a space from a project.

Parameters:
file file to be opened.
Returns:
True iif the file was correctly opened.

Definition at line 518 of file layoutManager.cpp.

References controller, diskManager, MainController::elementChanged(), layoutFileName, layoutModified, layoutNeedNewFile, and LayoutDiskManager::openLayout().

Here is the call graph for this function:

bool LayoutManager::outputAssigned int  x,
int  y
[private]
 

Output assignation check.

Parameters:
x x coordinate of the output.
y y coordinate of the output.
Returns:
True iif the output at coordinates x, y is assigned. False otherwise.

Definition at line 850 of file layoutManager.cpp.

References findOutputAssignment(), and tableOutputs.

Referenced by cellChanged().

Here is the call graph for this function:

void LayoutManager::outputSelected int  output  ) 
 

Selects an output.

Parameters:
output output to be selected.

Definition at line 816 of file layoutManager.cpp.

References currentOutput.

Referenced by LayoutView::OnOutputSelected().

void LayoutManager::prepareSimulation  ) 
 

Checks the simulation data.

This method checks the validity of the data to start a simulation.

Definition at line 1123 of file layoutManager.cpp.

References controller, and MainController::prepareSimulation().

Referenced by LayoutView::OnPrepare().

Here is the call graph for this function:

void LayoutManager::resetIO  )  [private]
 

Initializes the input/output information.

Definition at line 1251 of file layoutManager.cpp.

References tableInputs.

Referenced by newLayout().

bool LayoutManager::ruleChecked unsigned int  rule,
bool  checked
 

Checks or unchecks a rule.

Parameters:
rule rule to be (un)checked.
checked true if the rule has to be checked, false if has to be unchecked.
Returns:
True if the (un)check was made. False if the item wasn't found.

Definition at line 752 of file layoutManager.cpp.

Referenced by LayoutView::OnRuleChecked().

void LayoutManager::rulesChanged  ) 
 

Updates the rule data.

This method must be called when the rule collection changes to update important information.

Definition at line 640 of file layoutManager.cpp.

References RuleManager::getRuleList(), and ruleManager.

Referenced by MainController::rulesChanged().

Here is the call graph for this function:

bool LayoutManager::saveFile  ) 
 

Saves the space.

The user is asked for a file name if the space has not been saved previously.

Definition at line 533 of file layoutManager.cpp.

References configuration, diskManager, LayoutView::errorMsg(), fileView, layoutFileName, layoutModified, layoutNeedNewFile, FileManagerView::saveFileChoose(), LayoutDiskManager::saveLayout(), and view.

Referenced by LayoutView::OnSave(), openFile(), MainController::save(), and MainController::saveAs().

Here is the call graph for this function:

bool LayoutManager::saveFileAs  ) 
 

Saves the space to a new file.

Definition at line 571 of file layoutManager.cpp.

References configuration, diskManager, fileView, layoutFileName, layoutModified, layoutNeedNewFile, FileManagerView::saveFileChoose(), LayoutDiskManager::saveLayout(), and view.

Referenced by LayoutView::OnSaveAs().

Here is the call graph for this function:

bool LayoutManager::saveFilename wxString  file  ) 
 

Saves the space to a file.

Parameters:
file the file to be saved.
Returns:
True iif the space was correctly saved.

Definition at line 972 of file layoutManager.cpp.

References configuration, diskManager, layoutFileName, and LayoutDiskManager::saveLayout().

Referenced by MainController::save().

Here is the call graph for this function:

bool LayoutManager::setInput wxString  table,
int  input,
int  x,
int  y
 

Sets an input.

Parameters:
table truth table of the input.
input input number.
x x coordinate of the assignation.
y y coordinate of the assignation.

Definition at line 1023 of file layoutManager.cpp.

References tableInputs.

bool LayoutManager::setOutput wxString  table,
int  output,
int  x,
int  y
 

Sets an output.

Parameters:
table truth table of the output.
output output number.
x x coordinate of the assignation.
y y coordinate of the assignation.

Definition at line 1049 of file layoutManager.cpp.

References tableOutputs.

void LayoutManager::setView LayoutView view  ) 
 

View setting.

Use this method to assign the view of the controller.

Parameters:
view the view of the controller.

Definition at line 62 of file layoutManager.cpp.

References view.

void LayoutManager::startSimulation  ) 
 

Starts the simulation.

Definition at line 1130 of file layoutManager.cpp.

References controller, and MainController::startSimulation().

Referenced by LayoutView::OnStart().

Here is the call graph for this function:

bool LayoutManager::tableChecked wxString  table,
bool  checked
 

Checks or unchecks a truth table.

Only one table can be checked, so if checked is true, all other tables are unchecked.

Parameters:
table truth table to be (un)checked.
checked true if the table has to be checked, false if has to be unchecked.
Returns:
True if the (un)check was made. False if the item wasn't found.

Definition at line 727 of file layoutManager.cpp.

References tableEnabled.

Referenced by checkLayout(), and LayoutView::OnTableChecked().

void LayoutManager::tablesChanged  ) 
 

Updates the truth table data.

This method must be called when the truth table collection changes to update important information.

Definition at line 459 of file layoutManager.cpp.

References configuration, LayoutConfig::getInputs(), TruthTableManager::getInputs(), LayoutConfig::getOutputs(), TruthTableManager::getOutputs(), TruthTableManager::getTableList(), and tableManager.

Referenced by newLayout(), and MainController::tablesChanged().

Here is the call graph for this function:

void LayoutManager::tableSelected wxString  table  ) 
 

Selects a truth table.

Parameters:
table truth table selected.

Definition at line 708 of file layoutManager.cpp.

References tableInputs, tableOutputs, LayoutView::updateCanvas(), LayoutView::updateInputs(), updateIOList(), LayoutView::updateOutputs(), and view.

Referenced by LayoutView::OnTableSelected().

Here is the call graph for this function:

void LayoutManager::updateFPList wxArrayString  FPs  )  [private]
 

Updates the forbidden pattern list.

Some control variables have to be reset according to the new list: init data structures for new patterns and remove the ones from the patterns deleted.

Parameters:
FPs new pattern list.

Definition at line 302 of file layoutManager.cpp.

References findString(), and FPEnabled.

Here is the call graph for this function:

void LayoutManager::updateGrids bool  changed  )  [private]
 

Updates the grid on the view.

Parameters:
changed True iif the grid is from another space.

Definition at line 174 of file layoutManager.cpp.

References configuration, LayoutConfig::getGrid(), LayoutView::updateGrids(), and view.

Referenced by cellChanged().

Here is the call graph for this function:

void LayoutManager::updateIOList  )  [private]
 

Updates the input/output data.

This method must be called when a truth table is selected to update i/o information.

Definition at line 607 of file layoutManager.cpp.

References configuration, TruthTableManager::getInputs(), TruthTableManager::getOutputs(), and tableManager.

Referenced by tableSelected().

Here is the call graph for this function:

void LayoutManager::updateRuleList wxArrayString  rules  )  [private]
 

Updates the rule list.

Some control variables have to be reset according to the new list: init data structures for new rules and remove the ones from the rules deleted.

Parameters:
rules new rule list.

Definition at line 344 of file layoutManager.cpp.

References findString(), and ruleEnabled.

Here is the call graph for this function:

void LayoutManager::updateTable  )  [private]
 

void LayoutManager::updateTTList wxArrayString  tables  )  [private]
 

Updates the truth table list.

Some control variables have to be reset according to the new list: init data structures for new tables and remove the ones from the tables deleted.

Parameters:
tables new table list.

Definition at line 190 of file layoutManager.cpp.

References findString(), and tableInputs.

Here is the call graph for this function:


Member Data Documentation

bool LayoutManager::assigningInput [private]
 

Are we assigning an input?

Definition at line 141 of file layoutManager.hpp.

Referenced by assignInput(), cellChanged(), escapePressed(), and LayoutManager().

bool LayoutManager::assigningOutput [private]
 

Are we assigning an output?

Definition at line 143 of file layoutManager.hpp.

Referenced by assignOutput(), cellChanged(), escapePressed(), and LayoutManager().

LayoutConfig* LayoutManager::configuration [private]
 

The current space.

Definition at line 111 of file layoutManager.hpp.

Referenced by cellChanged(), clean(), getLayout(), LayoutManager(), newLayout(), saveFile(), saveFileAs(), saveFilename(), tablesChanged(), updateGrids(), and updateIOList().

MainController* LayoutManager::controller [private]
 

Main application controller.

Definition at line 117 of file layoutManager.hpp.

Referenced by cellChanged(), clean(), LayoutManager(), newLayout(), openPFile(), prepareSimulation(), and startSimulation().

int LayoutManager::currentInput [private]
 

Current input selected.

Definition at line 137 of file layoutManager.hpp.

Referenced by cellChanged(), findInputAssignment(), inputSelected(), and LayoutManager().

int LayoutManager::currentOutput [private]
 

Current output selected.

Definition at line 139 of file layoutManager.hpp.

Referenced by cellChanged(), findOutputAssignment(), LayoutManager(), and outputSelected().

wxString LayoutManager::currentTable [private]
 

Current table selected.

Definition at line 135 of file layoutManager.hpp.

Referenced by cellChanged(), and LayoutManager().

LayoutDiskManager* LayoutManager::diskManager [private]
 

Data persistance class.

Definition at line 115 of file layoutManager.hpp.

Referenced by LayoutManager(), openPFile(), saveFile(), saveFileAs(), saveFilename(), and ~LayoutManager().

FileManagerView LayoutManager::fileView [private]
 

File system interaction presentation class.

Definition at line 113 of file layoutManager.hpp.

Referenced by saveFile(), and saveFileAs().

map<unsigned int, bool> LayoutManager::FPEnabled [private]
 

Forbidden patterns selected.

Definition at line 133 of file layoutManager.hpp.

Referenced by updateFPList().

ForbiddenPatternManager* LayoutManager::FPManager [private]
 

Forbidden pattern manager.

Definition at line 107 of file layoutManager.hpp.

Referenced by FPsChanged(), getListFPEnabled(), and LayoutManager().

wxString LayoutManager::layoutFileName [private]
 

Filename of the space.

Definition at line 119 of file layoutManager.hpp.

Referenced by getFileName(), LayoutManager(), newLayout(), openPFile(), saveFile(), saveFileAs(), and saveFilename().

bool LayoutManager::layoutModified [private]
 

Has the space been modified after saving?

Definition at line 121 of file layoutManager.hpp.

Referenced by cellChanged(), isLayoutModified(), LayoutManager(), newLayout(), openFile(), openPFile(), saveFile(), and saveFileAs().

bool LayoutManager::layoutNeedNewFile [private]
 

Do we need a filename to save the space or not?

Definition at line 123 of file layoutManager.hpp.

Referenced by LayoutManager(), newLayout(), openPFile(), saveFile(), and saveFileAs().

map<unsigned int, bool> LayoutManager::ruleEnabled [private]
 

Rules selected.

Definition at line 131 of file layoutManager.hpp.

Referenced by updateRuleList().

RuleManager* LayoutManager::ruleManager [private]
 

Rule manager.

Definition at line 109 of file layoutManager.hpp.

Referenced by getListRuleEnabled(), LayoutManager(), and rulesChanged().

map< wxString, bool> LayoutManager::tableEnabled [private]
 

Tables selected.

Definition at line 129 of file layoutManager.hpp.

Referenced by checkLayout(), getTableEnabled(), getTables(), getTableSelected(), and tableChecked().

map< wxString, vector<coordinate> > LayoutManager::tableInputs [private]
 

Assigned input coordinates for the truth tables.

Definition at line 125 of file layoutManager.hpp.

Referenced by cellChanged(), getTableInput(), getTableInputs(), inputAssigned(), newLayout(), resetIO(), setInput(), tableSelected(), and updateTTList().

TruthTableManager* LayoutManager::tableManager [private]
 

Truth table manager.

Definition at line 105 of file layoutManager.hpp.

Referenced by getTableSelected(), LayoutManager(), tablesChanged(), and updateIOList().

map< wxString, vector<coordinate> > LayoutManager::tableOutputs [private]
 

Assigned output coordinates for the truth tables.

Definition at line 127 of file layoutManager.hpp.

Referenced by cellChanged(), getTableOutput(), getTableOutputs(), newLayout(), outputAssigned(), setOutput(), and tableSelected().

LayoutView* LayoutManager::view [private]
 

Presentation class.

Definition at line 103 of file layoutManager.hpp.

Referenced by cellChanged(), clean(), elementChanged(), enableSimulation(), escapePressed(), newLayout(), openFile(), saveFile(), saveFileAs(), setView(), tableSelected(), and updateGrids().


The documentation for this class was generated from the following files:
Generated on Fri Sep 1 23:58:17 2006 for NanoComp by  doxygen 1.4.6