C# Class CyPhyMasterInterpreter.CyPhyMasterInterpreterAPI

Inheritance: IDisposable
ファイルを表示 Open project: metamorph-inc/meta-core Class Usage Examples

Private Properties

Property Type Description
CreateOrUpdateProjectManifest AVM.DDP.MetaAvmProject
DirectoryCopy void
ExecuteInTransaction void
ExecuteInTransaction void
GenerateDashboardScriptFiles void
GetConfigurationGroups CyPhyMasterInterpreter.ConfigurationGroup[]
GetIndexFilename string
GetSelectedDesign AVM.DDP.MetaTBManifest.DesignType
ResolveConfiguration MgaFCOs
ResolveConfigurations MgaFCOs
RunAnalysisModelProcessors CyPhyMasterInterpreter.MasterInterpreterResult
RunInTransactionWithConfig CyPhyMasterInterpreter.MasterInterpreterResult[]
ShowConfigurationSelectionForm ConfigurationSelection
SplitCamelCase string
TurnOffAddons void
TurnOnAddons void

Public Methods

Method Description
Cancel ( ) : void
CheckContext ( IMgaModel context ) : ContextCheckerResult[]
CreateLogger ( ) : void
CyPhyMasterInterpreterAPI ( ) : System
CyPhyMasterInterpreterAPI ( MgaProject project ) : System

Initializes a new instance of CyPhyMasterInterpreterAPI.

CyPhyMasterInterpreterAPI ( MgaProject project, CyPhyGUIs logger ) : System

Initializes a new instance of CyPhyMasterInterpreterAPI.

Dispose ( ) : void

Disposes the logger if it needs to be disposed.

GetConfigurations ( IMgaModel context ) : IMgaFCOs

GetConfigurations ( IMgaProject project, string gmeId ) : IMgaFCOs
Initialize ( MgaProject project, CyPhyGUIs logger = null ) : void
OpenDashboardWithChrome ( ) : void
RunInTransactionOnMultipleConfigs ( IMgaModel context, IMgaFCOs configurations, bool postToJobManager = false, bool keepTempModels = false ) : CyPhyMasterInterpreter.MasterInterpreterResult[]

All RunInTransaction public functions should end up calling this function. It checks all constraints and initializes the variables.

Execute outside of transactions.

RunInTransactionOnOneConfig ( IMgaModel context, IMgaFCO configuration, bool postToJobManager = false, bool keepTempModels = false ) : CyPhyMasterInterpreter.MasterInterpreterResult[]
RunInTransactionWithConfigLight ( ConfigurationSelectionLight configLight ) : CyPhyMasterInterpreter.MasterInterpreterResult[]
TryCheckContext ( IMgaModel context, ContextCheckerResult &results ) : bool
WriteSummary ( CyPhyMasterInterpreter.MasterInterpreterResult results ) : void

Protected Methods

Method Description
OnMultipleConfigurationProgress ( CyPhyMasterInterpreter.ProgressCallbackEventArgs e ) : void
OnSingleConfigurationProgress ( CyPhyMasterInterpreter.ProgressCallbackEventArgs e ) : void

Private Methods

Method Description
CreateOrUpdateProjectManifest ( MgaProject project ) : AVM.DDP.MetaAvmProject

Creates or updates the project manifest file.

Execute within transaction.

DirectoryCopy ( string sourceDirName, string destinationDirName, bool copySubDirs ) : void
ExecuteInTransaction ( IMgaObject context, System.Action doWork, bool abort = false, transactiontype_enum type = transactiontype_enum.TRANSACTION_NON_NESTED ) : void
ExecuteInTransaction ( MgaProject project, System.Action doWork, bool abort = false, transactiontype_enum type = transactiontype_enum.TRANSACTION_NON_NESTED ) : void
GenerateDashboardScriptFiles ( ) : void
GetConfigurationGroups ( IMgaModel context ) : CyPhyMasterInterpreter.ConfigurationGroup[]
GetIndexFilename ( ) : string
GetSelectedDesign ( ISIS.GME.Dsml.CyPhyML.Interfaces cwc, ISIS.GME.Dsml.CyPhyML.Interfaces designContainer ) : AVM.DDP.MetaTBManifest.DesignType
ResolveConfiguration ( MgaFCO configuration ) : MgaFCOs
ResolveConfigurations ( IMgaFCOs configurations ) : MgaFCOs

Resolves all possible variations of configuration specification.

