|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.edadata.EdaData
Title: EdaData
Description: This is the top-level class which contains the main calls to gather data from InterComm
Copyright: Copyright (c) 2004
Company: PTC
Constructor Summary | |
EdaData()
Empty constructor |
Method Summary | |
private String |
applyQuotes(String command)
|
private boolean |
checkDesignFile(File designFile)
|
private File[] |
checkDesignFiles(File[] designFiles)
|
private Vector |
checkDesignFiles(Vector designFiles)
|
private FileListResponseItem |
checkFileList(FileListResponseItem fri)
|
private void |
clearData()
|
BOMListMember |
consolidateBOM(BOMListMember bom,
String numberColName,
String nameColName,
String qtyColName,
String refDesColName)
Consolidate raw BOM by given columns |
private boolean |
containsElement(Vector container,
String element)
|
private File |
convertFileFormat(File fileSource,
String format)
|
private Vector |
convertFiles(File[] designFiles)
|
private FileListMember[] |
convertFiles(File[] designFiles,
String role)
|
private File[] |
convertFiles(FileListResponseItem flri)
Utility method to convert all FileListResponseItems to File[] |
private File[] |
convertFiles(Vector designFiles)
|
private FileListMember[] |
convertFiles(Vector designFiles,
String role)
|
private String[] |
convertFileString(File[] designFiles)
|
private File |
createBOMBatchFile(File[] designFiles)
|
private File[] |
createBOMFiles(File[] edaFiles)
|
private File |
createEDABatchFile(File[] designFiles,
String storageDir)
|
private String |
createTimeStamp(String string)
|
private boolean |
deleteTarget()
|
private Vector |
executeCommand(String commandLine)
|
private File[] |
filterDesignFormat(File[] designFiles)
|
private String |
fixVarName(String variable)
|
private FileListResponseItem |
getArchiveFiles()
This method will get all the files in the design container directory |
private Vector |
getBoardFiles(File rootDir,
boolean doRecurse)
|
private String |
getBoardPath(File rootDir)
|
private BOMResponseItem |
getBOM(File designFile)
This method will generate a BOM and return the data object |
private CleanupResponseItem |
getCleanup()
|
private String |
getCommand(String designFile,
String executableFile)
|
private File |
getConfigFile(File parentDir)
|
private String |
getConvertBOMCommand(FileListResponseItem fri)
|
private String |
getConvertEDACommand(FileListResponseItem fri)
|
private File[] |
getDefaultFiles(File rootDir,
boolean recursive)
|
private FileListResponseItem |
getDesignFiles()
|
private String |
getDesignLib(File[] rootFiles)
|
private EDAViewableResponseItem |
getEDAViewables()
|
private Vector |
getFiles(File rootDir)
|
private Vector |
getFormat(File[] designFiles)
|
private String |
getLatestViewpoint(File fileName,
String objectType)
|
private File |
getMasterDesignFile(FileListMember[] flm)
|
private Vector |
getOutput(String commandLine)
|
private VerifyDesignResponseItem |
getVerifyDesigns()
|
private void |
initializeEDAData()
|
private boolean |
isDesignFiles(File[] designFiles)
|
private boolean |
isMasterDesignFile(FileListMember flm)
|
private File[] |
matchFiles(File[] designFiles,
org.apache.regexp.RE pattern)
|
private void |
printErrString(String stringName)
|
private void |
printOutString(String commandName)
|
private void |
printOutString(String commandName,
String[] output)
|
private void |
printOutString(String commandName,
Vector output)
|
private void |
processData(BufferedReader input)
|
Response |
ProcessRequest(Request request)
|
private void |
readData(BufferedReader input)
|
private String |
removeElement(String stringName,
int position)
|
private String |
safeDirString(String pathName)
|
private String |
safeDirTrailSlash(String pathName)
|
private String |
safeQuotes(String pathName)
|
private String |
safeSlashes(String pathName,
String ecadType)
|
private String |
safeString(String pathName)
|
private FileListMember[] |
setFileRoles(FileListMember[] flm)
|
private void |
storeData(String[] values,
int row)
|
private boolean |
writeToTarget()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private BOMResponseItem m_bsItem
private static final String m_strAPI
private SchematicRequestItem m_srItem
private static final String NO_DIRECTORY
private int m_iTotalDimensions
private int m_iTotalRecords
private String m_strDelim
private BOMColumnDef[] m_bomColumnDef
private BOMRow[] m_bomRow
private Vector m_vectBomList
private BOMListMember[] m_bomListAll
private Properties m_properties
private String m_strOS
private String m_strDel
private String m_strSeperateCommand
private String m_strChangeDir
private String m_strOpen
private String m_strShellCMD
private String m_strCMD
private String m_strCMDBatch
private String m_strCMDQuotes
private String m_strICM
private String m_strDesignRootPath
private String m_strDesignAppPath
private String m_strOutputFilePath
private String m_strTempFilePath
private String m_strInterAppPath
private String m_strLibraryPath
private String m_strConduitBinPath
private String m_strDesignFile
private String m_ecadType
private String m_strTargetPath
private boolean m_bDeleteTarget
private String[] m_strTargetText
private boolean m_bGetAllVariants
private Vector m_vecFiles
private final String m_strIFFConvertFile
private final String m_strMGNConvertFile
private final String m_strVersionScriptFile
private final String m_strPCBConvertBatchFile
private final String m_strBRIConvertFile
private final String m_strTools
private final String m_strDesignFileText
private final String m_strUnknown
private final String m_strUnknownFile
private final String m_strUnknownDir
private final String m_strMaster
private final String m_strEddmType
private final String m_strSchematic
private final String m_strPCB
private final String m_strMGCType
private final String m_strMGCComp
private final String m_strSCH
private final String m_strViewDraw
private String m_strTempBOMFile
private ExtensionFilter m_cpmFormat
private ExtensionFilter m_brdFormat
private ExtensionFilter m_mcmFormat
private ExtensionFilter m_textFormat
private ExtensionFilter m_tagFormat
private ExtensionFilter m_edaFormat
private ExtensionFilter m_iffFormat
private ExtensionFilter m_bomFormat
private ExtensionFilter m_libFormat
private ExtensionFilter m_attrFormat
private ExtensionFilter m_dvptFormat
private ExtensionFilter m_eddmFormat
private ExtensionFilter m_mgcFormat
private ExtensionFilter m_mgcComp
private ExtensionFilter m_edfFormat
private ExtensionFilter m_mgnFormat
private ExtensionFilter m_iniFormat
private ExtensionFilter m_pcbFormat
private ExtensionFilter m_hkpFormat
private ExtensionFilter m_briFormat
private ExtensionFilter m_cfgFormat
private final String m_strTMPCFG
Constructor Detail |
public EdaData()
Method Detail |
public Response ProcessRequest(Request request) throws BOMResponseException, FileListResponseException, EDAViewableResponseException, VerifyDesignResponseException, CleanupResponseException
BOMResponseException
FileListResponseException
EDAViewableResponseException
VerifyDesignResponseException
CleanupResponseException
private String createTimeStamp(String string)
private void printOutString(String commandName)
private void printOutString(String commandName, Vector output)
private void printOutString(String commandName, String[] output)
private void printErrString(String stringName)
private FileListResponseItem getDesignFiles() throws FileListResponseException
FileListResponseException
private String getCommand(String designFile, String executableFile) throws SecurityException, org.apache.regexp.RESyntaxException
SecurityException
org.apache.regexp.RESyntaxException
private File[] checkDesignFiles(File[] designFiles) throws IOException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
IOException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private Vector checkDesignFiles(Vector designFiles) throws IOException, InterruptedException, org.apache.regexp.RESyntaxException
IOException
InterruptedException
org.apache.regexp.RESyntaxException
private boolean isDesignFiles(File[] designFiles) throws IOException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
IOException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private boolean checkDesignFile(File designFile) throws IOException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
IOException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private File[] matchFiles(File[] designFiles, org.apache.regexp.RE pattern) throws SecurityException
SecurityException
private void clearData()
private File[] convertFiles(FileListResponseItem flri)
flri
- FileListResponseItem
private File[] convertFiles(Vector designFiles)
private Vector convertFiles(File[] designFiles) throws SecurityException
SecurityException
private String[] convertFileString(File[] designFiles) throws SecurityException
SecurityException
private FileListMember[] convertFiles(File[] designFiles, String role) throws SecurityException
SecurityException
private FileListMember[] convertFiles(Vector designFiles, String role) throws SecurityException
SecurityException
private File getConfigFile(File parentDir) throws IOException, SecurityException, org.apache.regexp.RESyntaxException
IOException
SecurityException
org.apache.regexp.RESyntaxException
private FileListResponseItem getArchiveFiles() throws FileListResponseException
FileListResponseException
private FileListMember[] setFileRoles(FileListMember[] flm) throws IOException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
IOException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private File getMasterDesignFile(FileListMember[] flm) throws IOException, InterruptedException, SecurityException
IOException
InterruptedException
SecurityException
private Vector getFiles(File rootDir) throws IOException, SecurityException
IOException
SecurityException
private Vector getBoardFiles(File rootDir, boolean doRecurse) throws IOException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
IOException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private String applyQuotes(String command)
private File[] getDefaultFiles(File rootDir, boolean recursive) throws IOException, SecurityException
IOException
SecurityException
private String getBoardPath(File rootDir) throws IOException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
IOException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private String getDesignLib(File[] rootFiles) throws SecurityException
SecurityException
private Vector getOutput(String commandLine) throws IOException, InterruptedException
IOException
InterruptedException
private CleanupResponseItem getCleanup() throws CleanupResponseException
CleanupResponseException
private boolean deleteTarget() throws IOException, SecurityException
IOException
SecurityException
private boolean writeToTarget() throws IOException, SecurityException
IOException
SecurityException
private VerifyDesignResponseItem getVerifyDesigns() throws VerifyDesignResponseException
VerifyDesignResponseException
private EDAViewableResponseItem getEDAViewables() throws EDAViewableResponseException
EDAViewableResponseException
private BOMResponseItem getBOM(File designFile) throws BOMResponseException, FileListResponseException
BOMResponseException
FileListResponseException
private FileListResponseItem checkFileList(FileListResponseItem fri) throws FileListResponseException, IOException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
FileListResponseException
IOException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private String getConvertBOMCommand(FileListResponseItem fri) throws FileListResponseException, IOException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
FileListResponseException
IOException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private String getConvertEDACommand(FileListResponseItem fri) throws FileListResponseException, IOException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
FileListResponseException
IOException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private File[] filterDesignFormat(File[] designFiles) throws SecurityException
SecurityException
private Vector getFormat(File[] designFiles) throws IOException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
IOException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private String fixVarName(String variable) throws org.apache.regexp.RESyntaxException
org.apache.regexp.RESyntaxException
private boolean containsElement(Vector container, String element)
private String getLatestViewpoint(File fileName, String objectType) throws IOException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
IOException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private boolean isMasterDesignFile(FileListMember flm)
private void initializeEDAData()
private Vector executeCommand(String commandLine) throws IOException, InterruptedException
IOException
InterruptedException
private File[] createBOMFiles(File[] edaFiles) throws BOMResponseException, InterruptedException, SecurityException
BOMResponseException
InterruptedException
SecurityException
private File createBOMBatchFile(File[] designFiles) throws IOException, FileListResponseException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
IOException
FileListResponseException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private File createEDABatchFile(File[] designFiles, String storageDir) throws IOException, FileListResponseException, InterruptedException, SecurityException, org.apache.regexp.RESyntaxException
IOException
FileListResponseException
InterruptedException
SecurityException
org.apache.regexp.RESyntaxException
private File convertFileFormat(File fileSource, String format) throws IOException, SecurityException, org.apache.regexp.RESyntaxException
IOException
SecurityException
org.apache.regexp.RESyntaxException
private String safeQuotes(String pathName)
private String safeSlashes(String pathName, String ecadType) throws org.apache.regexp.RESyntaxException
org.apache.regexp.RESyntaxException
private String safeDirString(String pathName) throws org.apache.regexp.RESyntaxException
org.apache.regexp.RESyntaxException
private String safeDirTrailSlash(String pathName) throws org.apache.regexp.RESyntaxException
org.apache.regexp.RESyntaxException
private String safeString(String pathName)
private String removeElement(String stringName, int position)
private void processData(BufferedReader input) throws IOException, org.apache.regexp.RESyntaxException
IOException
org.apache.regexp.RESyntaxException
private void readData(BufferedReader input) throws IOException, org.apache.regexp.RESyntaxException
IOException
org.apache.regexp.RESyntaxException
private void storeData(String[] values, int row)
public BOMListMember consolidateBOM(BOMListMember bom, String numberColName, String nameColName, String qtyColName, String refDesColName) throws BOMResponseException
bom
- BOMListMember Raw BOM to consolidatenumberColName
- String Raw BOM's column playing role: NumbernameColName
- String Raw BOM's column playing role: NameqtyColName
- String Column name to use for Quantity columnrefDesColName
- String Raw BOM's column playing role: Ref Designator
BOMResponseException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |