C# 클래스 Canguro.Model.Model

상속: IModel
파일 보기 프로젝트 열기: rforsbach/Treu-Structure 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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