com.sun.electric.tool.user.ncc
Class ExportMismatch

java.lang.Object
  extended by com.sun.electric.tool.user.ncc.ExportMismatch
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ExportMismatch.MultiMatch, ExportMismatch.NameMismatch, ExportMismatch.TopologyMismatch

public abstract class ExportMismatch
extends java.lang.Object
implements java.io.Serializable

This class is an abstract superclass for Export mismatches

See Also:
Serialized Form

Nested Class Summary
static class ExportMismatch.MultiMatch
          This class implements a zero-to-one, zero-to-many, one-to-many, and many-to-many Export mismatch.
static class ExportMismatch.NameMismatch
          This class is a container for a suggested Export match.
static class ExportMismatch.TopologyMismatch
          This class is a container for a topological Export mismatch.
 
Field Summary
protected  Cell[] cells
          Compared Cells
protected  VarContext[] contexts
          Conetexts
protected  java.lang.String[] desingNames
          Cell names
protected  boolean nameMatch
          is this a name mismatch?
protected  boolean topologyMatch
          is this a topology mismatch?
protected  boolean validOnlyWhenTopologyMismatch
          is this mismatch valid only when topology mismatch? Used to avoid duplication with suggested matches which are given when topology matches
 
Constructor Summary
ExportMismatch()
           
ExportMismatch(java.lang.String name1, java.lang.String name2)
           
 
Method Summary
 Cell getCell(int index)
          Get Cell with the given design index.
 VarContext getContext(int index)
          Get Context with the given design index.
 java.lang.String getName(int index)
          Get Cell name
 boolean isNameMatch()
           
 boolean isTopologyMatch()
           
 boolean isValidOnlyWhenTopologyMismatch()
           
 void setCells(Cell cell1, Cell cell2)
          Set compared Cells (designs).
 void setContexts(VarContext cnxt1, VarContext cnxt2)
          Set Contexts of the compared Cells (designs).
 void setNameMatch(boolean nameMatch)
           
 void setNames(java.lang.String name1, java.lang.String name2)
          Set names of the compared Cels (designs).
 void setTopologyMatch(boolean topologyMatch)
           
 void setValidOnlyWhenTopologyMismatch(boolean valid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desingNames

protected java.lang.String[] desingNames
Cell names


cells

protected Cell[] cells
Compared Cells


contexts

protected VarContext[] contexts
Conetexts


topologyMatch

protected boolean topologyMatch
is this a topology mismatch?


nameMatch

protected boolean nameMatch
is this a name mismatch?


validOnlyWhenTopologyMismatch

protected boolean validOnlyWhenTopologyMismatch
is this mismatch valid only when topology mismatch? Used to avoid duplication with suggested matches which are given when topology matches

Constructor Detail

ExportMismatch

public ExportMismatch()

ExportMismatch

public ExportMismatch(java.lang.String name1,
                      java.lang.String name2)
Method Detail

getName

public java.lang.String getName(int index)
Get Cell name

Parameters:
index - Cell index: 0 or 1
Returns:
Cell name for the given index or null if index is invalid

setNames

public void setNames(java.lang.String name1,
                     java.lang.String name2)
Set names of the compared Cels (designs). Has no effect on the names stored in the Cells themselves.

Parameters:
name1 - new name for the first design
name2 - new name for the second design

getCell

public Cell getCell(int index)
Get Cell with the given design index.

Parameters:
index - design index: 0 or 1
Returns:
Cell with the given index or null if index is invalid

setCells

public void setCells(Cell cell1,
                     Cell cell2)
Set compared Cells (designs).

Parameters:
cell1 - new first design Cell
cell2 - new second design Cell

getContext

public VarContext getContext(int index)
Get Context with the given design index.

Parameters:
index - design index: 0 or 1
Returns:
Context with the given index or null if index is invalid

setContexts

public void setContexts(VarContext cnxt1,
                        VarContext cnxt2)
Set Contexts of the compared Cells (designs).

Parameters:
cnxt1 - new Context for the first Cell
cnxt2 - new Context for the second Cell

isTopologyMatch

public boolean isTopologyMatch()

setTopologyMatch

public void setTopologyMatch(boolean topologyMatch)

isNameMatch

public boolean isNameMatch()

setNameMatch

public void setNameMatch(boolean nameMatch)

isValidOnlyWhenTopologyMismatch

public boolean isValidOnlyWhenTopologyMismatch()

setValidOnlyWhenTopologyMismatch

public void setValidOnlyWhenTopologyMismatch(boolean valid)