RunAnalysisModelProcessors ( IMgaModel context, IMgaFCO configuration, bool postToJobManager = false, bool keepTempModels = false, bool passTraceability = true ) : CyPhyMasterInterpreter.MasterInterpreterResult
RunInTransactionWithConfig ( ConfigurationSelection config ) : CyPhyMasterInterpreter.MasterInterpreterResult[]
ShowConfigurationSelectionForm ( IMgaModel context, bool enableDebugging = false ) : ConfigurationSelection
SplitCamelCase ( string input ) : string
TurnOffAddons ( IMgaObject context ) : void
TurnOnAddons ( IMgaModel context ) : void

Method Details

Cancel() public method

public Cancel ( ) : void
return void

CheckContext() public method

public CheckContext ( IMgaModel context ) : ContextCheckerResult[]
context IMgaModel
return ContextCheckerResult[]

CreateLogger() public method

public CreateLogger ( ) : void
return void

CyPhyMasterInterpreterAPI() public method

public CyPhyMasterInterpreterAPI ( ) : System
return System

CyPhyMasterInterpreterAPI() public method

Initializes a new instance of CyPhyMasterInterpreterAPI.
public CyPhyMasterInterpreterAPI ( MgaProject project ) : System
project MgaProject Master interpreter runs on part of this project.
return System

CyPhyMasterInterpreterAPI() public method

Initializes a new instance of CyPhyMasterInterpreterAPI.
public CyPhyMasterInterpreterAPI ( MgaProject project, CyPhyGUIs logger ) : System
project MgaProject Master interpreter runs on part of this project.
logger CyPhyGUIs If logger is give it will be used.
return System

Dispose() public method

Disposes the logger if it needs to be disposed.
public Dispose ( ) : void
return void

GetConfigurations() public method

public GetConfigurations ( IMgaModel context ) : IMgaFCOs
context IMgaModel TestBench, PET, PCC, or SoT
return IMgaFCOs

GetConfigurations() public method

public GetConfigurations ( IMgaProject project, string gmeId ) : IMgaFCOs
project IMgaProject
gmeId string
return IMgaFCOs

Initialize() public method

public Initialize ( MgaProject project, CyPhyGUIs logger = null ) : void
project MgaProject
logger CyPhyGUIs
return void

OnMultipleConfigurationProgress() protected method

protected OnMultipleConfigurationProgress ( CyPhyMasterInterpreter.ProgressCallbackEventArgs e ) : void
e CyPhyMasterInterpreter.ProgressCallbackEventArgs
return void

OnSingleConfigurationProgress() protected method

protected OnSingleConfigurationProgress ( CyPhyMasterInterpreter.ProgressCallbackEventArgs e ) : void
e CyPhyMasterInterpreter.ProgressCallbackEventArgs
return void

OpenDashboardWithChrome() public method

public OpenDashboardWithChrome ( ) : void
return void

RunInTransactionOnMultipleConfigs() public method

All RunInTransaction public functions should end up calling this function. It checks all constraints and initializes the variables.

Execute outside of transactions.

public RunInTransactionOnMultipleConfigs ( IMgaModel context, IMgaFCOs configurations, bool postToJobManager = false, bool keepTempModels = false ) : CyPhyMasterInterpreter.MasterInterpreterResult[]
context IMgaModel Master interpreter runs on this model.
configurations IMgaFCOs Configurations to run the context with.
postToJobManager bool True posts all jobs to the job manager.
keepTempModels bool The interpreter will keep all temporary models.
return CyPhyMasterInterpreter.MasterInterpreterResult[]

RunInTransactionOnOneConfig() public method

public RunInTransactionOnOneConfig ( IMgaModel context, IMgaFCO configuration, bool postToJobManager = false, bool keepTempModels = false ) : CyPhyMasterInterpreter.MasterInterpreterResult[]
context IMgaModel
configuration IMgaFCO
postToJobManager bool
keepTempModels bool
return CyPhyMasterInterpreter.MasterInterpreterResult[]

RunInTransactionWithConfigLight() public method

public RunInTransactionWithConfigLight ( ConfigurationSelectionLight configLight ) : CyPhyMasterInterpreter.MasterInterpreterResult[]
configLight ConfigurationSelectionLight
return CyPhyMasterInterpreter.MasterInterpreterResult[]

TryCheckContext() public method

public TryCheckContext ( IMgaModel context, ContextCheckerResult &results ) : bool
context IMgaModel
results ContextCheckerResult
return bool

WriteSummary() public method

public WriteSummary ( CyPhyMasterInterpreter.MasterInterpreterResult results ) : void
results CyPhyMasterInterpreter.MasterInterpreterResult
return void