C# Class DesignConsistencyChecker.Framework.Checker

Afficher le fichier Open project: metamorph-inc/meta-core Class Usage Examples

Méthodes publiques

Méthode Description
BeginRegisterRuleDlls ( IEnumerable dllPaths ) : Task

Loads rule DLL files and instantiates all classes which implements IMgaRule. Async version. Use RegisterCancel token source to cancel the execution. RolesRegistered event is fired when finished if successful.

CheckRule ( RuleDescriptor selectedRule, List &ruleFeedbacks, List &checkerFeedbacks ) : void
CheckRules ( IEnumerable selectedRules, List &ruleFeedbacks, List &checkerFeedbacks ) : void
Checker ( MgaFCO model, MgaProject project, IMgaTraceability traceability = null, CyPhyGUIs logger = null ) : System
RefreshChildrenCache ( ) : void
RegisterRuleDll ( string dllPath ) : void
RegisterRuleDlls ( IEnumerable dllPaths ) : void

Loads rule DLL files and instantiates all classes which implements IMgaRule. Synchron version.

RegisterRulesForAssembly ( Assembly asm, string name ) : void
RegisterRulesForTypes ( IEnumerable types, string name ) : void

Méthodes protégées

Méthode Description
OnRulesRegistered ( ) : void

Private Methods

Méthode Description
CallElaborator ( MgaProject project, MgaFCO currentobj, MgaFCOs selectedobjs, int param, bool expand = true ) : bool
CheckRule ( List ruleFeedbacks, List checkerFeedbacks, RuleDescriptor rule ) : void
GetAllChildren ( MgaModel root ) : List>.Dictionary

Method Details

BeginRegisterRuleDlls() public méthode

Loads rule DLL files and instantiates all classes which implements IMgaRule. Async version. Use RegisterCancel token source to cancel the execution. RolesRegistered event is fired when finished if successful.
public BeginRegisterRuleDlls ( IEnumerable dllPaths ) : Task
dllPaths IEnumerable /// - Filename list (if the ruledll is in the same directory) /// exampleRule.dll /// - Filenames with ABSOLUTE path. /// c:\exampleRule.dll ///
Résultat Task

CheckRule() public méthode

public CheckRule ( RuleDescriptor selectedRule, List &ruleFeedbacks, List &checkerFeedbacks ) : void
selectedRule DesignConsistencyChecker.DesignRule.RuleDescriptor
ruleFeedbacks List
checkerFeedbacks List
Résultat void

CheckRules() public méthode

public CheckRules ( IEnumerable selectedRules, List &ruleFeedbacks, List &checkerFeedbacks ) : void
selectedRules IEnumerable
ruleFeedbacks List
checkerFeedbacks List
Résultat void

Checker() public méthode

public Checker ( MgaFCO model, MgaProject project, IMgaTraceability traceability = null, CyPhyGUIs logger = null ) : System
model MgaFCO
project MgaProject
traceability IMgaTraceability
logger CyPhyGUIs
Résultat System

OnRulesRegistered() protected méthode

protected OnRulesRegistered ( ) : void
Résultat void

RefreshChildrenCache() public méthode

public RefreshChildrenCache ( ) : void
Résultat void

RegisterRuleDll() public méthode

public RegisterRuleDll ( string dllPath ) : void
dllPath string
Résultat void

RegisterRuleDlls() public méthode

Loads rule DLL files and instantiates all classes which implements IMgaRule. Synchron version.
public RegisterRuleDlls ( IEnumerable dllPaths ) : void
dllPaths IEnumerable /// - Filename list (if the ruledll is in the same directory) /// exampleRule.dll /// - Filenames with ABSOLUTE path. /// c:\exampleRule.dll ///
Résultat void

RegisterRulesForAssembly() public méthode

public RegisterRulesForAssembly ( Assembly asm, string name ) : void
asm System.Reflection.Assembly
name string
Résultat void

RegisterRulesForTypes() public méthode

public RegisterRulesForTypes ( IEnumerable types, string name ) : void
types IEnumerable
name string
Résultat void