|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.hli.ecad.ECADDesign
The ECADDesign class holds the Windchill objects which taken together represent an variant structure. It includes 2 ECADDocuments: the Board and the Source, as well as a table of all ECADDocuments used or referenced by the design, a table of all assemblies(variants), and the name of the designFile,
The iterations of the structure are stored as a EPMAsStoredConfig containing all the EPMDocuments related to that iteration.
When an design is checked out, an EPMWorkspace is created to hold the current objects until checkin.
Supported API: true
Extendable: false
Field Summary | |
private HashMap |
assemblies
|
private EPMAsStoredConfig |
asStored
|
private ECADDocument |
boardDoc
|
private HashMap |
documents
|
private Folder |
folderCache
|
private ECADDocument |
schematicDoc
|
private ECADDocument |
sourceDoc
|
private WTContainerRef |
workingContainerRef
|
private EPMWorkspace |
workspace
|
Constructor Summary | |
protected |
ECADDesign(ECADDocument _sourceDoc)
|
protected |
ECADDesign(ECADDocument _sourceDoc,
ECADDocument _boardDoc)
|
protected |
ECADDesign(ECADDocument _sourceDoc,
ECADDocument _boardDoc,
ECADDocument _schematicDoc)
|
protected |
ECADDesign(ECADDocument _sourceDoc,
ECADDocument _boardDoc,
ECADDocument _schematicDoc,
Baseline baseline)
|
Method Summary | |
void |
addAssembly(ECADAssembly assembly)
Add an assembly Supported API: false |
void |
addECADDoc(ECADDocument ecadDoc)
Add an ECADDocument to the document list for this design Supported API: false |
ECADAssembly |
getAssembly(String assmNumber)
Get the ECADAssembly with the given number. |
ECADDocument |
getBoardDoc()
Return the ECADDocument representing the board Supported API: true |
EPMCheckpoint |
getCheckpoint()
Get the EPMCheckpoint of the ECADDesign Supported API: true |
ECADDocument |
getComponentDoc(String number)
Get the ECADDocument with the given number which is also a COMPONENT Document. |
HashMap |
getComponentDocMap()
|
Vector |
getComponentDocs()
Retrieve all COMPONENT documents. |
ECADDocument |
getContentDoc(String docNumber)
Get the ECADDocument with the given number which is also a CONTENT Document. |
HashMap |
getContentDocMap()
|
Vector |
getContentDocs()
Retrieve all CONTENT documents. |
String |
getDescription()
Return the description of the ECADDesign Supported API: true |
static ECADDesign |
getDesign(Baseline baseline)
Static method to build an ECADDesign structure for the variant design which is defined by a specific Baseline. |
static ECADDesign |
getDesign(String assemblyNumber,
String version,
WTContainerRef containerRef)
Static method to build an ECADDesign structure for the variant design which contains the given assembly Supported API: true |
ECADDocument |
getDocument(String docNumber)
Get the ECADDocument with the given number Supported API: true |
private static Vector |
getDocuments(EPMDocument[] docArray,
EPMDocumentType type)
|
Vector |
getECADAssemblies()
Return an array of ECADAssemblies contained in the Design Supported API: false |
EPMAsStoredConfig |
getEPMAsStoredConfig()
Return the EPMAsStoredConfig representing the stored ECADSource Supported API: false |
EPMDocument[] |
getEPMDocuments()
Get an array of all EPMDocuments in the design Supported API: false |
EPMWorkspace |
getEPMWorkspace()
|
Folder |
getFolder()
Return the Folder for the ECADDesign Supported API: true |
static Baseline |
getLatestBaseline(String assemblyNumber,
String version,
WTContainerRef containerRef)
|
String |
getName()
|
String |
getNumber()
Return the name and number of the ECADDesign as represented by the name and number of the Source document Supported API: true |
ECADDocument |
getSchematicDoc()
Return the ECADDocument representing the schematic - if it exists Supported API: true |
ECADDocument |
getSourceDoc()
Return the ECADDocument representing the source Supported API: true |
String |
getVersion()
|
WTContainerRef |
getworkingContainer()
Return the WTContainerRef representing the workingContainer Supported API: true |
EPMWorkspace |
getWorkspace()
Get the EPMWorkspace of the ECADDesign Supported API: true |
protected static ECADDocument |
intializeContent(EPMDocument epmDoc,
ECADDesign design)
|
protected static void |
intializeContent(EPMDocument epmDoc,
ECADDocument doc)
|
boolean |
isCheckedOut()
|
protected EPMCheckpoint |
lookupCheckpoint()
|
protected static EPMCheckpoint |
lookupCheckpoint(EPMDocument epmDoc)
|
static ECADDesign |
newECADDesign(ECADDocument sourceDoc,
ECADDocument boardDoc)
Factory method to construct a new ECADDesign containing the given ECADDocuments. |
static ECADDesign |
newECADDesign(ECADDocument sourceDoc,
ECADDocument boardDoc,
ECADDocument schematicDoc)
|
void |
removeAssembly(ECADAssembly assembly)
Remove an assembly Supported API: false |
void |
removeECADDoc(ECADDocument ecadDoc)
Remove an ECADDocument from the document list for this design Supported API: false |
void |
setDescription(String newDescription)
Set the description of the ECADDesign Supported API: true |
void |
setEPMAsStoredConfig(EPMAsStoredConfig _asStored)
Set the EPMAsStoredConfig representing the stored ECADSource Supported API: false |
void |
setEPMWorkspace(EPMWorkspace workspace)
|
void |
setFolder(Folder _folder)
Set the Folder for the ECADDesign Supported API: true input Folder folder for initial creation of design |
void |
setSchematicDoc(ECADDocument schematicDoc)
Set the ECADDocument representing the schematic This will replace the current schematic document if one exists. |
void |
setworkingContainer(WTContainerRef _workingContainerRef)
Set the WTContainerRef representing the workingContainer Supported API: false |
String |
toString()
Override of the toString method for outputting the ECADAssembly Supported API: false |
void |
update(ECADTransaction transaction)
Update the design with the results of a transaction Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private ECADDocument sourceDoc
private ECADDocument boardDoc
private ECADDocument schematicDoc
private EPMAsStoredConfig asStored
private EPMWorkspace workspace
private HashMap assemblies
private HashMap documents
private Folder folderCache
private WTContainerRef workingContainerRef
Constructor Detail |
protected ECADDesign(ECADDocument _sourceDoc, ECADDocument _boardDoc, ECADDocument _schematicDoc, Baseline baseline) throws WTException
protected ECADDesign(ECADDocument _sourceDoc, ECADDocument _boardDoc, ECADDocument _schematicDoc) throws WTException
protected ECADDesign(ECADDocument _sourceDoc, ECADDocument _boardDoc) throws WTException
protected ECADDesign(ECADDocument _sourceDoc) throws WTException
Method Detail |
public ECADDocument getBoardDoc()
public ECADDocument getSchematicDoc()
public void setSchematicDoc(ECADDocument schematicDoc)
public ECADDocument getSourceDoc()
public String getNumber()
public String getName()
public String getVersion()
public ECADAssembly getAssembly(String assmNumber)
public EPMAsStoredConfig getEPMAsStoredConfig() throws WTException
WTException
public void setEPMAsStoredConfig(EPMAsStoredConfig _asStored) throws WTException
WTException
public void setFolder(Folder _folder) throws WTException
WTException
public Folder getFolder() throws WTException
WTException
public String getDescription()
public void setDescription(String newDescription) throws WTPropertyVetoException
WTPropertyVetoException
public EPMWorkspace getWorkspace() throws WTException
WTException
public EPMCheckpoint getCheckpoint() throws WTException
WTException
public void removeAssembly(ECADAssembly assembly)
public void addAssembly(ECADAssembly assembly)
public Vector getECADAssemblies()
public ECADDocument getContentDoc(String docNumber)
public ECADDocument getDocument(String docNumber)
public ECADDocument getComponentDoc(String number)
public Vector getContentDocs()
public HashMap getContentDocMap()
public Vector getComponentDocs()
public HashMap getComponentDocMap()
public String toString()
public void addECADDoc(ECADDocument ecadDoc) throws WTException
WTException
public void removeECADDoc(ECADDocument ecadDoc)
public void update(ECADTransaction transaction)
public EPMDocument[] getEPMDocuments()
public EPMWorkspace getEPMWorkspace()
public void setEPMWorkspace(EPMWorkspace workspace)
public static ECADDesign getDesign(String assemblyNumber, String version, WTContainerRef containerRef) throws WTException
WTException
public static Baseline getLatestBaseline(String assemblyNumber, String version, WTContainerRef containerRef) throws WTException
WTException
public static ECADDesign getDesign(Baseline baseline) throws WTException
WTException
public static ECADDesign newECADDesign(ECADDocument sourceDoc, ECADDocument boardDoc) throws WTException
IllegalArgumentException,
- WTException
WTException
public static ECADDesign newECADDesign(ECADDocument sourceDoc, ECADDocument boardDoc, ECADDocument schematicDoc) throws WTException
WTException
protected static EPMCheckpoint lookupCheckpoint(EPMDocument epmDoc) throws WTException
WTException
protected EPMCheckpoint lookupCheckpoint() throws WTException
WTException
private static Vector getDocuments(EPMDocument[] docArray, EPMDocumentType type)
protected static ECADDocument intializeContent(EPMDocument epmDoc, ECADDesign design) throws WTException
WTException
protected static void intializeContent(EPMDocument epmDoc, ECADDocument doc) throws WTException
WTException
public WTContainerRef getworkingContainer()
public void setworkingContainer(WTContainerRef _workingContainerRef)
public boolean isCheckedOut() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |