C# Class CyPhyComponentImporter.CyPhyComponentImporterInterpreter

Inheritance: IMgaComponentEx, IGMEVersionInfo
Mostra file Open project: metamorph-inc/meta-core

Public Properties

Property Type Description
Errors List
ExpectedSchemaVersion double
ImportedComponentsFolderName string

Protected Properties

Property Type Description
interactiveMode bool

Private Properties

Property Type Description
CheckAndWarnOnSchemaVersion void
Convert ComponentStartMode
GMERegister void
GMEUnRegister void
GetImportFolder ISIS.GME.Dsml.CyPhyML.Interfaces.Components
Main void
WriteLine void
getCyPhyMLComponentDictionary_ByName CyPhy.Component>.Dictionary

Public Methods

Method Description
DeserializeAvmComponentXml ( TextReader reader ) : avm.Component
Enable ( bool newval ) : void
ImportFile ( MgaProject project, string projroot, string FileName ) : IMgaFCO
ImportFiles ( MgaProject project, string projRootPath, string FileNames, bool alwaysReplace = false ) : IMgaFCOs
Initialize ( MgaProject project ) : void

This function is called for each interpreter invocation before Main. Don't perform MGA operations here unless you open a transaction.

Invoke ( MgaProject Project, MgaFCOs selectedobjs, int param ) : void
InvokeEx ( MgaProject project, MgaFCO currentobj, MgaFCOs selectedobjs, int param ) : void
ObjectsInvokeEx ( MgaProject Project, MgaObject currentobj, MgaObjects selectedobjs, int param ) : void
getCyPhyMLComponentDictionary_ByAVMID ( ISIS.GME.Dsml.CyPhyML.Interfaces cyPhyMLRootFolder ) : CyPhy.Component>.Dictionary
get_ComponentParameter ( string Name ) : object
set_ComponentParameter ( string Name, object pVal ) : void

Private Methods

Method Description
CheckAndWarnOnSchemaVersion ( avm ac_import ) : void
Convert ( int param ) : ComponentStartMode
GMERegister ( Type t ) : void
GMEUnRegister ( Type t ) : void
GetImportFolder ( ISIS.GME.Dsml.CyPhyML.Interfaces rf ) : ISIS.GME.Dsml.CyPhyML.Interfaces.Components
Main ( MgaProject project, MgaFCO currentobj, MgaFCOs selectedobjs, ComponentStartMode startMode ) : void
WriteLine ( Func f, IMgaFCO a, IMgaFCO b ) : void
getCyPhyMLComponentDictionary_ByName ( ISIS.GME.Dsml.CyPhyML.Interfaces cyPhyMLRootFolder ) : CyPhy.Component>.Dictionary

Method Details

DeserializeAvmComponentXml() public static method

public static DeserializeAvmComponentXml ( TextReader reader ) : avm.Component
reader System.IO.TextReader
return avm.Component

Enable() public method

public Enable ( bool newval ) : void
newval bool
return void

ImportFile() public method

public ImportFile ( MgaProject project, string projroot, string FileName ) : IMgaFCO
project MgaProject
projroot string
FileName string
return IMgaFCO

ImportFiles() public method

public ImportFiles ( MgaProject project, string projRootPath, string FileNames, bool alwaysReplace = false ) : IMgaFCOs
project MgaProject
projRootPath string
FileNames string
alwaysReplace bool
return IMgaFCOs

Initialize() public method

This function is called for each interpreter invocation before Main. Don't perform MGA operations here unless you open a transaction.
public Initialize ( MgaProject project ) : void
project MgaProject The handle of the project opened in GME, for which the interpreter was called.
return void

Invoke() public method

public Invoke ( MgaProject Project, MgaFCOs selectedobjs, int param ) : void
Project MgaProject
selectedobjs MgaFCOs
param int
return void

InvokeEx() public method

public InvokeEx ( MgaProject project, MgaFCO currentobj, MgaFCOs selectedobjs, int param ) : void
project MgaProject
currentobj MgaFCO
selectedobjs MgaFCOs
param int
return void

ObjectsInvokeEx() public method

public ObjectsInvokeEx ( MgaProject Project, MgaObject currentobj, MgaObjects selectedobjs, int param ) : void
Project MgaProject
currentobj MgaObject
selectedobjs MgaObjects
param int
return void

getCyPhyMLComponentDictionary_ByAVMID() public static method

public static getCyPhyMLComponentDictionary_ByAVMID ( ISIS.GME.Dsml.CyPhyML.Interfaces cyPhyMLRootFolder ) : CyPhy.Component>.Dictionary
cyPhyMLRootFolder ISIS.GME.Dsml.CyPhyML.Interfaces
return CyPhy.Component>.Dictionary

get_ComponentParameter() public method

public get_ComponentParameter ( string Name ) : object
Name string
return object

set_ComponentParameter() public method

public set_ComponentParameter ( string Name, object pVal ) : void
Name string
pVal object
return void

Property Details

Errors public_oe property

public List Errors
return List

ExpectedSchemaVersion public_oe static_oe property

The version of the ACM schema expected by the importer. If an input file has a different version, the importer will warn the user, but try to import the component anyway.
public static double ExpectedSchemaVersion
return double

ImportedComponentsFolderName public_oe static_oe property

The default name of the folder in which imported components are placed.
public static string ImportedComponentsFolderName
return string

interactiveMode protected_oe property

protected bool interactiveMode
return bool