gmj.pcb.fpga.test
Class ChipDef

java.lang.Object
  extended by gmj.pcb.fpga.test.ChipDef

public class ChipDef
extends Object

Maps row numbers to row names etc. assumes that rows are alpha and columns are numeric sample file rows 16 columns 16 rowsIndices A B C D E F G H J K L M N P R T


Field Summary
private  int columns
           
private  String[] rowIndices
           
private  int rows
           
 
Constructor Summary
private ChipDef()
           
 
Method Summary
 int getColumn(String pinName)
           
private static String getDef(BufferedReader reader, String label)
           
private  int getNumIndex(String pinName)
           
 int getRow(String pinName)
           
static void main(String[] args)
           
static ChipDef parseChipDef(InputStream inStream)
           
static ChipDef parseChipDef(String fileName)
           
private static String[] parseRowIndices(BufferedReader reader, int rows)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rows

private int rows

columns

private int columns

rowIndices

private String[] rowIndices
Constructor Detail

ChipDef

private ChipDef()
Method Detail

getRow

public int getRow(String pinName)

getColumn

public int getColumn(String pinName)

getNumIndex

private int getNumIndex(String pinName)

parseChipDef

public static ChipDef parseChipDef(String fileName)
                            throws IOException
Throws:
IOException

parseChipDef

public static ChipDef parseChipDef(InputStream inStream)
                            throws IOException
Throws:
IOException

getDef

private static String getDef(BufferedReader reader,
                             String label)
                      throws IOException
Throws:
IOException

parseRowIndices

private static String[] parseRowIndices(BufferedReader reader,
                                        int rows)
                                 throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

main

public static void main(String[] args)


Copyright © 2013. All Rights Reserved.