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

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

public class StratPrint
extends Strategy

StratPrint gives a limited print out of the tree It prints not more than maxLines stuff for each list and not more than maxPins in any one Wire


Field Summary
 
Fields inherited from class com.sun.electric.tool.ncc.strategy.Strategy
CODE_ERROR, CODE_NO_CHANGE, depth, globals
 
Method Summary
 java.util.HashMap doFor(Circuit j)
          Method doFor(Circuit) process a single Circuit, dividing the circuit according to this strategy, and placing the NetObjects of the Circuit into new Circuits mapped in the return according to the separation Integer.
 LeafList doFor(EquivRecord j)
          Method doFor(EquivRecord) processes a single EquivRecord.
 java.lang.Integer doFor(NetObject n)
          doFor(NetObject) tests the NetObject to decide its catagory.
static LeafList doYourJob(EquivRecord j, NccGlobals globals)
           
 java.lang.String nameString()
           
 
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

nameString

public java.lang.String nameString()

doYourJob

public static LeafList doYourJob(EquivRecord j,
                                 NccGlobals globals)

doFor

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

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

doFor

public java.util.HashMap doFor(Circuit j)
Description copied from class: Strategy
Method doFor(Circuit) process a single Circuit, dividing the circuit according to this strategy, and placing the NetObjects of the Circuit into new Circuits mapped in the return according to the separation Integer.

Overrides:
doFor in class Strategy
Parameters:
j - the Circuit to process.
Returns:
a CircuitMap of offspring Circuits. Returns an empty map if no offspring intended, and returns the input input Circuit if method fails to split.

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.