com.sun.electric.tool.ncc.processing
Class LocalPartitioning

java.lang.Object
  extended by com.sun.electric.tool.ncc.processing.LocalPartitioning

public class LocalPartitioning
extends java.lang.Object

LocalPartitioning partitions the Part and Wire equivalence classes based on purely local characteristics. In principle, these partitions are redundant with the normal hash code process. However it seems useful to perform these first because: 1) There is no hash code computation. Therefore errors in one part of the circuit do not cause mismatches in other parts of the circuit. 2) They can be easily explained to the user.


Method Summary
static LocalPartitionResult doYourJob(java.util.Set<Part> forcedMatchParts, java.util.Set<Wire> forcedMatchWires, NccGlobals globals)
          Partition Parts and wires based upon purely local information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doYourJob

public static LocalPartitionResult doYourJob(java.util.Set<Part> forcedMatchParts,
                                             java.util.Set<Wire> forcedMatchWires,
                                             NccGlobals globals)
Partition Parts and wires based upon purely local information. We pass in the Parts and Wires that have been pre-matched because those Parts and Wires may actually mismatch and we must prevent LocalPartitioning from mismatching them.

Parameters:
forcedMatchParts - Parts that have been pre-matched by the user
forcedMatchWires - Wires that have been pre-matched by the user
globals - variables shared by all parts of NCC