C# Класс CyPhyMetaLink.CyphyMetaLinkUtils

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CleanPath ( String path ) : String
CollectComponentRefsRecursive ( ISIS.GME.Dsml.CyPhyML.Interfaces assembly ) : List
CollectComponentsRecursive ( ISIS.GME.Dsml.CyPhyML.Interfaces assembly ) : HashSet
CollectInstanceGUIDs ( CyPhyML.ComponentRef>.Dictionary dict, string prefix, ISIS.GME.Dsml.CyPhyML.Interfaces assembly ) : void
CopyComponent ( ISIS.GME.Dsml.CyPhyML.Interfaces original, bool createNewMgaComponent ) : ISIS.GME.Dsml.CyPhyML.Interfaces.Component
CopyDirectory ( string sourcePath, string destPath ) : void
FindAVMComponent ( MgaProject project, string avmid, ISIS root ) : ISIS.GME.Dsml.CyPhyML.Interfaces.Component
FindCADModelObject ( ISIS.GME.Dsml.CyPhyML.Interfaces component ) : ISIS.GME.Dsml.CyPhyML.Interfaces.CADModel
FindConnector ( ISIS.GME.Dsml.CyPhyML.Interfaces compref, string guid ) : ISIS.GME.Dsml.CyPhyML.Interfaces.Connector
FindDatum ( ISIS.GME.Dsml.CyPhyML.Interfaces cadmodel, string name ) : ISIS.GME.Dsml.CyPhyML.Interfaces.CADDatum
GetComponentAssemblyByGuid ( MgaProject project, string componentAssemblyGuid ) : ISIS.GME.Dsml.CyPhyML.Interfaces.ComponentAssembly
GetComponentByAvmId ( MgaProject project, string avmId ) : ISIS.GME.Dsml.CyPhyML.Interfaces.Component
GetComponentNameByAnyId ( MgaProject project, string id ) : string
GetComponentRefInAssemblyById ( ISIS.GME.Dsml.CyPhyML.Interfaces root, string amalgamatedId ) : ISIS.GME.Dsml.CyPhyML.Interfaces.ComponentRef
GetComponentRefInAssemblyByIdWithoutFollowingReferences ( ISIS.GME.Dsml.CyPhyML.Interfaces root, string instanceId ) : ISIS.GME.Dsml.CyPhyML.Interfaces.ComponentRef
GetContainingAssemblies ( ISIS.GME.Dsml.CyPhyML.Interfaces component ) : IEnumerable

Gets ComponentAssemblys that contain component directly, or through references to ComponentAssemblys

GetImportedComponentsFolder ( MgaProject project ) : ISIS.GME.Dsml.CyPhyML.Interfaces.Components
GetProjectDir ( MgaProject project ) : string
GetResourceID ( ISIS.GME.Dsml.CyPhyML.Interfaces cadModel ) : String
IsCADResource ( ISIS.GME.Dsml.CyPhyML.Interfaces res ) : bool
IsComponent ( MgaObject obj ) : bool
IsComponentRef ( MgaObject obj ) : bool
IsValidComponentRef ( MgaObject obj ) : bool
SetCADModelTypesFromFilenames ( ISIS.GME.Dsml.CyPhyML.Interfaces c ) : void
SetOrCreateXmlAttribute ( XPathNavigator node, string localName, string namespaceURI, string value ) : void

Приватные методы

Метод Описание
CollectComponentRefs ( List complist, ISIS.GME.Dsml.CyPhyML.Interfaces assembly ) : void
CollectComponents ( HashSet complist, ISIS.GME.Dsml.CyPhyML.Interfaces assembly ) : void
VisitAllComponentAssembly ( ISIS.GME.Dsml.CyPhyML.Interfaces root ) : IEnumerable
VisitComponentAssemblies ( MgaProject project ) : IEnumerable
VisitComponentsFolders ( MgaProject project ) : IEnumerable
stringRoughlyEqual ( string a, string b ) : bool

Описание методов

CleanPath() публичный статический Метод

public static CleanPath ( String path ) : String
path String
Результат String

CollectComponentRefsRecursive() публичный статический Метод

public static CollectComponentRefsRecursive ( ISIS.GME.Dsml.CyPhyML.Interfaces assembly ) : List
assembly ISIS.GME.Dsml.CyPhyML.Interfaces
Результат List

CollectComponentsRecursive() публичный статический Метод

public static CollectComponentsRecursive ( ISIS.GME.Dsml.CyPhyML.Interfaces assembly ) : HashSet
assembly ISIS.GME.Dsml.CyPhyML.Interfaces
Результат HashSet

CollectInstanceGUIDs() публичный статический Метод

public static CollectInstanceGUIDs ( CyPhyML.ComponentRef>.Dictionary dict, string prefix, ISIS.GME.Dsml.CyPhyML.Interfaces assembly ) : void
dict CyPhyML.ComponentRef>.Dictionary
prefix string
assembly ISIS.GME.Dsml.CyPhyML.Interfaces
Результат void

CopyComponent() публичный статический Метод

public static CopyComponent ( ISIS.GME.Dsml.CyPhyML.Interfaces original, bool createNewMgaComponent ) : ISIS.GME.Dsml.CyPhyML.Interfaces.Component
original ISIS.GME.Dsml.CyPhyML.Interfaces
createNewMgaComponent bool
Результат ISIS.GME.Dsml.CyPhyML.Interfaces.Component

CopyDirectory() публичный статический Метод

public static CopyDirectory ( string sourcePath, string destPath ) : void
sourcePath string
destPath string
Результат void

