C# 클래스 CyPhyMetaLink.CyphyMetaLinkUtils

파일 보기 프로젝트 열기: metamorph-inc/meta-core 1 사용 예제들

공개 메소드들

메소드 설명
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