C# Class DesignConsistencyChecker.Framework.Checker

显示文件 Open project: metamorph-inc/meta-core Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
OnRulesRegistered ( ) : void

Private Methods

Method 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 method

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 ///
return Task

CheckRule() public method

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

CheckRules() public method

public CheckRules ( IEnumerable selectedRules, List &ruleFeedbacks, List &checkerFeedbacks ) : void
selectedRules IEnumerable
ruleFeedbacks List
checkerFeedbacks List
return void

Checker() public method

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

OnRulesRegistered() protected method

protected OnRulesRegistered ( ) : void
return void

RefreshChildrenCache() public method

public RefreshChildrenCache ( ) : void
return void

RegisterRuleDll() public method

public RegisterRuleDll ( string dllPath ) : void
dllPath string
return void

RegisterRuleDlls() public method

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 ///
return void

RegisterRulesForAssembly() public method

public RegisterRulesForAssembly ( Assembly asm, string name ) : void
asm System.Reflection.Assembly
name string
return void

RegisterRulesForTypes() public method

public RegisterRulesForTypes ( IEnumerable types, string name ) : void
types IEnumerable
name string
return void