FindAVMComponent() публичный статический Метод

public static FindAVMComponent ( MgaProject project, string avmid, ISIS root ) : ISIS.GME.Dsml.CyPhyML.Interfaces.Component
project MgaProject
avmid string
root ISIS
Результат ISIS.GME.Dsml.CyPhyML.Interfaces.Component

FindCADModelObject() публичный статический Метод

public static FindCADModelObject ( ISIS.GME.Dsml.CyPhyML.Interfaces component ) : ISIS.GME.Dsml.CyPhyML.Interfaces.CADModel
component ISIS.GME.Dsml.CyPhyML.Interfaces
Результат ISIS.GME.Dsml.CyPhyML.Interfaces.CADModel

FindConnector() публичный статический Метод

public static FindConnector ( ISIS.GME.Dsml.CyPhyML.Interfaces compref, string guid ) : ISIS.GME.Dsml.CyPhyML.Interfaces.Connector
compref ISIS.GME.Dsml.CyPhyML.Interfaces
guid string
Результат ISIS.GME.Dsml.CyPhyML.Interfaces.Connector

FindDatum() публичный статический Метод

public static FindDatum ( ISIS.GME.Dsml.CyPhyML.Interfaces cadmodel, string name ) : ISIS.GME.Dsml.CyPhyML.Interfaces.CADDatum
cadmodel ISIS.GME.Dsml.CyPhyML.Interfaces
name string
Результат ISIS.GME.Dsml.CyPhyML.Interfaces.CADDatum

GetComponentAssemblyByGuid() публичный статический Метод

public static GetComponentAssemblyByGuid ( MgaProject project, string componentAssemblyGuid ) : ISIS.GME.Dsml.CyPhyML.Interfaces.ComponentAssembly
project MgaProject
componentAssemblyGuid string
Результат ISIS.GME.Dsml.CyPhyML.Interfaces.ComponentAssembly

GetComponentByAvmId() публичный статический Метод

public static GetComponentByAvmId ( MgaProject project, string avmId ) : ISIS.GME.Dsml.CyPhyML.Interfaces.Component
project MgaProject
avmId string
Результат ISIS.GME.Dsml.CyPhyML.Interfaces.Component

GetComponentNameByAnyId() публичный статический Метод

public static GetComponentNameByAnyId ( MgaProject project, string id ) : string
project MgaProject
id string
Результат string

GetComponentRefInAssemblyById() публичный статический Метод

public static GetComponentRefInAssemblyById ( ISIS.GME.Dsml.CyPhyML.Interfaces root, string amalgamatedId ) : ISIS.GME.Dsml.CyPhyML.Interfaces.ComponentRef
root ISIS.GME.Dsml.CyPhyML.Interfaces
amalgamatedId string
Результат ISIS.GME.Dsml.CyPhyML.Interfaces.ComponentRef

GetComponentRefInAssemblyByIdWithoutFollowingReferences() публичный статический Метод

public static GetComponentRefInAssemblyByIdWithoutFollowingReferences ( ISIS.GME.Dsml.CyPhyML.Interfaces root, string instanceId ) : ISIS.GME.Dsml.CyPhyML.Interfaces.ComponentRef
root ISIS.GME.Dsml.CyPhyML.Interfaces
instanceId string
Результат ISIS.GME.Dsml.CyPhyML.Interfaces.ComponentRef

GetContainingAssemblies() публичный статический Метод

Gets ComponentAssemblys that contain component directly, or through references to ComponentAssemblys
public static GetContainingAssemblies ( ISIS.GME.Dsml.CyPhyML.Interfaces component ) : IEnumerable
component ISIS.GME.Dsml.CyPhyML.Interfaces
Результат IEnumerable

GetImportedComponentsFolder() публичный статический Метод

public static GetImportedComponentsFolder ( MgaProject project ) : ISIS.GME.Dsml.CyPhyML.Interfaces.Components
project MgaProject
Результат ISIS.GME.Dsml.CyPhyML.Interfaces.Components

GetProjectDir() публичный статический Метод

public static GetProjectDir ( MgaProject project ) : string
project MgaProject
Результат string

GetResourceID() публичный статический Метод

public static GetResourceID ( ISIS.GME.Dsml.CyPhyML.Interfaces cadModel ) : String
cadModel ISIS.GME.Dsml.CyPhyML.Interfaces
Результат String

IsCADResource() публичный статический Метод

public static IsCADResource ( ISIS.GME.Dsml.CyPhyML.Interfaces res ) : bool
res ISIS.GME.Dsml.CyPhyML.Interfaces
Результат bool

IsComponent() публичный статический Метод

public static IsComponent ( MgaObject obj ) : bool
obj MgaObject
Результат bool

IsComponentRef() публичный статический Метод

public static IsComponentRef ( MgaObject obj ) : bool
obj MgaObject
Результат bool

IsValidComponentRef() публичный статический Метод

public static IsValidComponentRef ( MgaObject obj ) : bool
obj MgaObject
Результат bool

SetCADModelTypesFromFilenames() публичный статический Метод

public static SetCADModelTypesFromFilenames ( ISIS.GME.Dsml.CyPhyML.Interfaces c ) : void
c ISIS.GME.Dsml.CyPhyML.Interfaces
Результат void

SetOrCreateXmlAttribute() публичный статический Метод

public static SetOrCreateXmlAttribute ( XPathNavigator node, string localName, string namespaceURI, string value ) : void
node XPathNavigator
localName string
namespaceURI string
value string
Результат void