C# Class Canguro.Model.Model

Inheritance: IModel
Afficher le fichier Open project: rforsbach/Treu-Structure Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultResponseSpectrum Canguro.Model.Load.ResponseSpectrum
Instance Model
ResponseSpectra IList

Méthodes publiques

Méthode Description
BuildAnalysisCaseAdjacency ( ) : LinkedList>.Dictionary

Builds an adjacencyList of dependant abstract cases, so that each entry has its dependant cases in its list

ChangeModel ( ) : void

Por este medio se le avisa a Model que están occurriendo cambios. Lanza el evento ModelChanged

ChangeSelection ( Item picked ) : void

Por este medio se le avisa a Model que la selección cambió. Lanza el evento SelectionChanged

ConfirmUnlockModel ( ) : bool

Opens a dialog to confirm unlocking the model.

GetConnectivityGraph ( ) : List>

Creates and returns a connectivity graph in the form of an adjacency list. Each joint is a vertex in the garph and each element is one or more (areas) edges.

Load ( string path ) : void

Reads a file with a serialized model.

NewResults ( ) : void

Method to inform the model that new results have arrived Throws the event ResultsArrived

RepairAbstractCases ( AbstractCase changedAc ) : void

Repairs the IsActive state of the abstract cases so that no active case depends upon an unactive case

Reset ( ) : void

Destruye todo el modelo y lo deja limpio

Save ( string path ) : void

Serializes and saves the Model to a file.

UnSelectAll ( ) : void

Deselects all joints, line and area elements.

Private Methods

Méthode Description
ChangeModel ( bool gadgetsChanged ) : void
Model ( ) : System
abstractCases_ElementRemoved ( object sender, ListChangedEventArgs args ) : void

Callback function called before an abstract case is deleted. Cancels the removing if the case has dependencies.

layers_ElementRemoved ( object sender, ListChangedEventArgs args ) : void
loadCases_ElementRemoved ( object sender, ListChangedEventArgs args ) : void
repairAbstractCases ( AbstractCase changedAc, Dictionary adjacency ) : void
sections_ElementRemoved ( object sender, ListChangedEventArgs args ) : void

Method Details

BuildAnalysisCaseAdjacency() public méthode

Builds an adjacencyList of dependant abstract cases, so that each entry has its dependant cases in its list
public BuildAnalysisCaseAdjacency ( ) : LinkedList>.Dictionary
Résultat LinkedList>.Dictionary

ChangeModel() public méthode

Por este medio se le avisa a Model que están occurriendo cambios. Lanza el evento ModelChanged
public ChangeModel ( ) : void
Résultat void

ChangeSelection() public méthode

Por este medio se le avisa a Model que la selección cambió. Lanza el evento SelectionChanged
public ChangeSelection ( Item picked ) : void
picked Item
Résultat void

ConfirmUnlockModel() public méthode

Opens a dialog to confirm unlocking the model.
public ConfirmUnlockModel ( ) : bool
Résultat bool

GetConnectivityGraph() public méthode

Creates and returns a connectivity graph in the form of an adjacency list. Each joint is a vertex in the garph and each element is one or more (areas) edges.
public GetConnectivityGraph ( ) : List>
Résultat List>

Load() public méthode

Reads a file with a serialized model.
public Load ( string path ) : void
path string Path to the .tsm file
Résultat void

NewResults() public méthode

Method to inform the model that new results have arrived Throws the event ResultsArrived
public NewResults ( ) : void
Résultat void

RepairAbstractCases() public méthode

Repairs the IsActive state of the abstract cases so that no active case depends upon an unactive case
public RepairAbstractCases ( AbstractCase changedAc ) : void
changedAc Canguro.Model.Load.AbstractCase The last abstract case that has changed
Résultat void

Reset() public méthode

Destruye todo el modelo y lo deja limpio
public Reset ( ) : void
Résultat void

Save() public méthode

Serializes and saves the Model to a file.
public Save ( string path ) : void
path string Path to the file
Résultat void

UnSelectAll() public méthode

Deselects all joints, line and area elements.
public UnSelectAll ( ) : void
Résultat void

Property Details

DefaultResponseSpectrum public_oe property

public ResponseSpectrum,Canguro.Model.Load DefaultResponseSpectrum
Résultat Canguro.Model.Load.ResponseSpectrum

Instance public_oe static_oe property

Singleton pattern.
public static Model,Canguro.Model Instance
Résultat Model

ResponseSpectra public_oe property

public IList ResponseSpectra
Résultat IList