C# Class CyPhyComponentExporter.CyPhyComponentExporterInterpreter

Inheritance: IMgaComponentEx, IGMEVersionInfo
Exibir arquivo Open project: metamorph-inc/meta-core Class Usage Examples

Public Properties

Property Type Description
OutputDir string
previousExportPath string

Protected Properties

Property Type Description
cadResourceRegex System.Text.RegularExpressions.Regex
interactiveMode bool

Private Properties

Property Type Description
Convert ComponentStartMode
GMERegister void
GMEUnRegister void
GetAllComponents List
Main void
Safeify String
TraverseComponentAssemblyForComponentExport void

Public Methods

Method Description
Enable ( bool newval ) : void
ExportComponentPackage ( ISIS.GME.Dsml.CyPhyML.Interfaces component, String outputFolder = null ) : String

Given a CyPhy Component, builds a .ZIP-format Component Package, which includes an ACM version, as well as all artifacts from the component's backend folder. Note that it will grab ALL artifacts from that folder, not just those called out as Resources by the Component. It will also exclude any *.acm file found in that folder, opting to create a new ACM file from the current state of the component.

ExportToFile ( ISIS.GME.Dsml.CyPhyML.Interfaces c, String s_outFolder ) : String
Initialize ( MgaProject project ) : void

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

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
SerializeAvmComponent ( avm avmComponent, String s_outFilePath ) : void
TraverseTestBenchForComponentExport ( MgaFCO currentobj, string OutputDirectory, string ProjectDirectory ) : void
get_ComponentParameter ( string Name ) : object
set_ComponentParameter ( string Name, object pVal ) : void

Private Methods

Method Description
Convert ( int param ) : ComponentStartMode
GMERegister ( Type t ) : void
GMEUnRegister ( Type t ) : void
GetAllComponents ( ISIS.GME.Dsml.CyPhyML.Interfaces componentsFolder ) : List
Main ( MgaProject project, MgaFCO currentobj, MgaFCOs selectedobjs, ComponentStartMode startMode ) : void
Safeify ( String s_in ) : String
TraverseComponentAssemblyForComponentExport ( ComponentIndex compindex, ISIS.GME.Dsml.CyPhyML.Interfaces componentasm, string OutputDirectory, string ProjectDirectory ) : void

Method Details

Enable() public method

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

ExportComponentPackage() public static method

Given a CyPhy Component, builds a .ZIP-format Component Package, which includes an ACM version, as well as all artifacts from the component's backend folder. Note that it will grab ALL artifacts from that folder, not just those called out as Resources by the Component. It will also exclude any *.acm file found in that folder, opting to create a new ACM file from the current state of the component.
public static ExportComponentPackage ( ISIS.GME.Dsml.CyPhyML.Interfaces component, String outputFolder = null ) : String
component ISIS.GME.Dsml.CyPhyML.Interfaces
outputFolder String The folder where the component package should be created. If null, a temporary folder will be used.
return String

ExportToFile() public static method

public static ExportToFile ( ISIS.GME.Dsml.CyPhyML.Interfaces c, String s_outFolder ) : String
c ISIS.GME.Dsml.CyPhyML.Interfaces
s_outFolder String
return String

Initialize() public method

This function is called for each interpreter invocation before Main. Don't perform MGA operations here unless you open a tansaction.
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

SerializeAvmComponent() public static method

public static SerializeAvmComponent ( avm avmComponent, String s_outFilePath ) : void
avmComponent avm
s_outFilePath String
return void

TraverseTestBenchForComponentExport() public method

public TraverseTestBenchForComponentExport ( MgaFCO currentobj, string OutputDirectory, string ProjectDirectory ) : void
currentobj MgaFCO
OutputDirectory string
ProjectDirectory string
return void

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

OutputDir public_oe property

public string OutputDir
return string

cadResourceRegex protected_oe static_oe property

protected static Regex,System.Text.RegularExpressions cadResourceRegex
return System.Text.RegularExpressions.Regex

interactiveMode protected_oe property

protected bool interactiveMode
return bool

previousExportPath public_oe static_oe property

public static string previousExportPath
return string