C# Класс Canguro.Model.Model

Наследование: IModel
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DefaultResponseSpectrum Canguro.Model.Load.ResponseSpectrum
Instance Model
ResponseSpectra IList

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

BuildAnalysisCaseAdjacency() публичный Метод

Builds an adjacencyList of dependant abstract cases, so that each entry has its dependant cases in its list
public BuildAnalysisCaseAdjacency ( ) : LinkedList>.Dictionary
Результат LinkedList>.Dictionary

ChangeModel() публичный Метод

Por este medio se le avisa a Model que están occurriendo cambios. Lanza el evento ModelChanged
public ChangeModel ( ) : void
Результат void

ChangeSelection() публичный Метод

Por este medio se le avisa a Model que la selección cambió. Lanza el evento SelectionChanged
public ChangeSelection ( Item picked ) : void
picked Item
Результат void

ConfirmUnlockModel() публичный Метод

Opens a dialog to confirm unlocking the model.
public ConfirmUnlockModel ( ) : bool
Результат bool

GetConnectivityGraph() публичный Метод

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>
Результат List>

Load() публичный Метод

Reads a file with a serialized model.
public Load ( string path ) : void
path string Path to the .tsm file
Результат void

NewResults() публичный Метод

Method to inform the model that new results have arrived Throws the event ResultsArrived
public NewResults ( ) : void
Результат void

RepairAbstractCases() публичный Метод

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
Результат void

Reset() публичный Метод

Destruye todo el modelo y lo deja limpio
public Reset ( ) : void
Результат void

Save() публичный Метод

Serializes and saves the Model to a file.
public Save ( string path ) : void
path string Path to the file
Результат void

UnSelectAll() публичный Метод

Deselects all joints, line and area elements.
public UnSelectAll ( ) : void
Результат void

Описание свойств

DefaultResponseSpectrum публичное свойство

public ResponseSpectrum,Canguro.Model.Load DefaultResponseSpectrum
Результат Canguro.Model.Load.ResponseSpectrum

Instance публичное статическое свойство

Singleton pattern.
public static Model,Canguro.Model Instance
Результат Model

ResponseSpectra публичное свойство

public IList ResponseSpectra
Результат IList