com.sun.electric.tool.ncc.strategy
Class StratPortName

java.lang.Object
  extended by com.sun.electric.tool.ncc.strategy.Strategy
      extended by com.sun.electric.tool.ncc.strategy.StratPortName

public class StratPortName
extends Strategy

StratPortName sorts all Wire EquivRecords on the frontier by size. Starting with the smallest first, it finds the first EquivRecord that splits due to Export names. It divides that EquivRecord and returns the offspring EquivRecords.


Field Summary
 
Fields inherited from class com.sun.electric.tool.ncc.strategy.Strategy
CODE_ERROR, CODE_NO_CHANGE, depth, globals
 
Method Summary
 LeafList doFor(EquivRecord g)
          Method doFor(EquivRecord) processes a single EquivRecord.
 java.lang.Integer doFor(NetObject n)
          doFor(NetObject) tests the NetObject to decide its catagory.
 LeafList doFor(RecordList g)
          Apply this Strategy to a list of leaf and internal records.
static LeafList doYourJob(NccGlobals globals)
           
 
Methods inherited from class com.sun.electric.tool.ncc.strategy.Strategy
doFor, doFor, elapsedTime, error, getDepth, offspringStats, startTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doYourJob

public static LeafList doYourJob(NccGlobals globals)

doFor

public LeafList doFor(RecordList g)
Description copied from class: Strategy
Apply this Strategy to a list of leaf and internal records.

Overrides:
doFor in class Strategy
Parameters:
g - a RecordList of EquivRecords to process
Returns:
a LeafList of the new leaf EquivRecords

doFor

public LeafList doFor(EquivRecord g)
Description copied from class: Strategy
Method doFor(EquivRecord) processes a single EquivRecord.

Overrides:
doFor in class Strategy
Parameters:
g - the EquivRecord to process
Returns:
a LeafList of the new leaf EquivRecords

doFor

public java.lang.Integer doFor(NetObject n)
Description copied from class: Strategy
doFor(NetObject) tests the NetObject to decide its catagory. The default method generates no offspring.

Overrides:
doFor in class Strategy
Parameters:
n - the NetObject to catagorize
Returns:
an Integer for the choice.