com.sun.electric.tool.ncc.strategy
Class StratCheck
java.lang.Object
com.sun.electric.tool.ncc.strategy.Strategy
com.sun.electric.tool.ncc.strategy.StratCheck
public class StratCheck
- extends Strategy
Perform sanity checks on NCC's EquivRec trees.
Method Summary |
java.util.HashMap<java.lang.Integer,java.util.List<NetObject>> |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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<java.lang.Integer,java.util.List<NetObject>> 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.