* @param pipWire The wire to count
* @param wireCounts The map that is storing the total counts
* @param we The relevant WireEnumerator
*/
private static void countWire(int pipWire, HashMap<WireType,Integer> wireCounts, WireEnumerator we){
WireType pipWireType = we.getWireType(pipWire);
if(wireTypesOfInterest.contains(pipWireType)){
// If a wire name has BEG in it, this is the only entry
// point to drive the resource, long lines
// have multiple points
if(we.getWireName(pipWire).contains("BEG")){
Integer count = wireCounts.get(pipWireType);
if(count == null){
wireCounts.put(pipWireType, new Integer(1));
}else{
wireCounts.put(pipWireType, new Integer(count.intValue()+1));
}
}
}
if(pipWireType.equals(WireType.LONG)){
// TODO
}
}